Skip to content

mmc: power: convert ofnode API to dev_read API

Peng Fan (OSS) u-boot u-boot-amlogic 1 version In review

Get series with b4
b4 am [email protected] change-id 20260604-devapi-05f934cfcc04

Versions newest first

  1. v1 Latest11 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mmc: fsl_esdhc_imx: convert ofnode API to dev_read APIdrivers/mmc/fsl_esdhc_imx.c+6 -80 replies
2/11mmc: msm_sdhci: convert ofnode API to dev_read APIdrivers/mmc/msm_sdhci.c+3 -41 reply
3/11mmc: octeontx_hsmmc: convert ofnode API to dev_read APIdrivers/mmc/octeontx_hsmmc.c drivers/mmc/octeontx_hsmmc.h+30 -450 replies
4/11power: domain: meson-ee-pwrc: use dev_read_phandle_with_args for ao-sysctrldrivers/power/domain/meson-ee-pwrc.c+4 -91 reply
5/11power: domain: meson-gx-pwrc-vpu: use dev_read_phandle_with_args for hhi-sysctrldrivers/power/domain/meson-gx-pwrc-vpu.c+4 -91 reply
6/11power: domain: imx8m: convert ofnode API to dev_read APIdrivers/power/domain/imx8m-power-domain.c+2 -20 replies
7/11power: pmic: pca9450: convert ofnode API to dev_read APIdrivers/power/pmic/pca9450.c+1 -10 replies
8/11power: pmic: qcom: convert ofnode API to dev_read APIdrivers/power/pmic/pmic_qcom.c+1 -11 reply
9/11power: regulator: anatop: convert ofnode API to dev_read APIdrivers/power/regulator/anatop_regulator.c+1 -20 replies
10/11power: regulator: qcom-rpmh: convert ofnode API to dev_read APIdrivers/power/regulator/qcom-rpmh-regulator.c+4 -31 reply
11/11power: regulator: scmi: convert ofnode API to dev_read APIdrivers/power/regulator/scmi_regulator.c+1 -10 replies

Reviews trailers per patch

5 of 11 patches have a Reviewed-by or Acked-by.

PatchCasey ConnollyNeil Armstrong
1/11
2/11R-b
3/11
4/11R-b
5/11R-b
6/11
7/11
8/11R-b
9/11
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] mmc: power: convert ofnode API to dev_read API

Convert MMC and power drivers from using ofnode_read_*() / ofnode_get_property() / ofnode_for_each_subnode() / ofnode_find_subnode() to their dev_read_*() / dev_for_each_subnode() / dev_read_subnode() equivalents. The dev_read_*() functions are thin wrappers that internally call dev_ofnode(dev) and forward to the corresponding ofnode_*() function, so there is no functional change.

For the Meson power domain drivers (meson-ee-pwrc and meson-gx-pwrc-vpu), the manual ofnode_read_u32() + ofnode_get_by_phandle() + ofnode_valid() phandle resolution sequence is replaced with a single dev_read_phandle_with_args() call.

This cleanup removes intermediate 'ofnode node' local variables and the now-unused host->node field in octeontx_hsmmc, making the code more concise.

Drivers converted:
- mmc: fsl_esdhc_imx, msm_sdhci, octeontx_hsmmc
- power/domain: imx8m-power-domain, meson-ee-pwrc, meson-gx-pwrc-vpu
- power/pmic: pca9450, pmic_qcom
- power/regulator: anatop, qcom-rpmh, scmi

---
Peng Fan (11):
mmc: fsl_esdhc_imx: convert ofnode API to dev_read API
mmc: msm_sdhci: convert ofnode API to dev_read API
mmc: octeontx_hsmmc: convert ofnode API to dev_read API
power: domain: meson-ee-pwrc: use dev_read_phandle_with_args for ao-sysctrl
power: domain: meson-gx-pwrc-vpu: use dev_read_phandle_with_args for hhi-sysctrl
power: domain: imx8m: convert ofnode API to dev_read API
power: pmic: pca9450: convert ofnode API to dev_read API
power: pmic: qcom: convert ofnode API to dev_read API
power: regulator: anatop: convert ofnode API to dev_read API
power: regulator: qcom-rpmh: convert ofnode API to dev_read API
power: regulator: scmi: convert ofnode API to dev_read API

 drivers/mmc/fsl_esdhc_imx.c                   | 14 +++--
 drivers/mmc/msm_sdhci.c                       |  7 ++-
 drivers/mmc/octeontx_hsmmc.c                  | 74 +++++++++++----------------
 drivers/mmc/octeontx_hsmmc.h                  |  1 -
 drivers/power/domain/imx8m-power-domain.c     |  4 +-
 drivers/power/domain/meson-ee-pwrc.c          | 13 ++---
 drivers/power/domain/meson-gx-pwrc-vpu.c      | 13 ++---
 drivers/power/pmic/pca9450.c                  |  2 +-
 drivers/power/pmic/pmic_qcom.c                |  2 +-
 drivers/power/regulator/anatop_regulator.c    |  3 +-
 drivers/power/regulator/qcom-rpmh-regulator.c |  7 +--
 drivers/power/regulator/scmi_regulator.c      |  2 +-
 12 files changed, 57 insertions(+), 85 deletions(-)

---
base-commit: 31af00bdc6a3ab5d4ada83e08407f2ce289f0ec6
change-id: 20260604-devapi-05f934cfcc04

Best regards,

Signature · 1 line
Peng Fan <[email protected]>