linux_dsm_epyc7002/include/linux/mmc
Avri Altman bc47e2f6f9 mmc: core: Add discard support to sd
SD spec v5.1 adds discard support. The flows and commands are similar to
mmc, so just set the discard arg in CMD38.

A host which supports DISCARD shall check if the DISCARD_SUPPORT (b313)
is set in the SD_STATUS register.  If the card does not support discard,
the host shall not issue DISCARD command, but ERASE command instead.

Post the DISCARD operation, the card may de-allocate the discarded
blocks partially or completely. So the host mustn't make any assumptions
concerning the content of the discarded region. This is unlike ERASE
command, in which the region is guaranteed to contain either '0's or
'1's, depends on the content of DATA_STAT_AFTER_ERASE (b55) in the scr
register.

One more important difference compared to ERASE is the busy timeout
which we will address on the next patch.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2019-02-28 09:16:12 +01:00
..
card.h mmc: core: Indicate SD specs higher than 4.0 2019-02-25 08:40:58 +01:00
core.h mmc: core: Export a function mmc_sw_reset() to allow soft reset of cards 2018-05-08 09:33:42 +02:00
host.h mmc: core: Convert mmc_regulator_get_ocrmask() to static 2019-02-25 15:20:58 +01:00
mmc.h mmc: core: Adjust and reuse the macro of R1_STATUS(x) 2018-07-16 11:21:45 +02:00
pm.h
sd.h mmc: core: Add discard support to sd 2019-02-28 09:16:12 +01:00
sdhci-pci-data.h MMC core: 2017-11-13 10:17:35 -08:00
sdio_func.h
sdio_ids.h brcmfmac: add support for CYW43012 SDIO chipset 2018-12-13 16:57:17 +02:00
sdio.h
sh_mmcif.h
slot-gpio.h mmc: slot-gpio: Remove override_active_level on WP 2019-02-25 08:40:58 +01:00