From patchwork Tue Aug 27 07:48:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhangxirui X-Patchwork-Id: 13779021 Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11010056.outbound.protection.outlook.com [52.101.128.56]) (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 095551448E0 for ; Tue, 27 Aug 2024 07:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724744072; cv=fail; b=E84dYZKpbPGgp4UE2Lq/Oqiiitz5i3oaTBWEKuVq7B09EFgtVnywioCZeM4ivAxt0TctiyYBVvx4CKDg1XDqGoges5ogtw+26OchRt13+BLBO8RuaxISc39Rj9DOobYgcnlmncub1Lo5vWExVzn8cybJBAVM+jzWbP1I/9EVwtQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724744072; c=relaxed/simple; bh=W6QeVfXOGQstDWtk9Pl8J3Un2WwTui7lFp3894HdIxk=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XcUwmwR1pdha3aL591c8tKWIm+edLjqzda9ezTvF7QWpmVaiMImU67YB/mJahD+SiRDvPkFsOhmc+QQ2eNUEbPIBuT27q1BhnlCTKA64wbBgWJOiIbbkP9rJui60eKYxMIrqm9ahMWAZmdQlzmPr3qSs40uYZ0d7qvE0yKrJtwk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=JwJVu6vj; arc=fail smtp.client-ip=52.101.128.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="JwJVu6vj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qua1adcucsK9u2K8oV7LsGc+PuoLV5rjelacHs8ieivf0lAggeMehd3wOulkQTUFq1ujTmPfX9IJ+/kHJA1dw3c20stNAFcHE8q66fFnshYXTurHF2wDEnvttlvZlxCJPnjY4BwfTRj7oqNMgr05PX0kKP8qozDKUkmu7FGaWIwSzcZMm2kmstX9epXi6EQRCIQrhVjmw5UQ5NHvtftnpQ1vzlQxxbWlUO+9250XrBidR3G2VX+Wc6nauZFTbpBaFw9bRDX/8DGjyTxpchasly2CX3zYCl7EZNVO/KI/BE5uM3R4QxHlt20jNrBuEm66VHGrRRVYBTcmm9PUmC4/Tg== 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=GvW19c7vl0ednZb1zDP0yE3D6UwZmpFMQbG+0z+reKI=; b=xeXiF6sgC/y+w7hptKmq/dbxSrobiEWkng/HHSqZaibQC8MgLFf2js3EBvjYEBl31Xk4COdWXRQGrfL61QbfDdrcAizr9Bsj4HFndRNXNrRTINNC2ZO8JAy4RR9shLrntblOFhzPUE3auFDFNqX960N4TLn4mKKC5MkgNkIXxb5sZYikKDHkyNi11IqBWQloJO60GThGPmYtnsc5o1E+RQHTlTSKxCqav3vRhkO4sXrDZ/xq5X0j+bc0sCt2adoJAhS6RieWs81Dt/TOGFrckcvH/wdRWo7I7H27NfGpGSXXJVS/GLlLnZRkrXARe/n/90lchP9TVoXK0bs+nk6Txg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GvW19c7vl0ednZb1zDP0yE3D6UwZmpFMQbG+0z+reKI=; b=JwJVu6vjDUFY7uM0ieWMPJJsvkNSiHI4LuV8aLbUQW/LEGcweoW40jhw2Bi2OHWzBDwDCoS9KZmpEwam27g7tODCcx2KLd4HxsiDNkLmF3+AwOo8vbl9znMmVTy4dJhFersUz6ie3FYeTN0KTXyXsHT1v0J4/MU0ERZYLBpPh3pYobBnBZL8BfFos+K6x3DbDHlZ2OhcpS7aStAzAoFNE0xuYk3Z4EEIRYAzxboTaVWa5Lfsvut50/PzuZeh8XJfsbiiC5yy/OpCniwePPdXkmPDKxaJJExBkVYIBKCdgL/GFx0N7if5vTpMNYsDn2yinLHbA7rZaqpMSQsH5jEFCw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB5178.apcprd06.prod.outlook.com (2603:1096:400:1f7::12) by SI6PR06MB7102.apcprd06.prod.outlook.com (2603:1096:4:244::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Tue, 27 Aug 2024 07:34:25 +0000 Received: from TYZPR06MB5178.apcprd06.prod.outlook.com ([fe80::f6de:c016:c33a:318]) by TYZPR06MB5178.apcprd06.prod.outlook.com ([fe80::f6de:c016:c33a:318%4]) with mapi id 15.20.7897.021; Tue, 27 Aug 2024 07:34:25 +0000 From: zhangxirui To: Robert Richter , Ulf Hansson , Jaehoon Chung , Nicolas Pitre , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Adrian Hunter , Taichi Sugaya , Takao Orito , Michal Simek , zhangxirui , Linus Walleij , Bastien Curutchet , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/9] mmc: convert to devm_clk_get_enabled() API Date: Tue, 27 Aug 2024 01:48:38 -0600 Message-Id: <20240827074857.2671808-1-xirui.zhang@vivo.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR02CA0005.apcprd02.prod.outlook.com (2603:1096:3:17::17) To TYZPR06MB5178.apcprd06.prod.outlook.com (2603:1096:400:1f7::12) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB5178:EE_|SI6PR06MB7102:EE_ X-MS-Office365-Filtering-Correlation-Id: ed7d8f13-45f0-485a-109c-08dcc66aacf4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|921020|38350700014|43062017; X-Microsoft-Antispam-Message-Info: II5pZYAv5Zr9vz/GS49vmxAdjfb4VQ7vJxKknvuIxvlLKzbs8gI473rm13RTlFeqquOoVzI81jPJB44pKRfgFAX7fGa4tk4Cub4RH2K+jrVKjJyuhk20v2iUnD7cyrLPUl/X3n4yWLjgeVfD8VJ0dpfcFfxI5OOZBr0f7hu8TWFnETxcm8E83IEg8wEASiG8RJcF1GsK14xPFOYXjQKx6QtL8H5VyhxNVlj6XOlgIXxJ0TcIvFzVL2x5m/DFtx3t25OlRFdWk3jA1pHASDjxJiD7QwCvEcPsa1lEGOeMwO6w5EnGHTyixHJYyovOkcVwcwuUFxQS9m0byTeKMkIFdWiZM23eaKNue2T9f9zTWrzf6RZdejKIG4HfZRnDHgypAZ3sYS7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bPZXcD+UrcHduB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB5178.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(921020)(38350700014)(43062017);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5t0UqZLEGZ/RkDUhdULQNJPay6QTugkl+6cw/MQwSGFFM3Y3fC9h+WcE+tG7B2euiXhzYk+7srxZhcpg2QytRbZin8xNI7XYE/FoSDwlzCfj1uj4PhyISuwgcuR+hq+nD3bbBV7sPTmGJYmFLbxzESGpjXFh+3KiyjjyxK9WJxBBNj4CiuYBPNDzpUsjCsBkJorRe5eYbJ0fqikbZOMzmb1R5gLvu7UveD+vZnAOLuDBsjDjyhAIkAjCC+dC2yKlQ/Y4Htm561tAKlcTQ/IN8WrN5gwGqNxQyM2F/BohsXC7mU+cAR8RR6w1H3pYST7yPKHrJUAkm662rzTDHof/2HcP7Im5EEornegTL3WlFnMj25KSeTSBWFy0P3eS1E5gQAmPN9l937Tj3DRakN7WgoVmb5j63sQgiUIPHf0vKql4pAgUjM4NWAN5g3m7wLTwm1QsDCa8ZTXGfkgcFOuo2A3h2V4UdIU+Xlnh0yGjTuv1hWzwBj1t1HVAc8azdQHEFGJSJrDjSoDyR5cE0o9EhKxi8znU8ElnlVWt6WS0v5GUS40MIPCiT+pR8bQ1AU6Ab5Dn7erBhzGkgYyeMtDl2LrxWuLYf6YkcaVnTxm+/vJCm38+Kse1eG/c2Zsyttcp4lVoopED7TXCD+8JBjJjXsldeTdt+vt12DwlfMNZXSdGb0qxPHsZXvmj++0yWzzA3gKbnKdH9JXOg95AD2gEU98o5GqyASBojIgvdaTx/DTh6brMFhwtW+q1wcaBAlIf9BzHdJaCEQZMlLQgz0uJycI3H2Cybyo5gidDQqRONKblgbSk8FMHsbN1WgAj2pWiNQJGacsk39FOU0Web4orR6Zg3sQXCZi8hu64OfRyR9s0dTLUA9aCkgG1kDwlIBMntt9Fn3q3aEI5oMrffSVdhcrkNI/YqYhXfN+x72rchwI4gWm3C601C0nl0RmB8kYlBm3S7sm7hIrEyxXwyDgMcbTdiuzoZgqWSjZdCFleJZuITLz8qa8B/140lXw3a7Xobg7XNTd4R8YVfJUBN7f00OgFpy7IRE4dejmZkUlWvg/BZB0XyZGIzE2JIT6EVWS7c2QFM3tIHlZ4ssDamxF6CrDL7oKSj3lBo9wCwKWB3LX5RAi0NKXmHHjsI0dpAy2wha2QggMAgRanjSeQa07NXcs8G5STYfhm3be65vBmHUycduj1iQdPyI4fDsMqfQW208tvfqVmvh7mMoXEqG4By9r6ZkxxULolB3FqCxug5Agsnfe1fBXKcogc+A4XlvJCmACz241qJmZCf6kSax7ti+hCV6lREXaloYfEsn1wg10raW4SNp0l3Pb34BAELnTI17uaZZAuNiZ9aIiN9gtC+ITN+25HC08QkYc61mP+kH2amhydTxHxLBK9kY2yhHq1jt5+fGRVSYpSvjqpjuaep2wv4buNSmwMtnwLVfbUYxkO1ipR6Ma8RZAlNRT9u5QyJNOCIUqwU1V8E5Uh0b/9CiNn4KRMBCkGfcyB2MEyeW1RNQ2mqMr92gaedjc0INSvDF3q+7T0FThjfzYLzyM8lUBfdb56MGKIjaQTpZzcU4WTW8octYuIbmP7A3jpOKdy X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed7d8f13-45f0-485a-109c-08dcc66aacf4 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB5178.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 07:34:25.2384 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ho+FCjX/YNp1b/8rGw/3T8DlOB+JjEY6JwQxlgQRPVt2NRHimQ7+5g1IxPTnpnCXwmCgH4/AJN1brIFjQIgHKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI6PR06MB7102 This series use devm_clk_get_enabled() to simplify code and avoids the calls to clk_disable_unprepare() zhangxirui (9): mmc: cavium-thunderx: Use devm_clk_get_enabled() helpers mmc: davinci_mmc: Use devm_clk_get_enabled() helpers mmc: dw_mmc-hi3798cv200: Use devm_clk_get_enabled() helpers mmc: mvsdio: Use devm_clk_get_enabled() helpers mmc: mxcmmc: Use devm_clk_get_enabled() helpers mmc: mxs-mmc: Use devm_clk_get_enabled() helpers mmc: sdhci: milbeaut: Use devm_clk_get_enabled() helpers mmc: sdhci-of-arasan: Use devm_clk_get_enabled() helpers mmc: sdhci_f_sdh30: Use devm_clk_get_enabled() helpers drivers/mmc/host/cavium-thunderx.c | 7 +----- drivers/mmc/host/davinci_mmc.c | 8 +----- drivers/mmc/host/dw_mmc-hi3798cv200.c | 28 +++------------------ drivers/mmc/host/mvsdio.c | 13 +++------- drivers/mmc/host/mxcmmc.c | 25 +++---------------- drivers/mmc/host/mxs-mmc.c | 13 +++------- drivers/mmc/host/sdhci-milbeaut.c | 25 +++---------------- drivers/mmc/host/sdhci-of-arasan.c | 31 ++++------------------- drivers/mmc/host/sdhci_f_sdh30.c | 36 ++++++++------------------- 9 files changed, 35 insertions(+), 151 deletions(-)