From patchwork Thu Dec 19 10:24: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: 13914930 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 5CEF8222D78 for ; Thu, 19 Dec 2024 10:24:47 +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=1734603889; cv=fail; b=UHMtsEV5hrwRDaw5T6PDacmckq5hKLA74DUpV0ypTO93mZfWMNwPZjvtwfz6rb9pr/e+PCrytAoAkYqOUcu0O25Zuya41vBVhyEVKZViJkDoK7UAYO++uF8ZtkRe6GHrjOwprleRQjs9uAvExByz2Mo/cadKoAuC5HKOrvL3ams= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603889; c=relaxed/simple; bh=98XY1a7JJVwiXnOcAyieAc4D9SnwiEirbyAuDC/CiBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=lkKCM8K76FWRvv1cQHuBGRV22JSdujy5d35MiyAHiFRrKW/LASPGKlfn9iam8oAA7Jy1IpmDRnl6Kh6b3Hh829AR3q2md/4PCzaqrAL2WJZmR4Pd6eyBdNJsACPr0wo0n4GufEHqmKeaLf/aBl/JW1HCHwo6jOJI274xzibiT3g= 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=l568iqs6; 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="l568iqs6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D97MlnxKqCxoMD6drAJR7Qqt7G2yRht+4r8R6N+U+zd/lqLvkVNUnum6BV2gFycRU/ZtK6HazM3NBuR3x2qPhYuJ6eE1IZ3jdBkeGd8wmgem9vWsYn0etjg0TgEy5m4ef1vrCQ3fyJBPP8KwhGVGmqo4tdZTJiNKwJyacllhF8+FgFudNp41zFhiNk5PCfJwHeHS9L4Pw42ab/4wT0hO3pmvet6B77BSmf/qthl4NX9ZRts0Cc7ggILrg/o4pqXn48R3lPDS6xudU681P5f7d7m4M0q9Yukm9ekEUfCODZVCSmVbOA4H42t+koWQdowBBSNErYgf2YZp1eWUc2Jjeg== 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=9CmmJJtzZ4GKvoSl5NZeQ2TTqc2zau2UVovMX1/ogI0=; b=dMK4YjYWQk5MkmyZqo/C59QaADJoPgJSgQfmQYYvYitphvEo/Z4QbkploMfegcMoAzkX/+9Oi7H93UI0FoWwYOWL6OqCjUScVV/FlM7siCvUaShIrKmd3xytwRcfwiMDhNm8py/74d0P1gEw8zru26rRFzJTlUs6pNGr6XT9xHirQvx32369FSU9VlzpppTLpUQlHXdGZh9CcFXJc9MCA+UnfzpWCFUc+j4rBLnVlfW+EIqo6SsSL9cqk81tAR/Azh3tzI+PLYBzXSlxqGRoHnAY6G6+ePRWDTPwdHyAZS2GFoOy1ktI+oS6JPK6K+1uX6XsJsLVlZdZxjId/pN9Ww== 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=9CmmJJtzZ4GKvoSl5NZeQ2TTqc2zau2UVovMX1/ogI0=; b=l568iqs6fdf8J//r3fujAy2k0XNBDIwhEvbdxtjiiiJNEe97VfTpQbk/DMyek1qemDy8RvoC7qSH70wLAuK8LkXWsF9xX5xjJDS99iglLqGyECrY7DL/nE4AT4r/cJvop2fL/AZDODFXfF5T4yNE5GLACRv/6hpXrXI/i9Gr5jmlbcgbcn/pXvYYRlPHcpfdYDZJiqwAehII3UhPQumuijw5qPm3aDGI4mPkA95lo9ym1GBrWYHunNI5hw06NCmUHGAKxXSdv/EvZuTBosF3a1hgWmx8l66gLOuV5pVxCsTVsCN3eE0MWkjg37e153Lky6ilj8gOLEexVnQTn5FXIw== 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:43 +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:43 +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 2/5] dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase Date: Thu, 19 Dec 2024 12:24:11 +0200 Message-ID: <20241219102415.1208328-3-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: AM0PR04CA0120.eurprd04.prod.outlook.com (2603:10a6:208:55::25) 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: 636595d4-6c0c-4bf7-ab35-08dd2017599c 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?ZWE1sAowebrrcjj5hrciYW9909eNQ4T?= =?utf-8?q?jaHm4MYvkgczhhpyjSznvqErPJyAUrrSKZUweQUdOnxCPh9Z42vnzeWBw//8jtAnI?= =?utf-8?q?xH11KrbV1ZmBlU8hSN24Y7HzALSUipYImRx8YWnCaZpJFgNhPpMRrVqGbd+P2Z22e?= =?utf-8?q?E27twYu1wpv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Xond0xUlTBGmOMIoeJrLCohWpcDiTcNEsLynBBswokongG6Pdte/7WEA?= =?utf-8?q?tHbYphSoSOD68qMofIChW8TrEMGbBUaGAilULEQNGzNxVIE2qSgjQRrL2bX7E/nFu?= =?utf-8?q?Ixb309pmI5IAfKzqAHDNgYL5iBLJfvOD/tBy3LtZl4IRvrVxFRAqoEmoDWzWNigPT?= =?utf-8?q?R7TTh9gkzLOJ/CwPvUYz/rF7iHet8hCpMy11TuX1TNybCGEG8tK1HxJ75apWPnKzE?= =?utf-8?q?Qs+q5eCXGCZpxVtHV3RmKsb9I6WX/eCpY3PBsBtLH0vtwv0eh4qRHFIGJvmcN2WD3?= =?utf-8?q?s9ai2uh12POl?= 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?CWuW+sXMAKTmA3xueanoEAa4ERHY?= =?utf-8?q?KXCUWpHgUeSKy188KPRHHAcR59H86qCh9rS+oXC3H3S/oU0NeNX4596AoW7yArswP?= =?utf-8?q?sVdv4glagQNXL+2HLmuI9C1wnZTDmNxQFEmWOQuyeuyRZii1/pT3eJft56CZ2/zyP?= =?utf-8?q?Wb8SW9C/9m9nXMSdViDfzC3A4bn0lckgnAQ9y8qJxX+hrbnHpTcL7aAOXEXFKT3JN?= =?utf-8?q?11azKphIqabReikUBpc3WIM2smUUhzDuwfxilOp4uJsRMci5YWUiXzgC8BMd0xn6X?= =?utf-8?q?36wVCyixf84AIKoxdhUfs8fHSay0F1+sxe/R8pCUk+9gin5tZ9uIVaDB04sIF591S?= =?utf-8?q?XXRWuOTNpddSEjpOXLfAjQidRshLpUQjZezNdIzst+9MM7Pxset57OJ3GAAo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0nt1Uy9DA?= =?utf-8?q?7YCQfsxDkVUANNcGnwDDTzvx5RrQOnpAVnHBlq6rIn7GdT5BjgRj/nSX4Lx6d6+ab?= =?utf-8?q?pVwjBcXMud+3qEvI+GScI8NR65qQQslrf/4O+d41oKn2huwSPXiVc5idkr7GaVsKO?= =?utf-8?q?fWhGvX+8aeLTNpSPGo174t1/q6cGbW+qhDErWjlzHcv32h/u/2E+7aXPztGQZMcdv?= =?utf-8?q?tWK/5JjjyogcEat+UsETesEMoKliJMYlb14nleCqcTIdFPgjV7zxpbeDCuMQBQBwy?= =?utf-8?q?UuaiaAiXCCFk5qCMsO1R6x3MzESQJ5gx4A=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 636595d4-6c0c-4bf7-ab35-08dd2017599c 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:42.6525 (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: 86xYyKqVaxqoVzoeLimdCHRJ4AsSDj+c5Q/BepJpEP7gcZTKtM5Qa/F0ZP4P3CY3Kt4AnN4QHJHfne7cXxGdjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 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])) {