linux/drivers/misc/cardreader
Ricky Wu 030b156ec7 misc: rtsx: usb: Ensure mmc child device is active when card is present
commit 966c5cd72b upstream.

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>
History 2025-08-28 16:24:26 +02:00
..
alcor_pci.c misc: alcor_pci: Fix an error handling path 2022-04-08 14:23:44 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rtl8411.c misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG 2021-06-09 19:10:22 +02:00
rts5209.c misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG 2021-06-09 19:10:22 +02:00
rts5227.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rts5228.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rts5228.h misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rts5229.c misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG 2021-06-09 19:10:22 +02:00
rts5249.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rts5260.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rts5260.h misc: rtsx: Add support for RTS5260 2017-11-29 10:17:26 +00:00
rts5261.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rts5261.h misc: rtsx: Check mmc support for RTS5261 2020-11-16 11:59:30 +01:00
rtsx_pcr.c misc: rtsx: Fix some platforms can not boot and move the l1ss judgment to probe 2023-10-06 13:18:21 +02:00
rtsx_pcr.h misc: rtsx: rts5249 support runtime PM 2020-12-09 19:42:18 +01:00
rtsx_usb.c misc: rtsx: usb: Ensure mmc child device is active when card is present 2025-08-28 16:24:26 +02:00