From patchwork Thu Dec 19 09:18:42 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: 13914871 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2082.outbound.protection.outlook.com [40.107.20.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 41F36222571 for ; Thu, 19 Dec 2024 09:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600064; cv=fail; b=k36DZX1/t13T1QHxTOMHa5W5sFfANznS+BY6rFqKrqUTeauEhvJE1NHdMTvkKHzkqejdvAl7MFvm5Heh5VwswOi6xnTonM7XA2FF+NClcl7r4fKs74Vez/3hVC8eDf11avvzg1Uwehbs4xKke0Lnv94FaJz+1Czo6mA7IhqRQao= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600064; c=relaxed/simple; bh=98XY1a7JJVwiXnOcAyieAc4D9SnwiEirbyAuDC/CiBM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Za3WIGP5QRwqqLq02gAEkDvdkJpbHW2fUr7P/kOPmw6SS4W9BrDfphx2vD+/5V6tCizTIaovUfpATgNB9q1QU0k5dFb9zuLGL+g+qAh107Fn41wt8+xKRvMDEqxWfEYDceIngc1xXZM83f+XoUb7zdCMAPhWjv28NagmLyYzpKo= 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=b3HT/8LD; arc=fail smtp.client-ip=40.107.20.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="b3HT/8LD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CKfRgk3oeG7G9cmgCsImTtkuENHpWDjGqF9JIVZ4bnRGBXRS2jPQnRnIw8RjKOUnOlIrejiFmuA/ucERbUfDt2gzMOtTp+CzgSdw2aRkGbEggD65WOOWMm33Zyjg+8cwyl4jkjzGVqZvIrC2OxDThRe1qcwdT2iRtLTcqxx2XgF45iatxnVOHwf8FKR8mb13WQ26LvG8Z67vOARaKdIX5GLRsB1d1Qq7nN9vgFiGwM1mhrTcbIh499IJs9D5Qa0QHngcHNOw6Qady3iK8jm/UwoQK8+aQcLqk2wvxsFDFWDC8eThGtAKx7NOuFBpJwubwQ+FxLWIAm7CsVTS2xCS6Q== 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=W/w3FxJ4StDjAo0D+Hqa88IuJ2mQGm002uFvBjeEnQ8mtkbLsNn4uoIMlVLkrlUZHzurOrBoIosp0OkpmgSXltVagkuaBu+BpnoSWyHtKJUd6AtRGAYzYiB5UI1XzA6wnCB4y6PdkQmpsFxAyJ65vLcC74K5EzazlX7WKwR1ar2JhyEVr6D6YV7t44C3VEuzeURZYR6QSerlnVTS48ZCDyRp9PBbd4qVtIc+xe+t/LfcNBVfXRNqxuAVDKO6ejo/m4cinjYQXG/qfn7R02rft9bsx0NSnYLEVbOV0diLcjKSFpzXYr7CkbZeqelvJi+OWMKc8AZVSJcfosGLm9FBvw== 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=b3HT/8LD8xmvXnyYl8/jV9M8A5w7nTvwG8qp/MY6pMs1uS6xcpv9jzVGGHJl1FejQ+GMiEezzEZ7m0jLmIe6zamaMat4LKdBPMuTjne3daS3LKGgZye4U1voci4W25cJyOjwU6U2Cxtkk6bdWrKlarPhnTMN9RtuBerngEyADHyUkcmKOy0MclGzJ9AGwtyPNoN7hZ9hVeAbP0IjrT0RU1fhjrml6aAEyGlNrLuMFbqwvTh1YAZSG7QtRUAQwLKJH5M0s3jKKkVl+hXNWYhOlrTZcVthwOPSQE+nudhpwUMOsAlwCq/H+5EBYwVHBFQ7td7tJYR2Y2CQEN1s/G02RQ== 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 VI1PR04MB9834.eurprd04.prod.outlook.com (2603:10a6:800:1d8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 09:20:55 +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 09:20:55 +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 v2 2/6] dmaengine: fsl-edma: remove FSL_EDMA_DRV_SPLIT_REG check when parsing muxbase Date: Thu, 19 Dec 2024 11:18:42 +0200 Message-ID: <20241219092045.1161182-3-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219092045.1161182-1-larisa.grigore@oss.nxp.com> References: <20241219092045.1161182-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0212.eurprd02.prod.outlook.com (2603:10a6:20b:28f::19) 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_|VI1PR04MB9834:EE_ X-MS-Office365-Filtering-Correlation-Id: d2e6194e-e954-4e3b-f61c-08dd200e70ea 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|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?PUTAKUJOnHn59TWKeZJZjHPnus7lO7J?= =?utf-8?q?QZMsFzOFm6YUtik1+m3OTapoHRK3US6VVr+n1yao04RqMuCRqw2rHa2zHO7rM1H88?= =?utf-8?q?DAD3l7SJLhbHgJ1VQd44tMFYDpmgs1W8ftqM9cR1k1nM/oxCnBNDC8x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WdwGvh8ZcLn9rDLfz?= =?utf-8?q?oSOng27Wi0TnMeEgUnWiswSCUpLcYBlEUvqeuliMngyRzd4qEmeNHIqRw0EUCekRf?= =?utf-8?q?XN3ZMiWtGxB72Xd0GXMTBkUmj1J+/J32DbfVwza8wALxz+TUGcdX0NOsi5u2k5GTY?= =?utf-8?q?KvtFKz7KNWVxC9EPYT+JbqjWONHQ2NaAUM6kVUf2oWz+yXtanJKb9Kt0d6w7iJ0jH?= =?utf-8?q?0kidesgHFobb1OKRyIuvIRYSBrQh8Dx1DJSML7d82s71jvnaeL5yJtyUkZML201Ds?= =?utf-8?q?hy7oQO61szsz+kZBCLVkLYORI8uUcGxI2Ytifw4CS/xYW2f9hi2V6P3fIP1Y9ew04?= =?utf-8?q?IyboPnKMVlcG?= 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)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ETy64Nwr1iMa5oCS4IaEhqa9LF5v?= =?utf-8?q?GRaxYSOZlxHrRFWZIQcB6tJ34AbZ7GnK+8gbXAMvZZfFDo+JCZCAnSJQ6i8zl7eIj?= =?utf-8?q?ZB/uCs1Ehdcz6a38whpVl0KVSOTXP6wGzQ8NPW/5aYJJ27QR6so1kTNU9tDx3jtGX?= =?utf-8?q?XXnhExMvWmYrQzUJTL5x7sZF/GCZoTD6NKWjCyznBl583rFjWTJWuCGKsuFah988W?= =?utf-8?q?XCSUBOQSjQDxI+Ux3MpV27WNuTneUtPA7uYMkf69OwbXfLdmefG7yK4yontOvNSU3?= =?utf-8?q?E6gDgarDXeAYU76PP2Hf0frGuW8GppSBmsjsaFpkd2svSAP01avZFS679rvYGHEHY?= =?utf-8?q?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p3bzqad9FUEEIhcX18f5icUfmTefY5ccXnlU+zU+Zecv3tKh?= =?utf-8?q?1ccKlnNxoNeoDoL9hHv30L500rxXFaQZoopVJYlp5+9hC1cuvHd8N0mBZlf3n0WT5?= =?utf-8?q?9t/W1EKaGAAHEQ6YdvIBB6FAbh1Vl2G5q3fJ9Jx/D0aock9hkpRK8Fk7NHwaEO7us?= =?utf-8?q?0xqmZYuM48c3CCHDGYyWrHddWLMUN+yB+aMiEKXDP9YdTltCpk7QfxDKH/e1jie0M?= =?utf-8?q?o9IP3BR2T3zveOdhXFaAVnj0Zjmlzfxxzh4gbcVe+78EZrnmzb6Xc8noAdkrdxoLN?= =?utf-8?q?HjPPfR+Jk4S+?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2e6194e-e954-4e3b-f61c-08dd200e70ea X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 09:20:55.4900 (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: Pbm5icRLRnRSVBOROSKaM8l3LDv9biFxA0sjEMaF+p6iYq9QuXHnDi2iQdqV1KNGkdscdxkfLRPt3fQsykN1gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9834 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])) {