mbox series

[0/2] mmc: add and use helpers mmc_regulator_enable/disable_vqmmc

Message ID 9ae6f90e-e1ea-d088-cdae-7dd8a541f00f@gmail.com
Headers show
Series mmc: add and use helpers mmc_regulator_enable/disable_vqmmc | expand

Message

Heiner Kallweit March 11, 2023, 10:38 p.m. UTC
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(-)

Comments

Ulf Hansson March 23, 2023, 12:12 p.m. UTC | #1
On Sat, 11 Mar 2023 at 23:38, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> 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(-)
>

Applied for next, thanks!

Kind regards
Uffe