Files
twx-linux/include/linux
Avri Altman e2f9b62ead 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-30 09:41:19 +01:00
..
2022-08-21 15:16:16 +02:00
2022-10-26 13:25:35 +02:00
2022-07-07 17:52:17 +02:00
2022-09-05 10:28:58 +02:00
2022-10-26 13:25:42 +02:00
2022-04-13 21:00:56 +02:00
2022-08-21 15:16:08 +02:00
2022-08-21 15:15:21 +02:00