From patchwork Tue Feb 27 17:21:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207341 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2846980dyb; Tue, 27 Feb 2024 09:26:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWSgdjyYyulksndZXMe6XE7eUzrLy/K/g9CWObbzRYkIGRRTGfSkUh6SFDmgT0okXefImYEYBqSX5plpQk6gaGZWf0LVQ== X-Google-Smtp-Source: AGHT+IEpPL/5Yd1cfBXTi3G2VzSijtBRzcTpBUzdx9Syd5d9ShuzaoQnJ4WA/1S8YFIR8KYDN4OA X-Received: by 2002:a05:6a20:2d83:b0:1a0:e9cb:61c9 with SMTP id bf3-20020a056a202d8300b001a0e9cb61c9mr2485986pzb.15.1709054801467; Tue, 27 Feb 2024 09:26:41 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y3-20020a17090322c300b001dc81504839si1645699plg.304.2024.02.27.09.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:26:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83707-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=a6mjFSxp; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-83707-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83707-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 42B35283F18 for ; Tue, 27 Feb 2024 17:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C84E14F9E6; Tue, 27 Feb 2024 17:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="a6mjFSxp" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2055.outbound.protection.outlook.com [40.107.6.55]) (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 1E07814EFEC; Tue, 27 Feb 2024 17:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709054546; cv=fail; b=Y+an3t0P1SdbouRtX5b72DoZ+6UW5KCmjcx6+m7XAtnkan4BBFxnp8R6x8ZCqTqlAFOe37QtY7kasdbkYz5NYou3zA2gWJiJim5dXOFmGgLHq7BxEG7HOspzb3hTsBc924FH11jJCvSQrenZ/zdUTJxF5OI/wooCF8DKUr32g6E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709054546; c=relaxed/simple; bh=1SY1nKChJ4s31bmrpysVWazodvllDv9ahLCc/bCrYcQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=mn8mmxIrXeBoM6zb8d5b+VO2F/3AdBbQ4UfV7yCsB9fIe1KkwTZcg6azFOr/e+Dk+t1/kKSI3JgzYVe7RBe4btgX2fbUxCShK9DxyURkxL4ULrNYlDWTbnWJPwQMwFtCrIszKlEeZzODR3IYXAU0lzkPsh6Q2CqvdZBp2mCNxro= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=a6mjFSxp; arc=fail smtp.client-ip=40.107.6.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XoLSCS9K9KZO/Nh3FfGUibTfKLXAvOjfZyePh/dQwpS9dvhJhLhNNV+GghZU1vQ9CHmaF268kQKTv7arPRm4pz26qAKVmI/Yu2f/wy4VkqiPbGJ8H4V6g25un1oUNyl3p7FP9FA47QmLu6TrDXm4ATODU50OxmKOS9POGpCNIfnuyd4bBzsPPUEFhlObSv9xqsEbp9AdE2hOkxXukxJTuPJazAxjcvalPeb0ayvLvGkYEG2B7xj2L2fHVYUplcIT6KuYRg49nUsmM2vFvSlyurAIlKj3eneF03pJ9ZlnlhSoc6qqXIqjm5YAfbTtU8VIuO+ulaRNNuXefRs90xbTcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=O3UHH8qhH5HTx8E0tLZorZnJnKCrjOdx/qvKkcds5Vg=; b=f9/a7ZG2PXSfw9gsM2d3YXm8GuhB3fRyrXpITKNfu6Rye1t3WoU8N7UzT/FksWwFVygs1wrKE6TTkJBvtlcfo/XnyxkU60wiXuTJrLELffvg0lVzSCtZqQSC+Bgq4VUQel8efTaS16j5gRwNqxw6OfL1cfWsH458RxEIRd3MNWK5gxePDdusXfqHKVvsgQYfQ3FMeXqRjn74SUxK+ZjUc2Yl56sQ51V2hXl6eJwNSwgLxPZBBsyxjyS/cZiarHFiwCJyc0ZlMH6CvbqgWpgXVZH8FFXSb56490ID7hjbiD7u/VjhkZs0Q+Fc774JFTO1L5BjClLPxNSRq8d0XvNzFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O3UHH8qhH5HTx8E0tLZorZnJnKCrjOdx/qvKkcds5Vg=; b=a6mjFSxpn/kNrTXIwvhzuKp0tMreeOxL6ZHLpdJfymLcQCFqq9Skom6hNde2jw5JKYvJ7EKlxDKEJrSyFnbZdIB31dwYMiYECEl93Ngp0DDnZo4rVq5q5G8MRlb4u/Zg7ctNEShWXTn81KPL80tsZ9LIoszJytdRCztUykKUGYE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS1PR04MB9408.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Tue, 27 Feb 2024 17:22:20 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Tue, 27 Feb 2024 17:22:20 +0000 From: Frank Li Date: Tue, 27 Feb 2024 12:21:55 -0500 Subject: [PATCH 3/5] dmaengine: fsl-edma: clean up chclk and FSL_EDMA_DRV_HAS_CHCLK Message-Id: <20240227-8ulp_edma-v1-3-7fcfe1e265c2@nxp.com> References: <20240227-8ulp_edma-v1-0-7fcfe1e265c2@nxp.com> In-Reply-To: <20240227-8ulp_edma-v1-0-7fcfe1e265c2@nxp.com> To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709054529; l=1717; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=1SY1nKChJ4s31bmrpysVWazodvllDv9ahLCc/bCrYcQ=; b=SUHRhItUXSezjubWHAqVf5qJ/rX0X9GklyZ6dfXPFRI2EpL9uu/bCUzk8zGIHM+CqbjaL0+NO WQwPdHi16j9DW4K+Fmcv35VW4exNZ8FF0g/18SvmWA/tk2GgvAuBBXO X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0059.namprd13.prod.outlook.com (2603:10b6:a03:2c2::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9408:EE_ X-MS-Office365-Filtering-Correlation-Id: deaba51c-722e-4109-19de-08dc37b8a774 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VeBPVa2j9ithHeMPnCgKcEMO7HeItGwsuj4ywfcK+ZeNVcwGD+ONMqxXv1KvwYTgBOKAunJhnWm8ARGTDkKY/nFi0QMekM1AOedDLfeb5Pn2/Xcz/cqxhEZ20Wrb/D8VC8/5sV3L1bR5S6XR5XbUCCG+Ar2z1s3ylc61wC5E6JO3GsxgjVyDNbO6JShEGijpSLWVx5XZahyHWIkhrFjSRHpN7U0SRmY5QvO8wyrViPCfq/cnwg9CT3D2TP1kDM/2nYfJV9VHfAyNm13fHuqaZMibMip1jK5h3W4adK8toeIczYv3pCGxZQVunsI+LGT9TEaTi5yMGhkIq5Qc31IcX4VOz3LBTqqTQv7ccDhn/df7zVXa8g8D61IIAJE9KKfjxhK7HxsoUSxgjk32G86aovyov0eT2hZPQPbMUtiGeoLI0x6gCOzSG1jYen847EmuXHZOkzG8YILel1sYgydMnzU1OU6kla4kGRY9xQ+Q1b+H2Pp4iZwyoExmz8ua+4mroOSodCALeagqVesvtjzf64nkURszSaG5WNsiwsxzsP0uD9+Zp3qmetc61uKb+t0KPx5CJedlp6TT+5LA0TSgZHyTGIUYbQdY7mnHiMoMFlV5UDuTWJFhMiDzcHxCh3nmOi5F604C8m61vRd0UnYSoDXTR5plMeOfHhaGFbxfETscYpxWDOriU505LVaVOkZ2aNJM4lyPfX01G0fnoPDrB2L57t8yuAKhKgGO/6zo53Y= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ujR0LIRJU2qGqFoi4sp2drTk9pbV?= =?utf-8?q?PEdkuQiFt4LguQlq/ie+0fjtXmn+RdKBy96qHLIkzxmyWMMhwNbFsNuLThSZoN00z?= =?utf-8?q?bSkKPsJxEx4GhaYT8II1wyXxWUfYXt7i2B6LNqvgKQcWvndhj1D9SB2UmpNOW9e0H?= =?utf-8?q?dzR0eSWicoVejQrdgcTzoAtVX3KDbzUcJt9EDtzwsBCpF8KZeXyXI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utf-8?q?0u37Z809v06gRD3Pjag7EsWupYRplm1PUPsa8TXMk8xrXznU5G7D3E0jko2zOfaPj?= =?utf-8?q?pNQoZKOHNTck54hJ6UgGS9KIw+xop/m0CDgYnTYvQh43QEL4jnzov/NJL4qwK7m6I?= =?utf-8?q?SFxq3OfJBASBWhmI0zb2hR/KulKlAR/CGyGkGq1D+fTpQ9+Qu6SG/7xw6DeXbPSRV?= =?utf-8?q?yLXNg26W12oolh2shOpizjQ3FS6ho48Lg4SWtf2batxCU17XTPFOvvn1Jiaeoc6+e?= =?utf-8?q?CMK5BdU1ugC0mmiNVAXzKy0uTkwYVK3W3ad7Uhdaow5rxxZc25lXpOcSME9v2sLO9?= =?utf-8?q?W/SHy3mfx/bTDH1zJmcV3SdR+YMD5ZPRNjCArDf7nfxKQnfwOhyrd07SsmeeUXL+N?= =?utf-8?q?vCLQ+T6Ph07n1Sbq/nR2x/5pNuw7luzKWDy8uoAYUSFfctRhPpfr/jRU1nCVC8k6/?= =?utf-8?q?Ebuu10kHvxgQ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: deaba51c-722e-4109-19de-08dc37b8a774 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 17:22:20.4362 (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: JmdGKF/ojjGK5bDJJTKt/A1Fu59HuEXqadQmflGBS8TaB0t7WFTZCP2W/mO8b8DGRK+n58I/ihtEuyta6VbVAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9408 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792073847941650528 X-GMAIL-MSGID: 1792073847941650528 No device currently utilizes chclk and FSL_EDMA_DRV_HAS_CHCLK features. Removes these unused features. Signed-off-by: Frank Li --- drivers/dma/fsl-edma-common.h | 2 -- drivers/dma/fsl-edma-main.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index 4cf1de9f0e512..532f647e540e7 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -192,7 +192,6 @@ struct fsl_edma_desc { #define FSL_EDMA_DRV_WRAP_IO BIT(3) #define FSL_EDMA_DRV_EDMA64 BIT(4) #define FSL_EDMA_DRV_HAS_PD BIT(5) -#define FSL_EDMA_DRV_HAS_CHCLK BIT(6) #define FSL_EDMA_DRV_HAS_CHMUX BIT(7) /* imx8 QM audio edma remote local swapped */ #define FSL_EDMA_DRV_QUIRK_SWAPPED BIT(8) @@ -237,7 +236,6 @@ struct fsl_edma_engine { void __iomem *muxbase[DMAMUX_NR]; struct clk *muxclk[DMAMUX_NR]; struct clk *dmaclk; - struct clk *chclk; struct mutex fsl_edma_mutex; const struct fsl_edma_drvdata *drvdata; u32 n_chans; diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 2148a7f1ae843..41c71c360ff1f 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -483,14 +483,6 @@ static int fsl_edma_probe(struct platform_device *pdev) } } - if (drvdata->flags & FSL_EDMA_DRV_HAS_CHCLK) { - fsl_edma->chclk = devm_clk_get_enabled(&pdev->dev, "mp"); - if (IS_ERR(fsl_edma->chclk)) { - dev_err(&pdev->dev, "Missing MP block clock.\n"); - return PTR_ERR(fsl_edma->chclk); - } - } - ret = of_property_read_variable_u32_array(np, "dma-channel-mask", chan_mask, 1, 2); if (ret > 0) {