summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2026-07-06 16:40:44 +0100
committerUlf Hansson <ulfh@kernel.org>2026-07-13 13:15:47 +0200
commit7185b6d33b170cae54fb562ead44452810b6c231 (patch)
tree49c0a59f6cfb6a55c300919a1f9fbf4d9b24aeea /tools/perf/scripts/python
parent483c948324a3823871c004560a92545759d3253c (diff)
mmc: rtsx_usb_sdmmc: suppress false CD after init timeout
Some Realtek USB SD readers with a tray keep raw SD_CD asserted when an empty tray is inserted. The MMC core then repeatedly tries to initialize non-existent media, sees command timeouts, calls ->get_cd() again, and starts the same detect cycle over. Do not qualify media by open-coding MMC commands in ->get_cd(). Instead, let the normal MMC rescan path probe the card. If an initialization command times out before a card has been attached, suppress the raw SD_CD signal so the host can settle and the USB parent can autosuspend. Clear the suppression only when raw SD_CD drops. On the affected tray reader, changing media requires removing and reinserting the tray, so a low CD transition is the signal that a new insertion attempt can be trusted again. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions