linux/drivers/misc/cardreader
Ricky Wu 966c5cd72b misc: rtsx: usb: Ensure mmc child device is active when card is present
When a card is present in the reader, the driver currently defers
autosuspend by returning -EAGAIN during the suspend callback to
trigger USB remote wakeup signaling. However, this does not guarantee
that the mmc child device has been resumed, which may cause issues if
it remains suspended while the card is accessible.
This patch ensures that all child devices, including the mmc host
controller, are explicitly resumed before returning -EAGAIN. This
fixes a corner case introduced by earlier remote wakeup handling,
improving reliability of runtime PM when a card is inserted.

Fixes: 883a87ddf2 ("misc: rtsx_usb: Use USB remote wakeup signaling for card insertion detection")
Cc: stable@vger.kernel.org
Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250711140143.2105224-1-ricky_wu@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-16 14:26:39 +02:00
..
alcor_pci.c misc: cardreader: Return -EBUSY if regions are busy 2025-04-25 15:54:08 +02:00
Kconfig misc: rtsx: list supported models in Kconfig help 2024-10-18 13:40:17 +02:00
Makefile misc: rtsx: add to support new card reader rts5264 new definition and function 2023-12-15 17:27:04 +01:00
rtl8411.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5209.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5227.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5228.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5228.h
rts5229.c misc: rtsx: Quiesce rts5249 on system suspend 2022-01-26 18:53:28 +01:00
rts5249.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5260.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5260.h
rts5261.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-09-25 10:48:19 +02:00
rts5261.h
rts5264.c misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01:00
rts5264.h misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01:00
rtsx_pcr.c misc: rtsx: Add support for RTS5264 Version B and optimize init flow 2025-06-24 16:45:55 +01:00
rtsx_pcr.h misc: rtsx: Remove deadcode 2025-04-25 15:53:59 +02:00
rtsx_usb.c misc: rtsx: usb: Ensure mmc child device is active when card is present 2025-07-16 14:26:39 +02:00