linux/drivers/mmc/core
Avri Altman 50345c9369 mmc: core: sd: Apply BROKEN_SD_DISCARD quirk earlier
commit 009c3a4bc4 upstream.

Move the BROKEN_SD_DISCARD quirk for certain SanDisk SD cards from the
`mmc_blk_fixups[]` to `mmc_sd_fixups[]`. This ensures the quirk is
applied earlier in the device initialization process, aligning with the
reasoning in [1]. Applying the quirk sooner prevents the kernel from
incorrectly enabling discard support on affected cards during initial
setup.

[1] https://lore.kernel.org/all/20240820230631.GA436523@sony.com

Fixes: 07d2872bf4 ("mmc: core: Add SD card quirk for broken discard")
Signed-off-by: Avri Altman <avri.altman@sandisk.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250526114445.675548-1-avri.altman@sandisk.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-07-10 16:04:42 +02:00
..
block.c mmc: core: Use GFP_NOIO in ACMD22 2024-12-14 20:03:11 +01:00
block.h mmc: block: Remove code no longer needed after the switch to blk-mq 2017-12-11 13:02:22 +01:00
bus.c mmc: core: Further prevent card detect during shutdown 2024-12-14 20:03:31 +01:00
bus.h mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
card.h mmc: Add quirk to disable DDR50 tuning 2025-06-27 11:11:26 +01:00
core.c mmc: core: Further prevent card detect during shutdown 2024-12-14 20:03:31 +01:00
core.h mmc: core: refactor debugfs code 2022-12-07 13:29:13 +01:00
crypto.c blk-crypto: rename blk_keyslot_manager to blk_crypto_profile 2021-10-21 10:49:32 -06:00
crypto.h mmc: core: Add basic support for inline encryption 2021-02-01 12:02:33 +01:00
debugfs.c mmc: debugfs: add card entry for quirks 2024-04-02 12:25:08 +02:00
host.c mmc: core: Remove unused of_gpio.h 2024-04-02 12:21:38 +02:00
host.h mmc: host: factor out clearing the retune state 2021-08-24 10:15:28 +02:00
Kconfig mmc: block: add RPMB dependency 2024-09-03 14:34:44 +02:00
Makefile mmc: core: Add basic support for inline encryption 2021-02-01 12:02:33 +01:00
mmc.c mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
mmc_ops.c mmc: core: Align to common busy polling behaviour for mmc ioctls 2023-02-15 13:24:03 +01:00
mmc_ops.h mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
mmc_test.c mmc: mmc_test: Fix NULL dereference on allocation failure 2024-08-20 13:47:36 +02:00
pwrseq.c mmc: pwrseq: Use device_match_of_node() 2022-12-07 13:22:37 +01:00
pwrseq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 194 2019-05-30 11:29:22 -07:00
pwrseq_emmc.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_sd8787.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_simple.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
queue.c mmc: core: Only set maximum DMA segment size if DMA is supported 2024-10-03 01:23:57 +02:00
queue.h block: move cache control settings out of queue->flags 2024-06-19 07:58:28 -06:00
quirks.h mmc: core: sd: Apply BROKEN_SD_DISCARD quirk earlier 2025-07-10 16:04:42 +02:00
regulator.c mmc: core: Use dev_err_probe for deferred regulators 2024-09-13 14:09:29 +02:00
sd.c mmc: Add quirk to disable DDR50 tuning 2025-06-27 11:11:26 +01:00
sd.h mmc: sd: SDUC Support Recognition 2024-12-14 20:03:11 +01:00
sd_ops.c mmc: core: Replace the argument of mmc_sd_switch() with defines 2024-09-03 14:14:51 +02:00
sd_ops.h mmc: core: Add host specific tuning support for SD HS mode 2023-08-25 11:45:51 +02:00
sdio.c mmc: core: Respect quirk_max_rate for non-UHS SDIO card 2025-02-17 10:04:50 +01:00
sdio_bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
sdio_bus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdio_cis.c mmc: sdio: fix possible resource leaks in some error paths 2023-02-14 00:06:22 +01:00
sdio_cis.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdio_io.c mmc: sdio: Spelling s/compement/complement/ 2023-01-23 15:51:38 +01:00
sdio_irq.c mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
sdio_ops.c mmc: sdio: Use mmc_pre_req() / mmc_post_req() 2020-09-07 08:57:44 +02:00
sdio_ops.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdio_uart.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
slot-gpio.c mmc: slot-gpio: Use irq_handler_t type 2024-04-26 06:47:04 +02:00
slot-gpio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 194 2019-05-30 11:29:22 -07:00