mirror-linux/include/linux/mmc
Penghe Geng 901084c51a mmc: core: Avoid bitfield RMW for claim/retune flags
Move claimed and retune control flags out of the bitfield word to
avoid unrelated RMW side effects in asynchronous contexts.

The host->claimed bit shared a word with retune flags. Writes to claimed
in __mmc_claim_host() or retune_now in mmc_mq_queue_rq() can overwrite
other bits when concurrent updates happen in other contexts, triggering
spurious WARN_ON(!host->claimed). Convert claimed, can_retune,
retune_now and retune_paused to bool to remove shared-word coupling.

Fixes: 6c0cedd1ef ("mmc: core: Introduce host claiming by context")
Fixes: 1e8e55b670 ("mmc: block: Add CQE support")
Cc: stable@vger.kernel.org
Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Penghe Geng <pgeng@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2026-02-23 13:45:50 +01:00
..
card.h mmc: core: Skip to set the default 200mA SD current limit 2025-10-23 16:07:21 +02:00
core.h mmc: core: Introduce the MMC_RSP_R1B_NO_CRC response 2024-12-10 11:18:45 +01:00
host.h mmc: core: Avoid bitfield RMW for claim/retune flags 2026-02-23 13:45:50 +01:00
mmc.h
pm.h
sd.h
sd_uhs2.h
sdio.h
sdio_func.h sdio: Provide a bustype shutdown function 2026-01-27 13:42:20 +01:00
sdio_ids.h wifi: brcmfmac: fix 43752 SDIO FWVID incorrectly labelled as Cypress (CYW) 2025-09-03 10:08:04 +02:00
slot-gpio.h mmc: rename mmc_can_gpio_ro() to mmc_host_can_gpio_ro() 2025-05-14 16:59:17 +02:00