linux/include/linux/mmc
Keita Aihara bc7ff558d7 mmc: core: Add SD card quirk for broken poweroff notification
[ Upstream commit cd068d5159 ]

GIGASTONE Gaming Plus microSD cards manufactured on 02/2022 report that
they support poweroff notification and cache, but they are not working
correctly.

Flush Cache bit never gets cleared in sd_flush_cache() and Poweroff
Notification Ready bit also never gets set to 1 within 1 second from the
end of busy of CMD49 in sd_poweroff_notify().

This leads to I/O error and runtime PM error state.

I observed that the same card manufactured on 01/2024 works as expected.

This problem seems similar to the Kingston cards fixed with
commit c467c8f081 ("mmc: Add MMC_QUIRK_BROKEN_SD_CACHE for Kingston
Canvas Go Plus from 11/2019") and should be handled using quirks.

CID for the problematic card is here.
12345641535443002000000145016200

Manufacturer ID is 0x12 and defined as CID_MANFID_GIGASTONE as of now,
but would like comments on what naming is appropriate because MID list
is not public and not sure it's right.

Signed-off-by: Keita Aihara <keita.aihara@sony.com>
Link: https://lore.kernel.org/r/20240913094417.GA4191647@sony.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-14 20:03:40 +01:00
..
card.h mmc: core: Add SD card quirk for broken poweroff notification 2024-12-14 20:03:40 +01:00
core.h mmc: core: remove left-over data structure declarations 2024-08-26 13:30:21 +02:00
host.h Many singleton patches - please see the various changelogs for details. 2024-09-21 08:20:50 -07:00
mmc.h mmc: core: Remove packed command leftovers 2023-12-07 14:08:44 +01:00
pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sd.h mmc: sd: SDUC Support Recognition 2024-12-14 20:03:11 +01:00
sdio.h mmc: core: Add support for SDIO wakeup interrupt 2022-07-26 16:58:31 +02:00
sdio_func.h mmc: sdio: store owner from modules with sdio_register_driver() 2024-04-02 12:50:14 +02:00
sdio_ids.h wifi: rtw88: SDIO device driver for RTL8723CS 2024-03-14 10:59:30 +02:00
slot-gpio.h mmc: slot-gpio: Use irq_handler_t type 2024-04-26 06:47:04 +02:00