OpenCloudOS-Kernel/include/linux/mmc
Avri Altman 07d2872bf4 mmc: core: Add SD card quirk for broken discard
Some SD-cards from Sandisk that are SDA-6.0 compliant reports they supports
discard, while they actually don't. This might cause mk2fs to fail while
trying to format the card and revert it to a read-only mode.

To fix this problem, let's add a card quirk (MMC_QUIRK_BROKEN_SD_DISCARD)
to indicate that we shall fall-back to use the legacy erase command
instead.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220928095744.16455-1-avri.altman@wdc.com
[Ulf: Updated the commit message]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2022-10-06 13:31:13 +02:00
..
card.h mmc: core: Add SD card quirk for broken discard 2022-10-06 13:31:13 +02:00
core.h mmc: core: improve API to make clear that mmc_sw_reset is for cards 2022-04-26 14:05:20 +02:00
host.h mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
mmc.h mmc: sdhci: Capture eMMC and SD card errors 2022-07-12 12:25:34 +02:00
pm.h
sd.h mmc: core: Add support for Power Off Notification for SD cards 2021-06-14 13:57:37 +02:00
sdio.h mmc: core: Add support for SDIO wakeup interrupt 2022-07-26 16:58:31 +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 wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
slot-gpio.h mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00