linux/include/linux/mmc
Heiner Kallweit 68156ce252 mmc: core: add helpers mmc_regulator_enable/disable_vqmmc
[ Upstream commit 8d91f3f8ae ]

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.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/71586432-360f-9b92-17f6-b05a8a971bc2@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Stable-dep-of: 477865af60 ("mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-12-08 08:48:05 +01:00
..
card.h mmc: core: Add SD card quirk for broken discard 2022-10-29 10:12:58 +02:00
core.h mmc: core: Store pointer to bio_crypt_ctx in mmc_request 2021-08-24 10:15:32 +02:00
host.h mmc: core: add helpers mmc_regulator_enable/disable_vqmmc 2023-12-08 08:48:05 +01:00
mmc.h mmc: core: Fix ambiguous TRIM and DISCARD arg 2022-12-08 11:28:42 +01:00
pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sd.h mmc: core: Add support for Power Off Notification for SD cards 2021-06-14 13:57:37 +02:00
sdhci-pci-data.h MMC core: 2017-11-13 10:17:35 -08:00
sdio.h mmc: sdio: fix a typo in the comment of SDIO_SD_REV_3_00 2021-03-30 11:42:03 +02:00
sdio_func.h mmc: sdio: Parse CISTPL_VERS_1 major and minor revision numbers 2020-09-07 09:11:28 +02:00
sdio_ids.h brcmfmac: add 43752 SDIO ids and initialization 2021-08-21 19:59:28 +03:00
sh_mmcif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
slot-gpio.h mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00