All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] mmc: power: convert ofnode API to dev_read API
@ 2026-06-04 12:20 Peng Fan (OSS)
  2026-06-04 12:20 ` [PATCH 01/11] mmc: fsl_esdhc_imx: " Peng Fan (OSS)
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Peng Fan (OSS) @ 2026-06-04 12:20 UTC (permalink / raw)
  To: NXP i.MX U-Boot Team, u-boot, Sumit Garg, u-boot-qcom,
	u-boot-amlogic
  Cc: Stefano Babic, Fabio Estevam, Jaehoon Chung, Tom Rini,
	Marek Vasut, Simon Glass, Kory Maincent, Andrew Goodbody,
	Heiko Schocher, Casey Connolly, Neil Armstrong, Loic Poulain,
	Patrice Chotard, Varadarajan Narayanan, Marek Vasut,
	Frieder Schrempf, Miquel Raynal, Paul Geurts, Primoz Fiser,
	Yao Zi, Luca Weiss, Aswin Murugan, Peter Robinson, Peng Fan

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

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
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,
-- 
Peng Fan <peng.fan@nxp.com>


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

end of thread, other threads:[~2026-06-05 13:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 12:20 [PATCH 00/11] mmc: power: convert ofnode API to dev_read API Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 01/11] mmc: fsl_esdhc_imx: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 02/11] mmc: msm_sdhci: " Peng Fan (OSS)
2026-06-04 15:02   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 03/11] mmc: octeontx_hsmmc: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 04/11] power: domain: meson-ee-pwrc: use dev_read_phandle_with_args for ao-sysctrl Peng Fan (OSS)
2026-06-05 13:08   ` Neil Armstrong
2026-06-04 12:20 ` [PATCH 05/11] power: domain: meson-gx-pwrc-vpu: use dev_read_phandle_with_args for hhi-sysctrl Peng Fan (OSS)
2026-06-05  8:06   ` Neil Armstrong
2026-06-04 12:20 ` [PATCH 06/11] power: domain: imx8m: convert ofnode API to dev_read API Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 07/11] power: pmic: pca9450: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 08/11] power: pmic: qcom: " Peng Fan (OSS)
2026-06-04 14:53   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 09/11] power: regulator: anatop: " Peng Fan (OSS)
2026-06-04 12:20 ` [PATCH 10/11] power: regulator: qcom-rpmh: " Peng Fan (OSS)
2026-06-04 14:55   ` Casey Connolly
2026-06-04 12:20 ` [PATCH 11/11] power: regulator: scmi: " Peng Fan (OSS)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.