From patchwork Mon Dec 16 07:58:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larisa Ileana Grigore X-Patchwork-Id: 13909318 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2070.outbound.protection.outlook.com [40.107.20.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 655AF1FF7A0; Mon, 16 Dec 2024 07:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734335914; cv=fail; b=DSgUuQe3NHhoyLjew5zwjz82yjgRDVfQpynywzmYUmu6kekD5nB/G6vzvZNyjvBr/MWUGetO28VEfF/eN4boAO/XSSlIRc6z52pchxLrM7tjYbMrZCpbkTfhgKAnQwt9IZtCcsADYhbLQRERvRPOzJfiI4FPUXkCHbt+axcbdGg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734335914; c=relaxed/simple; bh=h0ThtxV2ucK5fq1zwr19IsUVH2xykBQ117Z82aAByH4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Z8DPjPfzGJHk7x980DFURs6gD2UyGbVVfIG8Rvoj1Ko+lWhDyEU1lQccOQSNfo48xnLn9fibpK+PTIrhTVLQiiFQKc+k5Vb977d3lrlOK60pbdyd+vz4wGsO9BeEJarun7x2DkC10Rbrvw1+VPBkVxEpNvkID2eJjiYBydjQGQg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=Lsa6P90x; arc=fail smtp.client-ip=40.107.20.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Lsa6P90x" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uiQKAGWWKNGYOKzyt/TaJblTyJN6WTx+InMqqziViHFnUXh4t1xdLO8wSZfBJxSST9ov1uqiO2j+ED3MI90Y9MkOBiMULpTdIdpQXIkaMAXdMNKLguSTSxposL5Z8F2K6V+X91b48Y3L2x7KMn8vCV/NuFfEtqBCK8JW86B/m+0gEYzVNrbC6HxWn2Jpnhs7wldDWm1BvsJ+QfsT442m3cKa0ANw9cNEwjpQiTIRmGFDUt1I/NuahH0mfd7Bj8GvcUmWqkTMXgIqVVl9r3UbseUljZVbkiKyHBKU/uhe6t/P2lsxlQ8a+qhA7laK7Jfmq1Xh+m5lmO2QQVYpHU9AZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=EpYX/Wba9b9blkBpLq1qKc1aLSTb28wIOKVhcxZUOj0=; b=yC9gBgFnZ9rX/4zxrBO1edN6vedm2kc6cc5WpYMWF5m5PsIexek2UEx4J4N1NbVfSGXwtXG8V/FSCtDSnXpSWoEf3dfHhgOcYQsvajqjwzOqcQB3VAq3RpBwKeqo04emqZVsoVMtFw2XLjKCT+0pam1EfE8hJn4k+cqpDtjhzSGgy+mxmLYgD5xTP2nKCRxlcvTnagUAV6k0KJ/YCpLySIxg7RH4lJkGd30te5N+VChkOM0hgC7eaYRj2BG9CB70kpN0ocrXnIeKelkWJ9TaGGbgyplGvVIQXj8g8pzZR6uTa6h5B+Xtdq5tyWSm2IEnjA7Y0mUKIEozY55rXf4GGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EpYX/Wba9b9blkBpLq1qKc1aLSTb28wIOKVhcxZUOj0=; b=Lsa6P90xvi0N92GkAeg/9OJfNjf/wdRzAYaWRuzijjNtWihmfd9nzEn9z743v8R4YYd9eoB3Kjdmakd/XQDvQXRNgY0W3ea76eArVZFtjR0F+L+uKzpUxEHiDb707mf/WRtiGvzh7N4WYLR+v0XKevPoHa450sbLzYbdWQWWY6/GFCpNepWF40rHkhOPDd215pY6EtFBPkrjPOiqAdy1cDZxgJ4w/wfODmN+hHbGWp97tYjHHn4kbsQuiGjrUG57bQQ/uSXJ6xZKvjWoV/0jsj3ECicn49Pqf386NNYoY5HxaOi2ADMlNhEofUYbd+iOZ2SdldbgPvyEtQMNzLozWw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) by DU4PR04MB10361.eurprd04.prod.outlook.com (2603:10a6:10:55d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Mon, 16 Dec 2024 07:58:26 +0000 Received: from AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7]) by AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7%6]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 07:58:26 +0000 From: Larisa Grigore To: Frank.Li@nxp.com Cc: dmaengine@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH 1/8] dmaengine: fsl-edma: select of_dma_xlate based on the dmamuxs presence Date: Mon, 16 Dec 2024 09:58:11 +0200 Message-ID: <20241216075819.2066772-2-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241216075819.2066772-1-larisa.grigore@oss.nxp.com> References: <20241216075819.2066772-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0108.eurprd04.prod.outlook.com (2603:10a6:208:be::49) To AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR04MB9550:EE_|DU4PR04MB10361:EE_ X-MS-Office365-Filtering-Correlation-Id: 06176cb0-50da-4be9-f314-08dd1da76bdf X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?KhW0PWqz/Ohk1HAO78PnuDqZ7Qaao5k?= =?utf-8?q?d6O44EU3BMvWCzuv42YBNdE5P5bsJkBTe3WpqFoZ7lKayIB1jWW7/sLNpOy6OvKyX?= =?utf-8?q?nJH8kUnJtbhHJrJUL7tj+q4u+G+HF7cdyQu+Ha3Io1ZKJZ4paCeVhIJ7wPVZiU19h?= =?utf-8?q?FwvO4G07usV9aHcGlXbmKtsn4W6fUcAJFZS86t9shBHHPLnp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sJXHI?= =?utf-8?q?MqCUBD6daKXAiyo24clkDjoCI/Du1X17FrXtXdrDV4hPMr6yzO5ob2gkcj+GKcQRl?= =?utf-8?q?dx1WBT96d3nxggnJoX8vFbJYuLt/rqEfDnApbL6bu+R12un//TAbY1tIvkf47XLyd?= =?utf-8?q?rwULf0J9B7l2PMhoHtXnelcuKppXM+5To3EEg+yY+gbZES3McWweIUnb0j0qDmSUW?= =?utf-8?q?tKwbJiM1Yn1cU5X4aBPS6VDxCHgYPTIzME8PmjEQM7zwRrH97DK5oZh8YiRE3oHxg?= =?utf-8?q?iOpuXkxXKwdN?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR04MB9550.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Gf5agLMAAXqJWUf05tWQkyF8Cu1N?= =?utf-8?q?d4+bxijIQoAONaiZcKMnTfkG6mGZeLIsA5L/VevyH+aZ7/cZMh7z+DiMpY2NN8lqS?= =?utf-8?q?B7oEwtBRGhKPcXIYr7wVmxYdMVFR7m20a0QvsL2qv1GqRMsYMUuyX+9p3JdI0A+dr?= =?utf-8?q?7fA5H9VipQgMKz2OyuPbJtISdu4KlXZ17JbV9SLv6w0P/x4LKrtQNv3w5PgFX6hqE?= =?utf-8?q?3OmFjE32IeC89hDTp5ji80FrMFyh8+4d1u/yVQzXI4l505sd9Ed7J7rTaiWItWQSp?= =?utf-8?q?L100gs8ou6lLhO/6QnLjig2o5IHYPDkD08V3TLK4o6wn6PyYM7/TPsnTJb2lNCEZW?= =?utf-8?q?/hWrogy4tgT+hmcJOCRuKrFYhH0ufBfOU6fWJT3fdjzq1WWw9Jw05DC26YAo7cXQA?= =?utf-8?q?eSLwjjOI9hY0ThzXiaC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Ck5GwOq/Rk4Acjk5MuEhoP6XgkJlX+8mcT/5RS4h?= =?utf-8?q?aZYSrYbjOneWeh49rviFMxjBEMDe/UhJVzncH33wgH8xy4TmG4d5RJBg7k5Ue4OIy?= =?utf-8?q?sCUH3YjzOe6JjQzU5pZ3Ab/Rx+QFGvXXoUGnJm/zHR2MOW8zrmkAWcVLLqIfEqzn4?= =?utf-8?q?IfaFQrd8bIFNC/YicLbpyJFhJQO6OHEEZzJkjaR15XjbD/+prnnbro8Uv2aNOYjgg?= =?utf-8?q?uJ/W4xpb6wye?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06176cb0-50da-4be9-f314-08dd1da76bdf X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 07:58:26.4884 (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: Mc6KEIWXzh1I6ZDPQaMkhizpJI2r68B7Zwbp2pLWWh53HdSNLivMTgERVWhCumF1W85rJlE5c1VbSAkz4PInbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10361 Select the of_dma_xlate function based on the dmamuxs definition rather than the FSL_EDMA_DRV_SPLIT_REG flag, which pertains to the eDMA3 layout. This change is a prerequisite for the S32G platforms, which integrate both eDMAv3 and DMAMUX. Existing platforms with FSL_EDMA_DRV_SPLIT_REG will not be impacted, as they all have dmamuxs set to zero. Signed-off-by: Larisa Grigore Reviewed-by: Frank Li --- drivers/dma/fsl-edma-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 60de1003193a..2a7d19f51287 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -646,7 +646,7 @@ static int fsl_edma_probe(struct platform_device *pdev) } ret = of_dma_controller_register(np, - drvdata->flags & FSL_EDMA_DRV_SPLIT_REG ? fsl_edma3_xlate : fsl_edma_xlate, + drvdata->dmamuxs ? fsl_edma_xlate : fsl_edma3_xlate, fsl_edma); if (ret) { dev_err(&pdev->dev,