twx-linux/include/linux/mmc
Ulf Hansson c784f92769 mmc: core: Read the SD function extension registers for power management
In the SD spec v4.0 the CMD48/49 and CMD58/59 were introduced as optional
commands. In the SD spec v4.1 the SD function extension registers were
introduced, which requires support for CMD48/49/58/59 to be read/written
from/to.

Moreover, a specific function extension register were added to let the card
announce support for optional features in regards to power management. The
features that were added are "Power Off Notification", "Power Down Mode"
and "Power Sustenance".

As a first step to support this, let's read and parse the register for
power management during the SD card initialization and store the
information about the supported features in the struct mmc_card. In this
way, we prepare for subsequent changes to implement the complete support
for the new features.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20210504161222.101536-10-ulf.hansson@linaro.org
2021-06-14 13:57:36 +02:00
..
card.h mmc: core: Read the SD function extension registers for power management 2021-06-14 13:57:36 +02:00
core.h mmc: core: Add basic support for inline encryption 2021-02-01 12:02:33 +01:00
host.h mmc: core: Convert mmc_of_parse_voltage() to use device property API 2021-04-23 09:29:49 +02:00
mmc.h
pm.h
sd.h mmc: core: Read the SD function extension registers for power management 2021-06-14 13:57:36 +02:00
sdhci-pci-data.h
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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07: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
sh_mmcif.h
slot-gpio.h