From patchwork Mon Dec 16 07:58:12 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: 13909319 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 79D0F1FF7C3; Mon, 16 Dec 2024 07:58:34 +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=1734335916; cv=fail; b=Lhy8X+QBh1+zbSIl/TTT75MJc8JwkYMvwfYhxNI94y3OhBWllWvGb5qWoeOAlNmq/J7HR/vXlv3W0klp9lQTp7lhmcHcF4KXxy5P7aFbX6Qhe/1NZ/hOcdO9T16l2EhDP5iric8zYkhDGaXxuXlV51P9AGZs+ZPvaJppYugkzII= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734335916; c=relaxed/simple; bh=4RvqRw53/gE8ei8QYh3kZPxplhESxMfoCabtJ/xdZFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=BzQhT8Dn4G20IEa0XHgUhb9qsXUTFNtFV5d6xb1VYq6Z88nOzSf55VxNseOoCaiX54qR0hwDGS+S/EHRVqXD48jsD52/gTZ7PkqlNAFklMEBYhHyl9zRemHuQYxWXph3hdQ6D9E+Mvfme4PSO6kHCqu94Hf2y76Q3ZF+bwKhhV0= 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=m09XuUgB; 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="m09XuUgB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wGoH3fghyZ1GJG5yP0/TnS7+++DOG46JLSmV/EfV1XRYUtCbsoDA57tOcVhBnj4BroQl9fALW1H0WQaPgDS+GmNzdEkbbWHRbVzYM+ls0as2QetVBr8XhOCd98XudqZErzBEXCoYIo6uQI6QoPdCd7tQZ19mMi1qHljZuYKdvwiIyP5Tqui/g+0a06Dh0Jz2Im3CONAkmZ1kgnR6UJP5mCcZzeTDAc96MiJGFLmMy6rTogZqqwA2ooaZsqox7YLUmZYar7B6kCBaKXQZCGTpADIdtOO7Zb53rfs+KI7+/EXOOwIQrd63OokNXLZ/0QOiIxL8hXaFTT9F2yPG0QhyUg== 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=oVj0tlAE8xUm+s8V2QlwaulZloHv7aYC5xKhXGA537M=; b=CMhgZ4FBF9kdwcLeZBsxTsUURkb96UuPT3Yo/yymiW7zx3uUdWkAyoak+UWYo53HQKTo+hvMwtx9zFV2wMXuoMIGncnhW3eErwbPr3NWaRdUBQrfEgxfjvlOf8h7mRMPIizJ9LvL6bF7cS1IJTPC1569f7l3Q1mTCxk/5UWIX6Pnjcs+fdc8NrTdkIsiYb5ZvQ2gjdajUP6X7yqDHEv+vJac9spQxgqABJ5qcvyEEadi6hFbNP+8EXEuwlOQx/AzSUwteAjYgmURdSj/aJhmI8IFx1fyN9yxbfeCidS8QCnExh7T3pTTRq2KykgI3Modw1dAF226ymu0BULDUNFrCg== 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=oVj0tlAE8xUm+s8V2QlwaulZloHv7aYC5xKhXGA537M=; b=m09XuUgB0pl8wRz4DFaj18JOTyiSd0Xs9vMwPeAvdhHSTDcSeX4g8lJyTQa6s63BxBVyR8eYt81DHiPDV6yDpk1axAB4+uIH3QI5Yf6RNi+OaWuxyaWvihrbYS71Xg0S0HLgzasvYZ9IAQbNPy9bRhZKCJ32DZhcycBWnIDqYzUb4KEmDze12UZHJvLS2aU1c0Q7kpDzhKaakz6NogxHYLpSOisIOkkOzDGbCHzlUsVz7T4/CsgWkC7I59tkRmHoNwJCbh/Iful5s3Xb9kttgwaWl5h49RDX2fF4hGIIgZUd4ZyfFsrnXI7hEbaD00GRr//S8Qo7Ag83dIY3Y7QnTw== 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:28 +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:28 +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 2/8] dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase Date: Mon, 16 Dec 2024 09:58:12 +0200 Message-ID: <20241216075819.2066772-3-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: AM0PR04CA0080.eurprd04.prod.outlook.com (2603:10a6:208:be::21) 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: 866eec43-0fd9-418f-f2b6-08dd1da76cd5 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?6Z5KCvF3Uv8AucrBt41GjYsIIIjFtqj?= =?utf-8?q?1Q5Fc9U9mWZj/8pESCCBVggBRnnjb3bZ2SEkICcnLLOipkuMByFmfxQ+QgMSOPdti?= =?utf-8?q?/M0Z5xfuf7Foeqx8H68obg2cTCZUJODShy4X3aZvF5G6NHsKcuCQ6l6JLtDk28FYA?= =?utf-8?q?LnJWBq8xkdY8iITAj34AuZFa1p89Tebr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6dxlPsMKAJPF6+WQyreFccgcbvgsnthabZ1NmE?= =?utf-8?q?RsX98UjIK9IQ3QytzmHXQsbZKrjuCEHdM01bill/cbKtCaILsRF0igyYgGLbs1XzJ?= =?utf-8?q?TNeVKO25YiHCgN0eBnvbNOkrGiJyxmcpQRQ2X60UGDi74n/D2pwHorPPHsHIrM9Zr?= =?utf-8?q?H0mDDTsfMBGmx1Loe45phX5pDsXw7Hsk/VVw7sSwyJuoyNj4o74n+uCbHlzL0HIWk?= =?utf-8?q?n8YDswoZq5a9daqgK7jkmUprrtS3+oMfB6v9ZJC7NpXSeDd73rGLDtGxxFR/zmgNP?= =?utf-8?q?x1SDxccGWJL9?= 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?yzugT5MBYs2aj1xjAfoC8SdONuXo?= =?utf-8?q?3BUB1UAtVDdOmkh7+jv6hR0xzzFSVZvbciiBT4ng1BOvxRFCR4GRXNJP538x3oUG+?= =?utf-8?q?vcu46S2d5+B+8G4RNFbMic9iANIiVka0DouL0CpSl7MJtD9mqN/mwlTE3bU5tObj8?= =?utf-8?q?Ypap2rX5nOM+hqEm067cTL5lgC3XYBRWmzNFHwq7FZyWmzCCShDM/sScOkm1UyL+T?= =?utf-8?q?lRfWZGqHGmATGCvkFwmXyNtdihzw7wweiWOWkjh9g/vXxVsIksRiwSnINI4ktAeGW?= =?utf-8?q?NG8HAO7+L6EgqET67rl+DYJq7KdFL4yrp3L3LloEW8kJGe6HsGF3C5dZKtnGfn83f?= =?utf-8?q?prlRs/em6oy22GmjL77nQmEf+mgKpYmnrDEzva6YNqEXe5yVblM87tpKnZN7Eo9uj?= =?utf-8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?JgPp+3r1bAWMOzcJf6mhZmhHlxaOzjgCJ5HjYvJHwgL4CC53Gcn1VITKZ4wRGgfBD?= =?utf-8?q?fRprhQbghmbSKsUDbEGRb84cIWTdB1h1/80GN0EsnslVy6uo8eGDGOAi8fiuwvIMC?= =?utf-8?q?YfuM7TaB2448nO+F8vR8maZ094nNWRO6KJbPwBmt0Z5jBSY6Vy4F/u02+ZaNkQhXd?= =?utf-8?q?7tfueNygdHNPZK3NtyBIzbcV8LMjwcr5MEza4+o6IDjWdXElHFHrgXQ/HjI7kO+wm?= =?utf-8?q?zCugCWToiCHH?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 866eec43-0fd9-418f-f2b6-08dd1da76cd5 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:28.0982 (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: d+5rXYWj31qaQPR0c2gtH78QeVe2y3617lPtUBAMuVnXKBVbrF/Vg818P4EJsyTA879gL5K5FIGNDG2JDJevZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10361 Clean up dead code. dmamuxs is always 0 when FSL_EDMA_DRV_SPLIT_REG set. So it is redundant to check FSL_EDMA_DRV_SPLIT_REG again in the for loop because it will never enter for loop. Signed-off-by: Larisa Grigore Reviewed-by: Frank Li --- drivers/dma/fsl-edma-main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 2a7d19f51287..9873cce00c68 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -517,10 +517,6 @@ static int fsl_edma_probe(struct platform_device *pdev) for (i = 0; i < fsl_edma->drvdata->dmamuxs; i++) { char clkname[32]; - /* eDMAv3 mux register move to TCD area if ch_mux exist */ - if (drvdata->flags & FSL_EDMA_DRV_SPLIT_REG) - break; - fsl_edma->muxbase[i] = devm_platform_ioremap_resource(pdev, 1 + i); if (IS_ERR(fsl_edma->muxbase[i])) {