Files
linux/drivers/mmc/core
Jonathan Bell 469e5e4713 mmc: core: apply SD quirks earlier during probe
Applying MMC_QUIRK_BROKEN_SD_CACHE is broken, as the card's SD quirks are
referenced in sd_parse_ext_reg_perf() prior to the quirks being initialized
in mmc_blk_probe().

To fix this problem, let's split out an SD-specific list of quirks and
apply in mmc_sd_init_card() instead. In this way, sd_read_ext_regs() to has
the available information for not assigning the SD_EXT_PERF_CACHE as one of
the (un)supported features, which in turn allows mmc_sd_init_card() to
properly skip execution of sd_enable_cache().

Fixes: c467c8f081 ("mmc: Add MMC_QUIRK_BROKEN_SD_CACHE for Kingston Canvas Go Plus from 11/2019")
Signed-off-by: Jonathan Bell <[email protected]>
Co-developed-by: Keita Aihara <[email protected]>
Signed-off-by: Keita Aihara <[email protected]>
Reviewed-by: Dragan Simic <[email protected]>
Reviewed-by: Avri Altman <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
2024-08-26 13:07:26 +02:00
..
…
2022-12-07 13:29:13 +01:00
…
…
2024-04-02 12:21:38 +02:00
…
2023-02-02 16:02:02 +01:00
…
…