From patchwork Thu Dec 19 10:24:10 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: 13914929 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 2F40722259A for ; Thu, 19 Dec 2024 10:24:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603887; cv=fail; b=MEZg18wqzVr4Za0C0OeqTEdiHjY1zoLzNamZ2TMb2FSe0qMRrmL7O976GTYbFKCETcSJMKwPR0VWhTLLNXMThhS5iu96rleISjHhhV3Y0T6IQNp+iYzyFuJZ7d7Y2E5GPhKLWdFwunfvxh5B6DLREQ3N/Rqap72FbZz6YUsh3u8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603887; c=relaxed/simple; bh=8BhD0/fjnNlsUFzT3o5yEf/BMFJaWaTfKPf3WYocHFg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=G4haa7cVJu3jlrmLDO9BE9UMG0rF3LbYk3ZpkzF9XSCrXysEIBZpUcrt0dDp7VgQWj0M9MC4GfaihIW5NnvessEvG03BhrnDMKoCZCc+ZrisNkoXLdjsjGhmtCkRUgXnKh8irlqhag0mlwyOtqEdpsD2Cs9UUsAfWYjkoAF3lhg= 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=H7He/Fae; arc=fail smtp.client-ip=40.107.22.82 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="H7He/Fae" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vY9gk45hd+7/WWIrdyZrSTrXJBTGVxTPuijgNQ0gqfG+SKRsrlAIVGoJtW4ZdRlrHxMsi/q41+sjLwiJqqBThGM+dSUSOE1QZqIPGsZrM9Pr28MhuiXuMTdmZPxBbW1bf50tZNRdtjCxFmfI/DfFdgDQkH1k7IyltGdkRg0ordQ6GB/ehK6XKk/uQQiBZZVSaA8sca5L1/pUe2h6G9cHEMLxOWzblD6Josn6pJId6fdaWlIAejMgmZH+mvKHFZh/ob61JBj25jeARH7YIUExSkoXCOJFQwPLl6OMVaeOCsB3WENiPDevDb6sV7wv5DpDjLPdbGpguIPLOpOpEZFrPQ== 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=vLIJ+7nBBLog/Fi2pEuYSaG/9xdVGhxe8g8HDmS8MA0=; b=F/dG0S7XEsdh0L0lQImajp7jwYs03nC+nqCV5ZDKELBWxWhcGEVRmKEbKWWG1++FXbw48L6hSsjYURRfuN3tswNciykJ83m/Eb39OQNEs6QlEnAZBt3Uo55YFhpCMYQpapALNo8iQYY+WMDScZubaAZ5O09ClOgDJMoHwAlolT/kbJ9L4BrbRIBIIhm13l8DLV2f3RqASQm6GxGRMyHwJDflguQicnYSSupCbE2a3mj2qllXAJ4QVqmLo7X6117TZoH/Dt+13MgplM3VIeOcT3S2/bQKf+S6RP/gTHbUkdxKt/NjokAF+UVDsYwn4IxCNOyJsR2YvfNfLXI6lnsm6Q== 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=vLIJ+7nBBLog/Fi2pEuYSaG/9xdVGhxe8g8HDmS8MA0=; b=H7He/FaePXF1i+Z06nGDxqATkldYws8Ni/Rm/dD0QRRF6jgxh/V0hrDkkKqhodygRPbNGF7ZTOXhW1dkvtKDyNpOX4qDmPOEmnOQvYszdwhuaCuAWEfcZcZDry+PdSUTlE5+0KD2gRRkdHuU2KNoEhwNZvYaeepRdu1GB8LOIoGEZPMHBPRjZJb1/5Wn4KFf12OkDZz1RIFY2PA2T5VFSJ5XCjfOZPfyKcKAgq/pkGJo5A7Rr7rrVFuCYuPXa93Hrl+Hl7+JDXzBBNOcn+S/fj4hEjkzJxrA9q30owC0aVSXKAP0tDKyvBMwjEArhhAtbxGyEgJ9nSeua7moJpr8vg== 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 PA2PR04MB10187.eurprd04.prod.outlook.com (2603:10a6:102:409::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 10:24:40 +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; Thu, 19 Dec 2024 10:24:40 +0000 From: Larisa Grigore To: Frank Li , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH v3 1/5] dmaengine: fsl-edma: select of_dma_xlate based on the dmamuxs presence Date: Thu, 19 Dec 2024 12:24:10 +0200 Message-ID: <20241219102415.1208328-2-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0125.eurprd04.prod.outlook.com (2603:10a6:208:55::30) To AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR04MB9550:EE_|PA2PR04MB10187:EE_ X-MS-Office365-Filtering-Correlation-Id: 1fb9f512-b46f-4073-d144-08dd201758bf 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|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?JkxDbwchFj/2OtyIx26ioQZMroFxh7Q?= =?utf-8?q?RuDnTAoQtYMfoy81FYK+swsHxGRtgeV0kxXeUlMay1PkL/jtER4zNzQ6M5dv9k1Hp?= =?utf-8?q?Bp5ADN8MTJxy2b0hHitEv5ENU22RiAtFxNFRNtE6PQn7FpGqoooCPqUNMqEvya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8?q?SrM2RcGZPOI9Ij1hbnwX4DV9RkWPVaVh8g9drOkf7ENDkfbMNkkGr+c+E6b1RIrVN?= =?utf-8?q?DnR7VJUPjOKax/EwgmMT9ucgOeCRYGq0ap7JW3znOXg2t7NhP59IkOKDg41Nj8Sa4?= =?utf-8?q?iXzW7TfXRVvmghOvVC8Nz1LkpgXnragEYFNcNtAkvpKOyi+g3Fy1dDwnZLbKAnIbq?= =?utf-8?q?Sv3P8R4DxPpK5WBN/eus2659/LFlwDtLAf4EANkQqxfooTTUE63Ve3s7jhUzppyjQ?= =?utf-8?q?bw6ZNyp6bgHbPlq04LwdQPBHqfyW8J+6NLXvikHAv0I6hB7BPRK/rW90jnh3GMHsL?= =?utf-8?q?MiApCWc8MgEi?= 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)(376014)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?K1vspjKVmFu7R/WZVouapSbmil/h?= =?utf-8?q?MBYQi9oO0jXswdE/CNRdtpRTUSUCE/GcflXNt4OanZ5k+Mtd3jixhOB1PUmJ2sGoR?= =?utf-8?q?1lnPj2od1szngKKMpqypqAtHsxS6MdECHhARLgzT86+gvpozRw9mtgA+xN59rDaoQ?= =?utf-8?q?W07KagGeM417aeFxVGX/BwXN6K7a2CEFeX7bSnKGV8tGH25DtdKoybVq2H2hNOJqq?= =?utf-8?q?+AS5yDPInc4WkCeRAXpmeSNx63tPMb/hZJ5/FPpxUzl/EnNjBZGguce32th8mjtvP?= =?utf-8?q?Hd0UoEmjAMhDDtB9d/E/gNptnpIWtiEviye+6BXKzqUiLMVfO/KBvbO6KTw5Q7JYV?= =?utf-8?q?h0IISXQ82gdrwZgnpzQQ10IuBRH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KepqtPvzHf5zHAtpupVMN+wjFvZr1Pkk?= =?utf-8?q?orJq97T79rO4VNOx3UmlI6KdbNeY2ea3Oh8oF2LRHISBCuXUZWapbHFmIp0ZoFkO7?= =?utf-8?q?5D4VX6UcST3Kw1hAJx7IRXAbW5iUrC8SFs1AO4QCszUu6UF43FrFrC7SWZnirx/mp?= =?utf-8?q?/S1mJbc/UJmDu17DqYnpA/qPJ1KKz6vVJfAY8Oh7P83Ppo2YN/1E1K8d8demgpNAw?= =?utf-8?q?YJWbw/QdX/JcRBYCEnOR4X7qcstBtTz9OUcazpFk0ZhfAQn+4ZR+fdiCQ36mvxc19?= =?utf-8?q?0VTavL2XU6MEzfs8W0pLgS1QSS4JbKruZQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fb9f512-b46f-4073-d144-08dd201758bf X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 10:24:40.3103 (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: 3DfSqFRh/bmJSZzxaV50Us0NcuAJ6mZfHb+N/5Khckfu5mLcdRK8v13X0nMGV/N57LKezUWQWaOu7PMy+CNrGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 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,