From patchwork Thu May 29 12:56:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 893261 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C822121421E; Thu, 29 May 2025 12:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748523399; cv=none; b=u4PJ0uU9C2hIKvtnuYXPXrhklqN07AgUTrlvlinsaYDdZBqZ8+0RGOeWR9iHZnMh+y+NrHL2Hd/Lwx7HAviZSpcQ96ND5p2FhQf5yNmHdh4XgOxxyofe1Vt9FARzZ5HME0/hM4py+tR5d1gomyaFEHbrUowTDrR2tTWfZJ3ksbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748523399; c=relaxed/simple; bh=I/bPDChe/3u4CvRovBNpwJl3q2TTdxNMwFY7EzT22PU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TmGczbH2lTf9iWTSz/Upt+8rZvNe5+dPfotjPgDgAUwqq5gh1xQXlTSHiIAQre397wbuAGIJZDJ7MuMCbYXgvnzcvIMbTPHYYjqR0W30UUZncpF96NF96iFJrgl0OYmpzqZIAkmCeJWabtxI5mPkIdMrF43vxcePfIOL5fRUZVM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [223.64.69.3]) by gateway (Coremail) with SMTP id _____8BxrnKBWThoMykCAQ--.22511S3; Thu, 29 May 2025 20:56:33 +0800 (CST) Received: from localhost.localdomain (unknown [223.64.69.3]) by front1 (Coremail) with SMTP id qMiowMCxbsV1WThoTrH6AA--.60122S2; Thu, 29 May 2025 20:56:27 +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 v2 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Date: Thu, 29 May 2025 20:56:10 +0800 Message-ID: X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: qMiowMCxbsV1WThoTrH6AA--.60122S2 X-CM-SenderInfo: p2kr3uplqex0o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBj93XoW3Xw1kXr43tFy8Ary7GFW5CFX_yoW7GrW5pa ySqrWa9r43Cr95WrZxJw1UZw15Xr4rX39Fgry5tw4FqFW3Ca4UKrsrAFy0qryDZ3yxJr48 t3WDJw1UGr95K3XCm3ZEXasCq-sJn29KB7ZKAUJUUUjk529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6rxl6s0DM2kKe7AKxVW8ZVWrXwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWr XwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWrXVW3AwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVW8ZVWrXwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Wrv_Gr1UMIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_Xr0_Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8V AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU58cTPUUUUU== 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.1747877175.git.zhoubinbin@loongson.cn/ Thanks. ----- 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, keep 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() definitions 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 | 23 +++++++------------- 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 | 9 ++------ 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, 129 insertions(+), 349 deletions(-) base-commit: d2c6acff6386f43ed307822454b970c831c48f1b