Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: core: Add DT-bindings for MMC_CAP2_FULL_PWR_CYCLE

The DT-binding for MMC_CAP2_FULL_PWR_CYCLE, is used to indicate whether
it is possible to perform a full power cycle of the card.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Ulf Hansson and committed by
Chris Ball
5a36d6bc 53275c21

+3
+1
Documentation/devicetree/bindings/mmc/mmc.txt
··· 28 28 - cap-mmc-highspeed: MMC high-speed timing is supported 29 29 - cap-power-off-card: powering off the card is safe 30 30 - cap-sdio-irq: enable SDIO IRQ signalling on this interface 31 + - full-pwr-cycle: full power cycle of the card is supported 31 32 32 33 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line 33 34 polarity properties, we have to fix the meaning of the "normal" and "inverted"
+2
drivers/mmc/core/host.c
··· 423 423 host->caps |= MMC_CAP_POWER_OFF_CARD; 424 424 if (of_find_property(np, "cap-sdio-irq", &len)) 425 425 host->caps |= MMC_CAP_SDIO_IRQ; 426 + if (of_find_property(np, "full-pwr-cycle", &len)) 427 + host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE; 426 428 if (of_find_property(np, "keep-power-in-suspend", &len)) 427 429 host->pm_caps |= MMC_PM_KEEP_POWER; 428 430 if (of_find_property(np, "enable-sdio-wakeup", &len))