Message ID | 20231127225542.2744711-5-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 o2csp3521827vqx; Mon, 27 Nov 2023 14:57:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu3BOgMnWgUC28qB7dy+xXSs5S5T9PyhTLVdSCYjNv4yl40/1R5kdwJoiNU3SRrL36I7Ia X-Received: by 2002:a05:6a00:1d0f:b0:68e:2478:d6c9 with SMTP id a15-20020a056a001d0f00b0068e2478d6c9mr13427374pfx.2.1701125822375; Mon, 27 Nov 2023 14:57:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701125822; cv=pass; d=google.com; s=arc-20160816; b=0G9sVK91cWfk7GqcpBf+cx7zLsNrd9VsoDKnhp2wmxCcNfpnnm6f5dOW/F85RlsVYy NBIcEA7KnAhIju7Te9BWDVjVLW3/ZyCJaFYYzitpi0laLtoYl1t4H5XcLTXGLV1zRc/F qyCbgd0ei1ePgz7+9XpeD9B2wEl96is5o5JS+lDCpaZEoj36mr25MhrxxczbfJ580hs2 AcJr5tDb8I5Jakpu6ZEvblXVZgPsCVkAcjZZf2J5VhjOEPtp6rUdoq7uwyLODjYi9Ntq oZkdwQQ32zolutdB7T2xaFS8sQXbnVHePtWnsTbATKrkODv2cmBXwYMWmTJslESh5bw7 OqTQ== 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=W+zRSoV7LgvuOA6yhNiUe6i0nJhSsRxigx39PV4Jq7M=; fh=WwdwxswekiDlcDQNcHvu2C9Zy8N9YQStHu/6mj4Dj6c=; b=CscvEePY6gttMxW38UPAxnPkRqHdG6wOvQBsoOH/pqmrT2Em/x9FCSUXuX7kzYyeYY HkUe8V0vrLXAuM9mObJ99nr45slHG51wNlXXcEeBkPcpNAWqidTt4ZGQ1bmLS6VLVZ1y 8K6qWrsqbzqfPzQB8N5qa5shK0ya/q2Q5bkqFBjF36mj7mA7vhQSudew8KcYkMQPXU7P IgyOMi4t+nrMO5qZKej9o7JjxbYFYp5GfHX4gCW37mXKg0PHv4xCvCT+xum2iebXqm/5 MmO50vUpcqS5suHnnteBj327QdLuRyygYrrLtkmGlgn5aTiHzDQ3yRhGPzJXGXqhj56S F1BQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KNjsphWA; 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:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z12-20020aa7888c000000b006cbb7fdff10si3247775pfe.194.2023.11.27.14.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:57:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KNjsphWA; 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:5 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 groat.vger.email (Postfix) with ESMTP id A61478060356; Mon, 27 Nov 2023 14:56:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233904AbjK0W4V (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 17:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233780AbjK0W4P (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 17:56:15 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2082.outbound.protection.outlook.com [40.107.13.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370BA10E4; Mon, 27 Nov 2023 14:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iwaLJcQIvm6XrvMMbInjVnzpTet4IV+XA4aI/md3vALT9V1QvY7fQu/T8IsKPFrkcOzVyn9JMcZVJYXqDt0ytSRIQIkCBdg6h0K8pbqcn1KgZGwyLPlVneY2C+IIigTLhcQNFdzTMdm6FsgR1viPis5thU/qA24J8eXW77XMuvXLs2Ournr32JbjitaZxGyKpeWfg4AL/P+XLke4Q705iTXSUqJ+Tcmz522XaMSnWnk5L+1yYbnJUKePHJfhaBkmv12R7zMyKjV+UyfPjMuB0FPK8nKfLagQTMqPOOrlpX366xsHtdr7bGrvMvUmmJR0QW7FGTF4VTdYeBy3kaLArA== 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=W+zRSoV7LgvuOA6yhNiUe6i0nJhSsRxigx39PV4Jq7M=; b=R3tJ61GI+hWifQQMz3rqWrcYhnLipBkM2G0Z/oYdgyZOeV3FMbFpykKCMBpfpe1zo0XK1A4aPEyT40eIqlWhTMQrA2tZOHukGVrZyZHfVSO2WqpFKx+D4u4kN14u+QpoyVTgyFYUb0NX91aUBf8FbmZ0ae8mM2hGKhB2PFunyHS3Y3kY84Tv+rnfB0B926M2AaR+IOxJuEIDEZHhUkyNxlBAlkNsQm9/R0AbuEXOEBmiAhNjIXx/X+JYp98woYaa9Qw4pB4bYbMrzA5G4pYUvE0xMPwudiSLMn276ES1T6t3Pfy+cerm8H7YACBAOF7AerbCKr+McyciE+abSbUQfw== 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=W+zRSoV7LgvuOA6yhNiUe6i0nJhSsRxigx39PV4Jq7M=; b=KNjsphWACqRJTjMnmDcViuGTKk9hS2uf7KNC6mmcqL+AwETCsxJhgIP9Vv2Oh9FxycOpMiBv5e8XNAw7EtT+0gbmP4/t8lQGUnGEUx/sOIihaISqcTjBCzPD61we90eD8xUyXh/lWUn5vgBdMPndSnSFRKMH4m3Xl4uGZccCtdI= 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:15 +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:15 +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 4/6] dmaengine: mcf-edma: utilize edma_write_tcdreg() macro for TCD Access Date: Mon, 27 Nov 2023 17:55:40 -0500 Message-Id: <20231127225542.2744711-5-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: e2c3af9f-b6e7-4603-a5df-08dbef9c0f07 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mr1W+RjIhC9fb/nIR4HHKYx2pEkDv93ct9yis5iVKfuibvLp8nKtr29/5KIzHgycjfep38kl8DrUq1lou78jBby7BJEv7mTvImxNISE70Zw+reCf8s+2sqijwwVLQLpFfIBSiLUT5jbpWF1FkFQIBuQI9ZHEdONMpFewZe1Nlw4IPRBSW3u5q3tBT4IsBmdt3o+2PqwWOx+O0sXtSHcbiY+WDu/fGQ+XTNbo410DZl84DQdGspItQI99C0aF6UfMz6C7oPjpkMDQXPQwUMznklRJ+8ve+TWAP51JSMZUOuRZzWkTTFUtovAvq4tSYGCFfT2X3fu2GOcYWPs5mMwFlhajDKKsvIwlUeLYfNxNZA7socoU1isTbgyT8C3kpM3seF9rGTS0bCowGGBJFODh0p5m4rCWldE8uGhM38mz0z4OpJvCBv57MGGGdKl0/5yI572wQ64nD9DYOm2jyy+gRcUuEdOjSeaWBRKifDS519bJxxhhvrnB28oTcpg6vlHVEVw8II+8l2KsdC6GdDJai3TFIotHnxmtHYorMBrxMwkQRI8xwDfZ27Sm/fq0zPpLmHdt75u4X08ALNlKaEUARgjSgajGZ4Bu3aeNDCoCpSNkWiWwNj7BpX5i3HoTR6y0w6OafVXEBzRqzaODoJevYakpGMYtZpxJw4GaSSptFcU= 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)(4744005)(41300700001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Hupsw5qqkza55Q8VVj40N/00FNrrJ91Q5VEKh/E5xZxXLDQJ5fXgIYIfCYvkUiptTGKp/72wJhwm9Wh8b5mgzvQo/PdQ0HPSgMgzN/rokkmbXKjqpYtuazDKPLVhjflJNsytooHI7rcT/n1ahz4zkfn2wuxe1YdbtEyddxAAcGi62QlXwQAW2M0v+ZgSOkYBf0P5CUKxhjLwaA6heWB8c9l8wj6/LafnZ9yI5aiAxzlQ99PcgoNGyNk8+VXvArbPyYiYXMueTb6ehrQe58UObD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cJ4x09i6L95P+5OLPch4+8KWxpeoH4xjvQMd77QUzAYuW9awdDWZKMvwdBHHyyPKzzEB+jtaq/e7Th2AoGM4IkV0d4BfKjLLPCAYOEBi/pFmBkqB5bNFk2pieoGh/wQXVN3cgTIWGlJKxKd9Q6N5KQ9BcxGiQ945lb1Xf3zaL3CcVsy2+b8XF0GFJF6KxqxWtMVUTXE995Intu+yVSY4LDoDx5LQXzfDQXkfa0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2c3af9f-b6e7-4603-a5df-08dbef9c0f07 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:15.4769 (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: pBs+f/g2PEkyXCTeqTTjAt5vKB0Cwk+s4IVt34gwCFzgHL3fg9dVcaGNoiy1uXg0XzywKhIVLxa9N++DkwUdjg== 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:57:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783759710347468028 X-GMAIL-MSGID: 1783759710347468028 |
Series |
dmaengine: fsl-edma: integrate TCD64 support for 64bit physical address
|
|
Commit Message
Frank Li
Nov. 27, 2023, 10:55 p.m. UTC
The TCD structure has undergone modifications, incorporating fields
extended to 64 bits. When TCD64 is enabled, the TCD type shifts to
'void *'. Use of the edma_write_tcdreg() macro to facilitate TCD register
access.
Add cpu_to_le32(0) to ensure little-endian compatibility with TCD
registers and avoid a build warning.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/dma/mcf-edma-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c index ab21455d9c3a4..dba6317838767 100644 --- a/drivers/dma/mcf-edma-main.c +++ b/drivers/dma/mcf-edma-main.c @@ -202,7 +202,7 @@ static int mcf_edma_probe(struct platform_device *pdev) vchan_init(&mcf_chan->vchan, &mcf_edma->dma_dev); mcf_chan->tcd = mcf_edma->membase + EDMA_TCD + i * sizeof(struct fsl_edma_hw_tcd); - iowrite32(0x0, &mcf_chan->tcd->csr); + edma_write_tcdreg(mcf_chan, cpu_to_le32(0), csr); } iowrite32(~0, regs->inth);