linux-stable/include/linux/mmc
Avri Altman 025723a9ba mmc: core: Add SD card quirk for broken discard
commit 07d2872bf4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-21 12:37:35 +02:00
..
card.h mmc: core: Add SD card quirk for broken discard 2022-10-21 12:37:35 +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: Capture eMMC and SD card errors 2022-07-12 12:25:34 +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
sdio_ids.h mmc: add MT7921 SDIO identifiers for MediaTek Bluetooth devices 2021-10-25 15:36:24 +02:00
slot-gpio.h