[RFC PATCH 0/2] rtsx_usb: runtime PM fixes before tray-reader detect rework
From: Sean Rhodes
Date: Mon Apr 13 2026 - 07:42:44 EST
This is an RFC for the USB/cardreader side of the rtsx tray-reader issue.
Assuming the separate resume-reset fix has landed, this is the next step:
clean up runtime PM handling in the USB/cardreader layer before attempting
any further MMC-side detect changes.
Patch 1 holds a runtime PM reference across transfers and marks the device
busy afterwards.
Patch 2 avoids issuing USB register I/O from the runtime autosuspend path,
which can deadlock runtime PM and leave the device stuck in a suspending
state.
The remaining tray-reader false-detect problem likely needs event
qualification on the USB/cardreader side rather than MMC command probing
from ->get_cd(). Guidance on the right place for that logic would be
useful.
Sean Rhodes (2):
rtsx_usb: hold runtime PM during transfers
rtsx_usb: avoid USB I/O in runtime autosuspend
drivers/misc/cardreader/rtsx_usb.c | 49 +++++++++++++++++++++++-------
include/linux/rtsx_usb.h | 3 ++
2 files changed, 41 insertions(+), 11 deletions(-)