Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3450226rdh; Mon, 27 Nov 2023 14:57:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWOdBpkLESeV1wcsMJz7DJeiHpwsI7avC7T5aY4fXWOqOWuHbEdDVNAA/D7YN47f0seSl5 X-Received: by 2002:a05:6a21:a583:b0:187:636d:a61e with SMTP id gd3-20020a056a21a58300b00187636da61emr16359415pzc.42.1701125826460; Mon, 27 Nov 2023 14:57:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701125826; cv=pass; d=google.com; s=arc-20160816; b=b+pwWmGuk9jhq3dnru+djkZ4iZAiJEIUwGBZHDZUmU9FaXMQ04qqwYu8zHn4e5nTsH SbjEhU+OkHsXC2D1u2I2fEBrxgRfdTlLO2MgyE23jzBvdxMP/AjEwDuIJ5HmBgHG1ftJ XKXE7v7qM4cGYwoqykqxW1M7kR96VMmjwq7rNROPjxJQkgJlp+v7iF7uCZluHR2DQPI7 W1Ylu8KxzTAFWNAZ4fK+gJJvhe0BbOfc7f+6eRrm0PQ9rJseUlrtYL3O5rqVZXlIzoR1 Kp+gQTVN6TS/X/TQTkPWAZuY7WNLzjpu5sFuVqbT6pNEfDGkFe6Ygr3Pc9SqKWSIKYvb lTtw== 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 Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id by10-20020a056a02058a00b005bdf59618dcsi11982468pgb.641.2023.11.27.14.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:57:06 -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 D12D78060356; Mon, 27 Nov 2023 14:57:03 -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 + 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 ); 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 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: =?us-ascii?Q?Hupsw5qqkza55Q8VVj40N/00FNrrJ91Q5VEKh/E5xZxXLDQJ5fXgIYIfCYvk?= =?us-ascii?Q?UiptTGKp/72wJhwm9Wh8b5mgzvQo/PdQ0HPSgMgzN/rokkmbXKjqpYtuazDK?= =?us-ascii?Q?PLVhjflJNsytooHI7rcT/n1ahz4zkfn2wuxe1YdbtEyddxAAcGi62QlXwQAW?= =?us-ascii?Q?2M0v+ZgSOkYBf0P5CUKxhjLwaA6heWB8c9l8wj6/LafnZ9yI5aiAxzlQ99Pc?= =?us-ascii?Q?goNGyNk8+VXvArbPyYiYXMueTb6ehrQe58UObDS/HSs55u8eHUyzqkxUnB8n?= =?us-ascii?Q?ZZt8LEa0Z8oe/Kh8nYqc3QQQn9LPD61VcgT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Q?trNcWNXStW516NqQtgDBLGTYzqTTUYgubO9exJplbsIXBYEomYSOBdOfUV0j?= =?us-ascii?Q?ICLTjT+fYPn7mVat4KrakvybXyG+AJs4a+Ro44dX0yAQ+KO/cYCGCrGO/IGx?= =?us-ascii?Q?lCHJKDR5q7+SuaKrTzpfqciRPgmL6cJ4x09i6L95P+5OLPch4+8KWxpeoH4x?= =?us-ascii?Q?jvQMd77QUzAYuW9awdDWZKMvwdBHHyyPKzzEB+jtaq/e7Th2AoGM4IkV0d4B?= =?us-ascii?Q?fKjLLPCAYOEBi/pFmBkqB5bNFk2pieoGh/wQXVN3cgTIWGlJKxKd9Q6N5KQ9?= =?us-ascii?Q?BcxGiQ945lb1Xf3zaL3CcVsy2+b8XF0GFJF6KxqxWtMVUTXE995Intu+yVSY?= =?us-ascii?Q?4LDoDx5LQXzfDQXkfa0=3D?= 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: 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:04 -0800 (PST) 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 --- 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); -- 2.34.1