mirror of
https://github.com/torvalds/linux.git
synced 2026-10-28 17:55:02 +01:00
The runtime autosuspend callback currently queries card status and
clears OCP by issuing USB register accesses. This can run from the
USB runtime-PM path itself, which is the wrong place to start more
device I/O.
Keep a cached copy of the card-status bits from normal status reads
instead. During runtime autosuspend, use that cached value only to
preserve the existing Memory Stick autosuspend deferral.
Do not treat raw SD_CD as an autosuspend blocker, because tray-based
SD readers can assert SD_CD with an empty tray. A real SD card is
protected by the SD/MMC child runtime-PM usage once powered.
Also stop clearing OCP from the runtime autosuspend callback, so the
callback does not issue USB commands.
Fixes:
|
||
|---|---|---|
| .. | ||
| alcor_pci.c | ||
| Kconfig | ||
| Makefile | ||
| rtl8411.c | ||
| rts5209.c | ||
| rts5227.c | ||
| rts5228.c | ||
| rts5228.h | ||
| rts5229.c | ||
| rts5249.c | ||
| rts5260.c | ||
| rts5260.h | ||
| rts5261.c | ||
| rts5261.h | ||
| rts5264.c | ||
| rts5264.h | ||
| rtsx_pcr.c | ||
| rtsx_pcr.h | ||
| rtsx_usb.c | ||