Message ID | 20231127225542.2744711-3-Frank.Li@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3521662vqx; Mon, 27 Nov 2023 14:56:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMe/1a5aF8uphgaYQTUZFsmt0/vLoNXI/ImC2h0LwJ+9UhTucKYT4BrDLvuqUIz2v4p4v8 X-Received: by 2002:a05:6808:11c5:b0:3b8:4164:5fe0 with SMTP id p5-20020a05680811c500b003b841645fe0mr16036443oiv.37.1701125800393; Mon, 27 Nov 2023 14:56:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701125800; cv=pass; d=google.com; s=arc-20160816; b=qYHMz27cIDb0/y+LIIKBNcXqurL66C7qQLeC7ZM9aL5dwD+A33o4NKnLhCGulBANeD GZp2rC9APXXdoO4ZLoml1Ck55lyE4UZGaFwWcP5V3xVYauEp3vJdp6TOZty4513aaKzR hX6JO/rX8xtUbolvsZKtWhd+yu1Y/mvVsPhPZT1K2YeyCaiyyaC9DstKkk060XtO1IOM fA+QPmm/VL6O+vJuBGmW6MRW/QaPAz2sAlnibAkLXBhHXRFqqKKWNc9+MwKV91hYdmbw eeH9RtOdX2BYuqWISmKZIcv4ZayW86nwCHDObBbLfiakKo/YzHvYODSoiCU6z32rlrTE JD+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; fh=WwdwxswekiDlcDQNcHvu2C9Zy8N9YQStHu/6mj4Dj6c=; b=SYDz3aI51EIGJjOT2x/ZtokTLNCIUZ2EeZqW9efsL0QzIAHSHLjkG7a+5ZTZYoM3Ot t/LQs+Go4bbcEv9J4Oi1rwq0nKQq7VZDyqyyYq3wGFwcDniY0H19XFC4TR72CFxtSG2L 64H+Zs3Bwbppwo4YH9SB+SNxn00yDJAxtONUxL0TbwJEMK2felHLTjxs0IG0qCujU84n jp9r1z9oHY8kwr3neApUODT9AJW2zGJ8Tt/dANMKfPMvHMsDgV9wkczmAWYC0W0f/clE gcIpIqovPDtHyBo03GM0ArL/+3qb3VzMpjexf6LqxCruMs7wqeitDIJyxTIUQA+n0NG6 NNQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gvsuQzuQ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id h29-20020a63575d000000b005b93521a253si10693811pgm.484.2023.11.27.14.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:56:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gvsuQzuQ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BDBC881112D1; Mon, 27 Nov 2023 14:56:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233793AbjK0W4H (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 17:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233400AbjK0W4C (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 17:56:02 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A0C137; Mon, 27 Nov 2023 14:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nDy0poR0kzWEOHLkD1GgNlU1MwZsJkF8/DoVCW2O+wdQp6Fle5m6QhIXpMCUW8wLqqEr0X3SPMEiZgbRMBLQRuFQIefGpoX7432qacVBLlAhUMtJLHXs203xnAwlqIf0jyGI/njlqPoToEvspx03awZOaJQV/cx5Dm8xTEzxyTcq6oqYJx0lp2/u8eMzvsGldci7FPQo50A5P93o3pV7/KiyrSsr/smD9MyC2YQW07fHbzDsjjHbrVDDhWK6KdsKwoh6JmddubONF1svPkMhFO9C4+lleNaCgI098i57eFDuC9FycWTsURivMLkV+WIfCRtd8/6SWXF9kVSu3KySMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; b=QZ1JX8Qgus9WFOYBfQ0WYSMDomNs+SJbA0kQfv9xu/KV211yXlxwBSOr5lH094YNEpN5hTwVK3ku3+NBj1uuYO1Zos3ljuA6i5hOw5pJGbp8nJB9YLRiBbZK8WVGpRNBrqnUtGdWdSZK316NStDZ/Yn0HNkWCgnYyJzhsn4YXwJ+ydNXIteu7NmpsZwI+SaHR2hWchqe7pPnbOHdwr5RsVXd8uzgJaZd88PikbL9lundqdMVW0n3K0hzyo2rVdko03zx2OEw3iBJtUVjE4ccRAMfJGkCfyA6uYkX9FDFiDDGOoqbnNnoAl2274g67I5vZJ2rrsR3DalzxQI/X1qcng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; b=gvsuQzuQy9R07Y+CwPPYqFE89cauLz1Nmnyd6761FIFV4EZUPdB8fR7FGXCJeVsdoVVCt2VhRBYiWAqI+Vfvh8sm0zwBAreC2S40AeQjE6wegYatcGxIIPumqywCHmq6crI9EOgr+lKwEPkPP6Sw8GNL2Dh5S9F6cuor4GqrmiU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AM8PR04MB7858.eurprd04.prod.outlook.com (2603:10a6:20b:237::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.21; Mon, 27 Nov 2023 22:56:07 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7046.015; Mon, 27 Nov 2023 22:56:07 +0000 From: Frank Li <Frank.Li@nxp.com> To: frank.li@nxp.com, vkoul@kernel.org Cc: devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, joy.zou@nxp.com, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, peng.fan@nxp.com, robh+dt@kernel.org, shenwei.wang@nxp.com Subject: [PATCH v3 2/6] dmaengine: fsl-edma: fix spare build warning Date: Mon, 27 Nov 2023 17:55:38 -0500 Message-Id: <20231127225542.2744711-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231127225542.2744711-1-Frank.Li@nxp.com> References: <20231127225542.2744711-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0116.namprd05.prod.outlook.com (2603:10b6:a03:334::31) To VI1PR04MB4845.eurprd04.prod.outlook.com (2603:10a6:803:51::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM8PR04MB7858:EE_ X-MS-Office365-Filtering-Correlation-Id: b69202a7-6150-4691-6630-08dbef9c0a96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BpzL5kr+9yYT707s0AC1FRVGw6/b/uzZ4ZFcQPV0HFSchwLArgLLJEmybRr3Y+X+n8yO8SfD2MZGffdAr32RQOkYzA8M+pfGlTWHeHpl+QfmRvWFy6/A9k+fqQ/ylFupucyf8UV2nf+mJ5AHilwOzmaiZAScuFPKGwXMJOg0JVTGAlHkIuYgGpPc2mZBfS+IkgOMZS4CqaUafRjFnPqDA+VYzYnmaTlS2uK3s1Kz8zbjEYmV1oGQJroEr0oEGQtTy3KkzrlftK2re7j76TIdrLyBDyGdWZApSkwOrybeZ+9tTHT3OIHbb6fCZxC7S6Cxmn6CsGrdwdP/1G6gRnT+evssznLHAORTAX4UR/PoXYjKMiem0co/RkQcO4C+hqcXYHxH2WrS6Bzax8JLie4TNMr174/tL/ySnO38id882s6dlaO401LovyRTbyk3IrWHQUggD3G1U5wlrREqPilKPA+tvHHbGl/FidpXcXFrAtUEVVjx10xJA75/m5v21sQLi5LjItlp7OZtRgTwNmT8ys+VQbXJyrMYDaoYWKmCvuBHmoOIvsTQwIa9umpX9Wgrnr/QkBsUp33SOfuP5kpK12vwUAn3x/z5z7Ksl28txybXhSybFjtD+iAyGHHU1rz/Tc+ZADxKrfUNYYDzDmXGmgx5D17gqVIbPJsRJpGdmXs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(136003)(346002)(366004)(376002)(230173577357003)(230273577357003)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2616005)(26005)(1076003)(6666004)(6506007)(8676002)(52116002)(4326008)(8936002)(6486002)(86362001)(5660300002)(478600001)(316002)(66946007)(66476007)(66556008)(38100700002)(83380400001)(6512007)(38350700005)(2906002)(41300700001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a478hrzihM+oRmpZ+Eh7cv/0je8B6CzAVb1GAmBkkHuPOtebUaRwwlwm/pjqc6Ojwame4XOI3xGlkQDEgphPTol6F0mKZTbd18QQny+vSzf3aPH0qNsLoHxhAzuQEd85SzkPOy3SixF1/UOAQ2BAzDGaxBrEN97mnECkHn+rVJv5rbDwUckfnJnAlVr0W6RlTazJHXsktd1B4aJ5TEW1uMQaBCwLeTC2Rcr5YqM361F8RuIf5Vc5KNPhlJVU/TO2eT8PX4vZHJSmyHYK/hUa552H+h23MyX+iM5XdawNPR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CwDTzhHy3SHEW37xjLV5zJLLUIm539xVmEX8zBNHFOmEhmJcjyD/xa8VwFV+j3yfJYkkOhMBx6alKhTeQzelm+vMxPdbcUuj2zGxrUt9b34a9PAQZL8eNorigBGl5FmmTN7Y0NnjEjclDFdyTNxwSfJbuL6ZZkugjYP1+Qui5qrXe4htffG/cCBy56EVyrK28fX8Kz/3/q4g= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b69202a7-6150-4691-6630-08dbef9c0a96 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4845.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 22:56:07.8650 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lC4fXkTvtstSODC2gEa3xpsDPixkOt7z379ttgSIEmQvUdOs0rTIMuULfW2yczNvfRw97q+r12y0xU8vrdn8Zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7858 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:56:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783759686826828680 X-GMAIL-MSGID: 1783759686826828680 |
Series |
dmaengine: fsl-edma: integrate TCD64 support for 64bit physical address
|
|
Commit Message
Frank Li
Nov. 27, 2023, 10:55 p.m. UTC
../drivers/dma/fsl-edma-common.c:93:9: sparse: warning: cast removes address space '__iomem' of expression
../drivers/dma/fsl-edma-common.c:101:25: sparse: warning: cast removes address space '__iomem' of expression
...
../drivers/dma/fsl-edma-main.c:557:17: sparse: got restricted __le32 [usertype]
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/dma/fsl-edma-common.h | 6 ++++--
drivers/dma/fsl-edma-main.c | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index ce779274d81e5..fb45c7d4c1f4c 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -243,11 +243,13 @@ struct fsl_edma_engine { #define edma_readl_chreg(chan, __name) \ edma_readl(chan->edma, \ - (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name)) + (void __iomem *)&(container_of(((__force void *)chan->tcd),\ + struct fsl_edma3_ch_reg, tcd)->__name)) #define edma_writel_chreg(chan, val, __name) \ edma_writel(chan->edma, val, \ - (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name)) + (void __iomem *)&(container_of(((__force void *)chan->tcd),\ + struct fsl_edma3_ch_reg, tcd)->__name)) #define fsl_edma_get_tcd(_chan, _tcd, _field) ((_tcd)->_field) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index f53b0ec17bcbc..86b293eba27c2 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -537,7 +537,7 @@ static int fsl_edma_probe(struct platform_device *pdev) fsl_chan->pdev = pdev; vchan_init(&fsl_chan->vchan, &fsl_edma->dma_dev); - edma_write_tcdreg(fsl_chan, 0, csr); + edma_write_tcdreg(fsl_chan, cpu_to_le32(0), csr); fsl_edma_chan_mux(fsl_chan, 0, false); }