From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F4C4C61CE8 for ; Sat, 7 Jun 2025 07:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oxqJld67RITm2DqmoMwP8vJz8675fQDZj5HRe/brT9U=; b=F/H6Vbehapy/Eh +8IQt1yiPC98xobrOdvWo+UwalX9HWM5v6+3JoaNC5geMMKs60ZI3xr8dzYLcJK3jcvo5Wm+4HMaJ bnCXSEwG0opoUOVRAgrVwjEizmzT5fH0vWgzkPN8kuJG3ixY9l/i1gHsj7XqdnuuddsEiAbdXisRY /Xb+OLO/Q5XEAsKXpiA/9JUUIGk6f93E4pTnCmrRf4pf4cHGHDCIqXOb1cEPCGljiAv71YxpEtH1q 6TSZQzucv0Md77zwOIDg/kO6mPS+IFwc+c3kZNfJ2vPEDuzW5yvIwBqqUtKUD4zGcqBq+yzq4DcuA 0MsxiFmkyGYuBI1WZClw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNo2f-00000001Pv7-1yu9; Sat, 07 Jun 2025 07:32:37 +0000 Received: from casper.infradead.org ([90.155.50.34]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNo2d-00000001Puy-1vij for linux-riscv@bombadil.infradead.org; Sat, 07 Jun 2025 07:32:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=yzZ+FR4HzaCtTAYaQshj0u1B9QZKyH9oqhZpNyfvfBQ=; b=oFzzVJXanI2F7yHP+ChUzyUfb6 MpJ50W7yvQaTG4zwvChvzVoGCvpD5cZmYZmN7+/1g9ykzXr6rfg2BNSBiOyJniuPOe34cRc14UdaI qcPXFqSeacYwhKlXZ38BjTdH5PfX+60kOIJdsHhmrdxctvTn/PWsoMlV9aMLZCfc5VL8uzsDadfk0 aAzaT4BRTpq/Fmg9J1eis51lVsbdUmNQwc9sMSgt2LrC+z3r39CHs1WZM3JmR80ttWYxa7XLIj3NX za1K/jewOzcWf9IrLIE4YYDMtRlicbrjuCz6pDCHqMv5aU1SHqvNWzeUL4T3bBkv4tqKNVPawid6h suO7eSpw==; Received: from mail.loongson.cn ([114.242.206.163]) by casper.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNo2T-00000006BtI-0TQ8 for linux-riscv@lists.infradead.org; Sat, 07 Jun 2025 07:32:28 +0000 Received: from loongson.cn (unknown [223.64.69.3]) by gateway (Coremail) with SMTP id _____8Axz3P66kNo_xQPAQ--.40265S3; Sat, 07 Jun 2025 15:32:10 +0800 (CST) Received: from localhost.localdomain (unknown [223.64.69.3]) by front1 (Coremail) with SMTP id qMiowMDxu8Tw6kNo4JwOAQ--.43155S2; Sat, 07 Jun 2025 15:32:06 +0800 (CST) From: Binbin Zhou To: Binbin Zhou , Huacai Chen , Ulf Hansson , Adrian Hunter Cc: Huacai Chen , linux-mmc@vger.kernel.org, Andrew Jeffery , Taichi Sugaya , Takao Orito , Ben Dooks , Jaehoon Chung , Florian Fainelli , Ray Jui , Scott Branden , Kamal Dasu , Al Cooper , Haibo Chen , Shawn Guo , Sascha Hauer , Fabio Estevam , imx@lists.linux.dev, Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org, Michal Simek , Joel Stanley , linux-aspeed@lists.ozlabs.org, Aubin Constans , Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Yixun Lan , linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Jacky Huang , Shan-Chun Hung , Steen Hegelund , Daniel Machon , Vignesh Raghavendra , Patrice Chotard , Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org, Hu Ziji , Binbin Zhou Subject: [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Date: Sat, 7 Jun 2025 15:31:50 +0800 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-CM-TRANSID: qMiowMDxu8Tw6kNo4JwOAQ--.43155S2 X-CM-SenderInfo: p2kr3uplqex0o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBj93XoW3Xw4Utr1UGF4DGFW7Gr17Jwc_yoW7Ar1rpa ySqrWa9r43Cr95WrZxJw1UZw15Xr4rX39Fgry5tw4FqFW3Ca4UKrsrAFy0qryDZ3yxJr48 t3WDJw1UGr95K3XCm3ZEXasCq-sJn29KB7ZKAUJUUUUJ529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVWxJr0_GcWln4kS14v26r1q6r43M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q 6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lc7CjxVAaw2AFwI0_GFv_Wryl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1l4IxYO2xFxVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26rWY6r4UJwCIc40Y0x0EwIxGrwCI42IY6xII jxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw2 0EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IUeVpB3UUUUU== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250607_083225_652934_56B24324 X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi all: After the first part of the cleanup[1], there are sdhci related drivers that need further cleanup. This patchset is the second part of the cleanup series, and since sdhci has sdhci_alloc_host() as the general interface, our main job is to clean up sdhci_pltfm_free() and sdhci_free_host(). [1]: https://lore.kernel.org/all/cover.1748933789.git.zhoubinbin@loongson.cn/ Thanks. ----- V3: - Collect Reviewed-by and Acked-by tags. Patch-19: - Use dev_err_probe() to cleanup the code. Patch-32: - Fix build warning by lkp: https://lore.kernel.org/all/202505300815.tjQRQD6z-lkp@intel.com/ Link to V2: https://lore.kernel.org/all/cover.1748515612.git.zhoubinbin@loongson.cn/ V2: - Collect Reviewed-by and Acked-by tags. Patch-01: - Set sdhci_free_host() to empty, rather than dropping it. Patch-07: - Set sdhci_pltfm_free() to empty, rather than dropping it. Patch-22: - As requested by Yixun, retain the goto scheme. Patch-35: - New patch; - Since all calls have been cleaned up, sdhci_pltfm_free()/sdhci_free_host() are now dropped directly; Link to V1: https://lore.kernel.org/all/cover.1747792905.git.zhoubinbin@loongson.cn/ Binbin Zhou (35): mmc: sdhci: Use devm_mmc_alloc_host() helper mmc: sdhci-acpi: Drop the use of sdhci_free_host() mmc: sdhci-milbeaut: Drop the use of sdhci_free_host() mmc: sdhci-pci: Drop the use of sdhci_free_host() mmc: sdhci-s3c: Drop the use of sdhci_free_host() mmc: sdhci-spear: Drop the use of sdhci_free_host() mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free() mmc: sdhci-bcm-kona: Drop the use of sdhci_pltfm_free() mmc: sdhci-brcmstb: Drop the use of sdhci_pltfm_free() mmc: sdhci-cadence: Drop the use of sdhci_pltfm_free() mmc: sdhci-dove: Drop the use of sdhci_pltfm_free() mmc: sdhci-esdhc-imx: Drop the use of sdhci_pltfm_free() mmc: sdhci-esdhc-mcf: Drop the use of sdhci_pltfm_free() mmc: sdhci-iproc: Drop the use of sdhci_pltfm_free() mmc: sdhci-msm: Drop the use of sdhci_pltfm_free() mmc: sdhci-npcm: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-arasan: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-aspeed: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-at91: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-dwcmshc: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-esdhc: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-k1: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-ma35d1: Drop the use of sdhci_pltfm_free() mmc: sdhci-of-sparx5: Drop the use of sdhci_pltfm_free() mmc: sdhci-omap: Drop the use of sdhci_pltfm_free() mmc: sdhci-pic32: Drop the use of sdhci_pltfm_free() mmc: sdhci-pxav2: Drop the use of sdhci_pltfm_free() mmc: sdhci-pxav3: Drop the use of sdhci_pltfm_free() mmc: sdhci-sprd: Drop the use of sdhci_pltfm_free() mmc: sdhci-st: Drop the use of sdhci_pltfm_free() mmc: sdhci-tegra: Drop the use of sdhci_pltfm_free() mmc: sdhci-xenon: Drop the use of sdhci_pltfm_free() mmc: sdhci_am654: Drop the use of sdhci_pltfm_free() mmc: sdhci_f_sdh30: Drop the use of sdhci_pltfm_free() mmc: sdhci: Drop sdhci_free_host()/sdhci_pltfm_free() interface drivers/mmc/host/sdhci-acpi.c | 3 --- drivers/mmc/host/sdhci-bcm-kona.c | 2 -- drivers/mmc/host/sdhci-brcmstb.c | 1 - drivers/mmc/host/sdhci-cadence.c | 21 ++++++------------ drivers/mmc/host/sdhci-dove.c | 12 ++--------- drivers/mmc/host/sdhci-esdhc-imx.c | 3 --- drivers/mmc/host/sdhci-esdhc-mcf.c | 25 ++++++---------------- drivers/mmc/host/sdhci-iproc.c | 18 ++++------------ drivers/mmc/host/sdhci-milbeaut.c | 19 ++++++----------- drivers/mmc/host/sdhci-msm.c | 11 ++++------ drivers/mmc/host/sdhci-npcm.c | 15 +++---------- drivers/mmc/host/sdhci-of-arasan.c | 26 +++++++---------------- drivers/mmc/host/sdhci-of-aspeed.c | 10 ++------- drivers/mmc/host/sdhci-of-at91.c | 30 ++++++++++---------------- drivers/mmc/host/sdhci-of-dwcmshc.c | 14 +++++------- drivers/mmc/host/sdhci-of-esdhc.c | 11 ++-------- drivers/mmc/host/sdhci-of-k1.c | 1 - drivers/mmc/host/sdhci-of-ma35d1.c | 23 +++++++------------- drivers/mmc/host/sdhci-of-sparx5.c | 24 +++++++-------------- drivers/mmc/host/sdhci-omap.c | 21 ++++++------------ drivers/mmc/host/sdhci-pci-core.c | 9 ++------ drivers/mmc/host/sdhci-pic32.c | 9 +++----- drivers/mmc/host/sdhci-pltfm.c | 16 +------------- drivers/mmc/host/sdhci-pltfm.h | 1 - drivers/mmc/host/sdhci-pxav2.c | 26 ++++++----------------- drivers/mmc/host/sdhci-pxav3.c | 7 +----- drivers/mmc/host/sdhci-s3c.c | 16 ++++---------- drivers/mmc/host/sdhci-spear.c | 11 ++++------ drivers/mmc/host/sdhci-sprd.c | 33 +++++++++-------------------- drivers/mmc/host/sdhci-st.c | 6 ++---- drivers/mmc/host/sdhci-tegra.c | 9 +++----- drivers/mmc/host/sdhci-xenon.c | 15 +++++-------- drivers/mmc/host/sdhci.c | 9 +------- drivers/mmc/host/sdhci.h | 1 - drivers/mmc/host/sdhci_am654.c | 20 ++++++----------- drivers/mmc/host/sdhci_f_sdh30.c | 13 ++++-------- 36 files changed, 135 insertions(+), 356 deletions(-) base-commit: d2c6acff6386f43ed307822454b970c831c48f1b -- 2.47.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv