Skip to content

mmc: Cleanup mmc_alloc_host() usage

Binbin Zhou linux-amlogic linux-mmc linux-sunxi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest36 patches 2 repliesIn review
  2. v136 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Collect Reviewed-by and Acked-by tags.
Patch-24
- Correct subject title: ish_mmicf -> sh_mmicf.
Patch-34
- Fix cheap build error.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/36mmc: alcor: Use devm_mmc_alloc_host() helperdrivers/mmc/host/alcor.c+5 -150 replies
2/36mmc: atmel: Use devm_mmc_alloc_host() helperdrivers/mmc/host/atmel-mci.c+2 -50 replies
3/36mmc: au1xmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/au1xmmc.c+4 -100 replies
4/36mmc: bcm2835: Use devm_mmc_alloc_host() helperdrivers/mmc/host/bcm2835.c+1 -40 replies
5/36mmc: cavium: Use devm_mmc_alloc_host() helperdrivers/mmc/host/cavium.c+2 -80 replies
6/36mmc: cb710: Use devm_mmc_alloc_host() helperdrivers/mmc/host/cb710-mmc.c+1 -40 replies
7/36mmc: davinci_mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/davinci_mmc.c+7 -150 replies
8/36mmc: dw_mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/dw_mmc.c+5 -100 replies
9/36mmc: jz4740: Use devm_mmc_alloc_host() helperdrivers/mmc/host/jz4740_mmc.c+13 -270 replies
10/36mmc: litex_mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/litex_mmc.c+1 -111 reply
11/36mmc: meson-mx-sdhc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/meson-mx-sdhc-mmc.c+1 -120 replies
12/36mmc: mmci: Use devm_mmc_alloc_host() helperdrivers/mmc/host/mmci.c+11 -200 replies
13/36mmc: moxart-mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/moxart-mmc.c+14 -260 replies
14/36mmc: mvsdio: Use devm_mmc_alloc_host() helperdrivers/mmc/host/mvsdio.c+7 -170 replies
15/36mmc: mxcmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/mxcmmc.c+10 -210 replies
16/36mmc: mxs-mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/mxs-mmc.c+11 -200 replies
17/36mmc: omap: Use devm_mmc_alloc_host() helperdrivers/mmc/host/omap.c+9 -160 replies
18/36mmc: omap_hsmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/omap_hsmmc.c+5 -130 replies
19/36mmc: owl-mmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/owl-mmc.c+13 -240 replies
20/36mmc: pxamci: Use devm_mmc_alloc_host() helperdrivers/mmc/host/pxamci.c+15 -270 replies
21/36mmc: rtsx_pci: Use devm_mmc_alloc_host() helperdrivers/mmc/host/rtsx_pci_sdmmc.c+1 -40 replies
22/36mmc: rtsx_usb_sdmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/rtsx_usb_sdmmc.c+1 -30 replies
23/36mmc: sdricoh_cs: Use devm_mmc_alloc_host() helperdrivers/mmc/host/sdricoh_cs.c+3 -70 replies
24/36mmc: sh_mmicf: Use devm_mmc_alloc_host() helperdrivers/mmc/host/sh_mmcif.c+6 -110 replies
25/36mmc: tifm_sd: Use devm_mmc_alloc_host() helperdrivers/mmc/host/tifm_sd.c+1 -60 replies
26/36mmc: toshsd: Use devm_mmc_alloc_host() helperdrivers/mmc/host/toshsd.c+1 -30 replies
27/36mmc: usdhi6ro10: Use devm_mmc_alloc_host() helperdrivers/mmc/host/usdhi6rol0.c+10 -200 replies
28/36mmc: ushc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/ushc.c+1 -30 replies
29/36mmc: via-sdmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/via-sdmmc.c+2 -50 replies
30/36mmc: vub300: Use devm_mmc_alloc_host() helperdrivers/mmc/host/vub300.c+6 -100 replies
31/36mmc: wbsd: Use devm_mmc_alloc_host() helperdrivers/mmc/host/wbsd.c+1 -30 replies
32/36mmc: wmt-sdmmc: Use devm_mmc_alloc_host() helperdrivers/mmc/host/wmt-sdmmc.c+2 -60 replies
33/36mmc: tmio: Use devm_mmc_alloc_host() helperdrivers/mmc/host/renesas_sdhi_core.c drivers/mmc/host/tmio_mmc.h drivers/mmc/host/tmio_mmc_core.c +1 more+6 -270 replies
34/36mmc: sunxi: Use devm_mmc_alloc_host() helperdrivers/mmc/host/sunxi-mmc.c+8 -140 replies
35/36mmc: mmc_spi: Use devm_mmc_alloc_host() helperdrivers/mmc/host/mmc_spi.c+1 -30 replies
36/36mmc: meson-mx-sdio: Use devm_mmc_alloc_host() helperdrivers/mmc/host/meson-mx-sdio.c+8 -120 replies

Reviews trailers per patch

All 36 patches have a Reviewed-by or Acked-by.

PatchHuacai ChenMichał MirosławAlexey CharkovGabriel Somlo
1/36R-b
2/36R-b
3/36R-b
4/36R-b
5/36R-b
6/36R-b A-b
7/36R-b
8/36R-b
9/36R-b
10/36R-b A-b
11/36R-b
12/36R-b
13/36R-b
14/36R-b
15/36R-b
16/36R-b
17/36R-b
18/36R-b
19/36R-b
20/36R-b
21/36R-b
22/36R-b
23/36R-b
24/36R-b
25/36R-b
26/36R-b
27/36R-b
28/36R-b
29/36R-b
30/36R-b
31/36R-b
32/36R-b A-b
33/36R-b
34/36R-b
35/36R-b
36/36R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/36] mmc: Cleanup mmc_alloc_host() usage

Hi all:

First of all, I'm very sorry for the compilation failure issue due to my cheap mistake in v1 patchset.

The patch series was tested by using lkp and cross compiling with different architectures (arm/mips/x86_64 etc architectures) and enabling COMPILE_TEST=y to ensure that each driver was compiled and tested.

Since the devm_mmc_alloc_host() helper was already available, I tried to start cleaning up the use of mmc_alloc_host().

To make it easier to review the patchset, I decided to split it into two parts. As the first part, this patchset contains cleanup for drivers other than sdhci.

Of course, the sdhci part I have ready in my repository.

Thanks.

-----
V2:
- Collect Reviewed-by and Acked-by tags.
Patch-24
- Correct subject title: ish_mmicf -> sh_mmicf.
Patch-34
- Fix cheap build error.

Link to V1:
https://lore.kernel.org/all/[email protected]/

Binbin Zhou (36):
mmc: alcor: Use devm_mmc_alloc_host() helper
mmc: atmel: Use devm_mmc_alloc_host() helper
mmc: au1xmmc: Use devm_mmc_alloc_host() helper
mmc: bcm2835: Use devm_mmc_alloc_host() helper
mmc: cavium: Use devm_mmc_alloc_host() helper
mmc: cb710: Use devm_mmc_alloc_host() helper
mmc: davinci_mmc: Use devm_mmc_alloc_host() helper
mmc: dw_mmc: Use devm_mmc_alloc_host() helper
mmc: jz4740: Use devm_mmc_alloc_host() helper
mmc: litex_mmc: Use devm_mmc_alloc_host() helper
mmc: meson-mx-sdhc: Use devm_mmc_alloc_host() helper
mmc: mmci: Use devm_mmc_alloc_host() helper
mmc: moxart-mmc: Use devm_mmc_alloc_host() helper
mmc: mvsdio: Use devm_mmc_alloc_host() helper
mmc: mxcmmc: Use devm_mmc_alloc_host() helper
mmc: mxs-mmc: Use devm_mmc_alloc_host() helper
mmc: omap: Use devm_mmc_alloc_host() helper
mmc: omap_hsmmc: Use devm_mmc_alloc_host() helper
mmc: owl-mmc: Use devm_mmc_alloc_host() helper
mmc: pxamci: Use devm_mmc_alloc_host() helper
mmc: rtsx_pci: Use devm_mmc_alloc_host() helper
mmc: rtsx_usb_sdmmc: Use devm_mmc_alloc_host() helper
mmc: sdricoh_cs: Use devm_mmc_alloc_host() helper
mmc: sh_mmicf: Use devm_mmc_alloc_host() helper
mmc: tifm_sd: Use devm_mmc_alloc_host() helper
mmc: toshsd: Use devm_mmc_alloc_host() helper
mmc: usdhi6ro10: Use devm_mmc_alloc_host() helper
mmc: ushc: Use devm_mmc_alloc_host() helper
mmc: via-sdmmc: Use devm_mmc_alloc_host() helper
mmc: vub300: Use devm_mmc_alloc_host() helper
mmc: wbsd: Use devm_mmc_alloc_host() helper
mmc: wmt-sdmmc: Use devm_mmc_alloc_host() helper
mmc: tmio: Use devm_mmc_alloc_host() helper
mmc: sunxi: Use devm_mmc_alloc_host() helper
mmc: mmc_spi: Use devm_mmc_alloc_host() helper
mmc: meson-mx-sdio: Use devm_mmc_alloc_host() helper

 drivers/mmc/host/alcor.c             | 20 ++++---------
 drivers/mmc/host/atmel-mci.c         |  7 ++---
 drivers/mmc/host/au1xmmc.c           | 14 +++-------
 drivers/mmc/host/bcm2835.c           |  5 +---
 drivers/mmc/host/cavium.c            | 10 ++-----
 drivers/mmc/host/cb710-mmc.c         |  5 +---
 drivers/mmc/host/davinci_mmc.c       | 22 +++++----------
 drivers/mmc/host/dw_mmc.c            | 15 ++++------
 drivers/mmc/host/jz4740_mmc.c        | 40 +++++++++-----------------
 drivers/mmc/host/litex_mmc.c         | 12 +-------
 drivers/mmc/host/meson-mx-sdhc-mmc.c | 13 +--------
 drivers/mmc/host/meson-mx-sdio.c     | 20 ++++++-------
 drivers/mmc/host/mmc_spi.c           |  4 +--
 drivers/mmc/host/mmci.c              | 31 ++++++++------------
 drivers/mmc/host/moxart-mmc.c        | 40 ++++++++++----------------
 drivers/mmc/host/mvsdio.c            | 24 +++++-----------
 drivers/mmc/host/mxcmmc.c            | 31 +++++++-------------
 drivers/mmc/host/mxs-mmc.c           | 31 ++++++++------------
 drivers/mmc/host/omap.c              | 25 ++++++-----------
 drivers/mmc/host/omap_hsmmc.c        | 18 ++++--------
 drivers/mmc/host/owl-mmc.c           | 37 +++++++++---------------
 drivers/mmc/host/pxamci.c            | 42 ++++++++++------------------
 drivers/mmc/host/renesas_sdhi_core.c |  6 +---
 drivers/mmc/host/rtsx_pci_sdmmc.c    |  5 +---
 drivers/mmc/host/rtsx_usb_sdmmc.c    |  4 +--
 drivers/mmc/host/sdricoh_cs.c        | 10 ++-----
 drivers/mmc/host/sh_mmcif.c          | 17 ++++-------
 drivers/mmc/host/sunxi-mmc.c         | 22 ++++++---------
 drivers/mmc/host/tifm_sd.c           |  7 +----
 drivers/mmc/host/tmio_mmc.h          |  1 -
 drivers/mmc/host/tmio_mmc_core.c     | 18 ++----------
 drivers/mmc/host/toshsd.c            |  4 +--
 drivers/mmc/host/uniphier-sd.c       |  8 ++----
 drivers/mmc/host/usdhi6rol0.c        | 30 +++++++-------------
 drivers/mmc/host/ushc.c              |  4 +--
 drivers/mmc/host/via-sdmmc.c         |  7 ++---
 drivers/mmc/host/vub300.c            | 16 ++++-------
 drivers/mmc/host/wbsd.c              |  4 +--
 drivers/mmc/host/wmt-sdmmc.c         |  8 ++----
 39 files changed, 195 insertions(+), 442 deletions(-)

base-commit: 61bd8e76021e779f7ba3c761919b533fb3f6f584

Signature · 1 line
2.47.1