public inbox for linux-amlogic@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: add and use helpers mmc_regulator_enable/disable_vqmmc
@ 2023-03-11 22:38 Heiner Kallweit
  2023-03-11 22:39 ` [PATCH 1/2] mmc: core: add " Heiner Kallweit
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Heiner Kallweit @ 2023-03-11 22:38 UTC (permalink / raw)
  To: Ulf Hansson, Martin Blumenstingl, Jerome Brunet, Kevin Hilman,
	Neil Armstrong
  Cc: linux-mmc@vger.kernel.org, open list:ARM/Amlogic Meson...,
	linux-arm-kernel@lists.infradead.org

There's a number of drivers (e.g. dw_mmc, meson-gx, mmci, sunxi) using
the same mechanism and a private flag vqmmc_enabled to deal with
enabling/disabling the vqmmc regulator.

Move this to the core and create new helpers mmc_regulator_enable_vqmmc
and mmc_regulator_disable_vqmmc. Make meson-gx the first user of the
new helpers.

Heiner Kallweit (2):
  mmc: core: add helpers mmc_regulator_enable/disable_vqmmc
  mmc: meson-gx: use new helpers mmc_regulator_enable/disable_vqmmc

 drivers/mmc/core/regulator.c    | 41 +++++++++++++++++++++++++++++++++
 drivers/mmc/host/meson-gx-mmc.c | 18 ++-------------
 include/linux/mmc/host.h        |  3 +++
 3 files changed, 46 insertions(+), 16 deletions(-)

-- 
2.39.2


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

end of thread, other threads:[~2023-03-23 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-11 22:38 [PATCH 0/2] mmc: add and use helpers mmc_regulator_enable/disable_vqmmc Heiner Kallweit
2023-03-11 22:39 ` [PATCH 1/2] mmc: core: add " Heiner Kallweit
2023-03-12 20:28   ` Martin Blumenstingl
2023-03-11 22:41 ` [PATCH 2/2] mmc: meson-gx: use new " Heiner Kallweit
2023-03-12 20:28   ` Martin Blumenstingl
2023-03-23 12:12 ` [PATCH 0/2] mmc: add and use " Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox