Skip to content

mmc: host: use modern PM macros

Jisheng Zhang linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest38 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/38sdhci: add some simple inline functions for !CONFIG_PMdrivers/mmc/host/sdhci.h+7 -01 reply
2/38mmc: sdhci-of-dwcmshc: use modern PM macrosdrivers/mmc/host/sdhci-of-dwcmshc.c+3 -101 reply
3/38mmc: sdhci-xenon: use modern PM macrosdrivers/mmc/host/sdhci-xenon.c+3 -100 replies
4/38mmc: sdhci-pxav3: use modern PM macrosdrivers/mmc/host/sdhci-pxav3.c+3 -80 replies
5/38mmc: sunxi: use modern PM macrosdrivers/mmc/host/sunxi-mmc.c+3 -80 replies
6/38mmc: alcor: use modern PM macrosdrivers/mmc/host/alcor.c+3 -50 replies
7/38mmc: atmel: use modern PM macrosdrivers/mmc/host/atmel-mci.c+3 -60 replies
8/38mmc: au1xmmc: use modern PM macrosdrivers/mmc/host/au1xmmc.c+7 -110 replies
9/38mmc: cb710-mmc: use modern PM macrosdrivers/mmc/host/cb710-mmc.c+9 -101 reply
10/38mmc: davinci_mmc: use modern PM macrosdrivers/mmc/host/davinci_mmc.c+3 -110 replies
11/38mmc: mmci: use modern PM macrosdrivers/mmc/host/mmci.c+3 -60 replies
12/38mmc: mxs-mmc: use modern PM macrosdrivers/mmc/host/mxs-mmc.c+2 -40 replies
13/38mmc: omap_hsmmc: use modern PM macrosdrivers/mmc/host/omap_hsmmc.c+4 -90 replies
14/38mmc: rtsx_usb_sdmmc: use modern PM macrosdrivers/mmc/host/rtsx_usb_sdmmc.c+2 -50 replies
15/38mmc: sdhci-acpi: use modern PM macrosdrivers/mmc/host/sdhci-acpi.c+4 -141 reply
16/38mmc: sdhci_am654: use modern PM macrosdrivers/mmc/host/sdhci_am654.c+3 -70 replies
17/38mmc: sdhci-brcmstb: use modern PM macrosdrivers/mmc/host/sdhci-brcmstb.c+2 -60 replies
18/38mmc: sdhci-esdhc-imx: use modern PM macrosdrivers/mmc/host/sdhci-esdhc-imx.c+3 -106 replies
19/38mmc: sdhci-of-arasan: use modern PM macrosdrivers/mmc/host/sdhci-of-arasan.c+3 -50 replies
20/38mmc: sdhci-of-at91: use modern PM macrosdrivers/mmc/host/sdhci-of-at91.c+3 -90 replies
21/38mmc: sdhci-of-esdhc: use modern PM macrosdrivers/mmc/host/sdhci-of-esdhc.c+2 -60 replies
22/38mmc: sdhci-omap: use modern PM macrosdrivers/mmc/host/sdhci-omap.c+7 -110 replies
23/38mmc: sdhci-cadence: use modern PM macrosdrivers/mmc/host/sdhci-cadence.c+2 -60 replies
24/38mmc: sdhci-s3c: use modern PM macrosdrivers/mmc/host/sdhci-s3c.c+3 -80 replies
25/38mmc: sdhci-spear: use modern PM macrosdrivers/mmc/host/sdhci-spear.c+2 -41 reply
26/38mmc: sdhci-sprd: use modern PM macrosdrivers/mmc/host/sdhci-sprd.c+3 -70 replies
27/38mmc: sdhci-st: use modern PM macrosdrivers/mmc/host/sdhci-st.c+2 -41 reply
28/38mmc: sdhci-tegra: use modern PM macrosdrivers/mmc/host/sdhci-tegra.c+5 -80 replies
29/38mmc: sh_mmicf: use modern PM macrosdrivers/mmc/host/sh_mmcif.c+2 -60 replies
30/38mmc: toshsd: use modern PM macrosdrivers/mmc/host/toshsd.c+2 -60 replies
31/38mmc: wmt-sdmmc: use modern PM macrosdrivers/mmc/host/wmt-sdmmc.c+2 -140 replies
32/38mmc: mtk-sd: use modern PM macrosdrivers/mmc/host/mtk-sd.c+7 -70 replies
33/38mmc: sdhci-msm: use modern PM macrosdrivers/mmc/host/sdhci-msm.c+9 -120 replies
34/38mmc: via-sdmmc: use modern PM macrosdrivers/mmc/host/via-sdmmc.c+5 -50 replies
35/38mmc: dw_mmc: exynos: use modern PM macrosdrivers/mmc/host/dw_mmc-exynos.c drivers/mmc/host/dw_mmc.h+6 -100 replies
36/38mmc: dw_mmc-k3: use modern PM macrosdrivers/mmc/host/dw_mmc-k3.c+3 -60 replies
37/38mmc: dw_mmc-pci: use modern PM macrosdrivers/mmc/host/dw_mmc-pci.c+3 -60 replies
38/38mmc: dw_mmc-rockchip: use modern PM macrosdrivers/mmc/host/dw_mmc-rockchip.c+3 -60 replies

Reviews trailers per patch

6 of 38 patches have a Reviewed-by or Acked-by.

PatchViresh KumarPatrice ChotardAdrian HunterDrew FustiniHaibo ChenMichał Mirosław
1/38A-b
2/38T-b
3/38
4/38
5/38
6/38
7/38
8/38
9/38A-b
10/38
11/38
12/38
13/38
14/38
15/38A-b
16/38
17/38
18/38R-b
19/38
20/38
21/38
22/38
23/38
24/38
25/38A-b
26/38
27/38R-b
28/38
29/38
30/38
31/38
32/38
33/38
34/38
35/38
36/38
37/38
38/38

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

Read the v1 thread

Cover letter [PATCH 00/38] mmc: host: use modern PM macros

Use the modern PM macros for the suspend and resume functions to be automatically dropped by the compiler when CONFIG_PM or CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards or __maybe_unused.

This has the advantage of always compiling these functions in, independently of any Kconfig option. Thanks to that, bugs and other regressions are subsequently easier to catch.

Previously, I only cleaned up the host drivers which I used, e.g sdhci-of-dwcmshc, sdhci-pxav3 and sdhci-xenon, these are both compile tested and functionality tested. But then I also cleaned up other host drivers, but they are compile-tested only.

Jisheng Zhang (38):
sdhci: add some simple inline functions for !CONFIG_PM
mmc: sdhci-of-dwcmshc: use modern PM macros
mmc: sdhci-xenon: use modern PM macros
mmc: sdhci-pxav3: use modern PM macros
mmc: sunxi: use modern PM macros
mmc: alcor: use modern PM macros
mmc: atmel: use modern PM macros
mmc: au1xmmc: use modern PM macros
mmc: cb710-mmc: use modern PM macros
mmc: davinci_mmc: use modern PM macros
mmc: mmci: use modern PM macros
mmc: mxs-mmc: use modern PM macros
mmc: omap_hsmmc: use modern PM macros
mmc: rtsx_usb_sdmmc: use modern PM macros
mmc: sdhci-acpi: use modern PM macros
mmc: sdhci_am654: use modern PM macros
mmc: sdhci-brcmstb: use modern PM macros
mmc: sdhci-esdhc-imx: use modern PM macros
mmc: sdhci-of-arasan: use modern PM macros
mmc: sdhci-of-at91: use modern PM macros
mmc: sdhci-of-esdhc: use modern PM macros
mmc: sdhci-omap: use modern PM macros
mmc: sdhci-cadence: use modern PM macros
mmc: sdhci-s3c: use modern PM macros
mmc: sdhci-spear: use modern PM macros
mmc: sdhci-sprd: use modern PM macros
mmc: sdhci-st: use modern PM macros
mmc: sdhci-tegra: use modern PM macros
mmc: sh_mmicf: use modern PM macros
mmc: toshsd: use modern PM macros
mmc: wmt-sdmmc: use modern PM macros
mmc: mtk-sd: use modern PM macros
mmc: sdhci-msm: use modern PM macros
mmc: via-sdmmc: use modern PM macros
mmc: dw_mmc: exynos: use modern PM macros
mmc: dw_mmc-k3: use modern PM macros
mmc: dw_mmc-pci: use modern PM macros
mmc: dw_mmc-rockchip: use modern PM macros

 drivers/mmc/host/alcor.c            |  8 +++-----
 drivers/mmc/host/atmel-mci.c        |  9 +++------
 drivers/mmc/host/au1xmmc.c          | 18 +++++++-----------
 drivers/mmc/host/cb710-mmc.c        | 19 +++++++++----------
 drivers/mmc/host/davinci_mmc.c      | 14 +++-----------
 drivers/mmc/host/dw_mmc-exynos.c    | 13 +++----------
 drivers/mmc/host/dw_mmc-k3.c        |  9 +++------
 drivers/mmc/host/dw_mmc-pci.c       |  9 +++------
 drivers/mmc/host/dw_mmc-rockchip.c  |  9 +++------
 drivers/mmc/host/dw_mmc.h           |  3 +++
 drivers/mmc/host/mmci.c             |  9 +++------
 drivers/mmc/host/mtk-sd.c           | 14 +++++++-------
 drivers/mmc/host/mxs-mmc.c          |  6 ++----
 drivers/mmc/host/omap_hsmmc.c       | 13 ++++---------
 drivers/mmc/host/rtsx_usb_sdmmc.c   |  7 ++-----
 drivers/mmc/host/sdhci-acpi.c       | 18 ++++--------------
 drivers/mmc/host/sdhci-brcmstb.c    |  8 ++------
 drivers/mmc/host/sdhci-cadence.c    |  8 ++------
 drivers/mmc/host/sdhci-esdhc-imx.c  | 13 +++----------
 drivers/mmc/host/sdhci-msm.c        | 21 +++++++++------------
 drivers/mmc/host/sdhci-of-arasan.c  |  8 +++-----
 drivers/mmc/host/sdhci-of-at91.c    | 12 +++---------
 drivers/mmc/host/sdhci-of-dwcmshc.c | 13 +++----------
 drivers/mmc/host/sdhci-of-esdhc.c   |  8 ++------
 drivers/mmc/host/sdhci-omap.c       | 18 +++++++-----------
 drivers/mmc/host/sdhci-pxav3.c      | 11 +++--------
 drivers/mmc/host/sdhci-s3c.c        | 11 +++--------
 drivers/mmc/host/sdhci-spear.c      |  6 ++----
 drivers/mmc/host/sdhci-sprd.c       | 10 +++-------
 drivers/mmc/host/sdhci-st.c         |  6 ++----
 drivers/mmc/host/sdhci-tegra.c      | 13 +++++--------
 drivers/mmc/host/sdhci-xenon.c      | 13 +++----------
 drivers/mmc/host/sdhci.h            |  7 +++++++
 drivers/mmc/host/sdhci_am654.c      | 10 +++-------
 drivers/mmc/host/sh_mmcif.c         |  8 ++------
 drivers/mmc/host/sunxi-mmc.c        | 11 +++--------
 drivers/mmc/host/toshsd.c           |  8 ++------
 drivers/mmc/host/via-sdmmc.c        | 10 +++++-----
 drivers/mmc/host/wmt-sdmmc.c        | 16 ++--------------
 39 files changed, 141 insertions(+), 286 deletions(-)
Signature · 1 line
2.50.0