linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage
@ 2025-06-07  7:31 Binbin Zhou
  2025-06-07  7:33 ` [PATCH v3 01/35] mmc: sdhci: Use devm_mmc_alloc_host() helper Binbin Zhou
                   ` (35 more replies)
  0 siblings, 36 replies; 44+ messages in thread
From: Binbin Zhou @ 2025-06-07  7:31 UTC (permalink / raw)
  To: Binbin Zhou, Huacai Chen, Ulf Hansson, Adrian Hunter
  Cc: Huacai Chen, linux-mmc, 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, Avi Fishman, Tomer Maimon,
	Tali Perry, Patrick Venture, Nancy Yuen, Benjamin Fair, openbmc,
	Michal Simek, Joel Stanley, linux-aspeed, Aubin Constans,
	Eugen Hristev, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
	Yixun Lan, linux-riscv, spacemit, Jacky Huang, Shan-Chun Hung,
	Steen Hegelund, Daniel Machon, Vignesh Raghavendra,
	Patrice Chotard, Thierry Reding, Jonathan Hunter, linux-tegra,
	Hu Ziji, Binbin Zhou

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


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2025-06-19 11:20 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-07  7:31 [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Binbin Zhou
2025-06-07  7:33 ` [PATCH v3 01/35] mmc: sdhci: Use devm_mmc_alloc_host() helper Binbin Zhou
2025-06-10  9:42   ` Thierry Reding
2025-06-10 10:21     ` Binbin Zhou
2025-06-10 11:15       ` Thierry Reding
2025-06-07  7:35 ` [PATCH v3 02/35] mmc: sdhci-acpi: Drop the use of sdhci_free_host() Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 03/35] mmc: sdhci-milbeaut: " Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 04/35] mmc: sdhci-pci: " Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 05/35] mmc: sdhci-s3c: " Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 06/35] mmc: sdhci-spear: " Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 07/35] mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free() Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 08/35] mmc: sdhci-bcm-kona: " Binbin Zhou
2025-06-07  7:35 ` [PATCH v3 09/35] mmc: sdhci-brcmstb: " Binbin Zhou
2025-06-07  7:36 ` [PATCH v3 10/35] mmc: sdhci-cadence: " Binbin Zhou
2025-06-07  7:36 ` [PATCH v3 11/35] mmc: sdhci-dove: " Binbin Zhou
2025-06-07  7:36 ` [PATCH v3 12/35] mmc: sdhci-esdhc-imx: " Binbin Zhou
2025-06-09  1:58   ` Bough Chen
2025-06-07  7:36 ` [PATCH v3 13/35] mmc: sdhci-esdhc-mcf: " Binbin Zhou
2025-06-07  7:37 ` [PATCH v3 14/35] mmc: sdhci-iproc: " Binbin Zhou
2025-06-07  7:37 ` [PATCH v3 15/35] mmc: sdhci-msm: " Binbin Zhou
2025-06-07  7:37 ` [PATCH v3 16/35] mmc: sdhci-npcm: " Binbin Zhou
2025-06-07  7:37 ` [PATCH v3 17/35] mmc: sdhci-of-arasan: " Binbin Zhou
2025-06-07  7:38 ` [PATCH v3 18/35] mmc: sdhci-of-aspeed: " Binbin Zhou
2025-06-07  7:38 ` [PATCH v3 19/35] mmc: sdhci-of-at91: " Binbin Zhou
2025-06-10  9:34   ` Aubin Constans
2025-06-07  7:39 ` [PATCH v3 20/35] mmc: sdhci-of-dwcmshc: " Binbin Zhou
2025-06-07  7:39 ` [PATCH v3 21/35] mmc: sdhci-of-esdhc: " Binbin Zhou
2025-06-07  7:39 ` [PATCH v3 22/35] mmc: sdhci-of-k1: " Binbin Zhou
2025-06-07  7:48 ` [PATCH v3 23/35] mmc: sdhci-of-ma35d1: " Binbin Zhou
2025-06-07  7:49 ` [PATCH v3 24/35] mmc: sdhci-of-sparx5: " Binbin Zhou
2025-06-12 12:45   ` Daniel Machon
2025-06-07  7:49 ` [PATCH v3 25/35] mmc: sdhci-omap: " Binbin Zhou
2025-06-07  7:50 ` [PATCH v3 26/35] mmc: sdhci-pic32: " Binbin Zhou
2025-06-07  7:50 ` [PATCH v3 27/35] mmc: sdhci-pxav2: " Binbin Zhou
2025-06-07  7:51 ` [PATCH v3 28/35] mmc: sdhci-pxav3: " Binbin Zhou
2025-06-07  7:51 ` [PATCH v3 29/35] mmc: sdhci-sprd: " Binbin Zhou
2025-06-07  7:51 ` [PATCH v3 30/35] mmc: sdhci-st: " Binbin Zhou
2025-06-07  7:52 ` [PATCH v3 31/35] mmc: sdhci-tegra: " Binbin Zhou
2025-06-10 11:16   ` Thierry Reding
2025-06-07  7:52 ` [PATCH v3 32/35] mmc: sdhci-xenon: " Binbin Zhou
2025-06-07  7:52 ` [PATCH v3 33/35] mmc: sdhci_am654: " Binbin Zhou
2025-06-07  7:53 ` [PATCH v3 34/35] mmc: sdhci_f_sdh30: " Binbin Zhou
2025-06-07  7:53 ` [PATCH v3 35/35] mmc: sdhci: Drop sdhci_free_host()/sdhci_pltfm_free() interface Binbin Zhou
2025-06-19 11:19 ` [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).