Re: [PATCH] misc: rtsx: Avoid wakeup events from runtime resume during system sleep
From: wisdomwebman
Date: Sun Nov 29 2026 - 10:38:57 EST
On Friday, November 27th, 2026 at 10:49 AM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
> Note, this patch has not been tested at all, however WisdomWebMan
> offered to do testing.
Tested on my HP ProBook 450 G8 (RTS522A [10ec:522a], s2idle) with
7.3.4-arch1-2. I built rtsx_pci from the v7.3.4 sources with this
patch applied and swapped it in at runtime, so the stock and patched
drivers were tested in the same boot. The SD slot was empty for these
first runs.
Writing wakeup_count, then "echo mem > /sys/power/state", woken by an
RTC alarm after 15 s (basically Tabby's badsleep.sh):
stock: 5 of 5 aborted, "active wakeup source: mmc0"
patched: 5 of 5 slept and resumed, no aborts
Closing the lid with KDE Plasma, which writes wakeup_count:
stock: 6 lid closes, the first attempt was aborted by mmc0 5 times
patched: 9 lid closes, all slept on the first attempt, no aborts
Hibernation, using pm_test=devices since I have no swap set up, with
wakeup_count written first and the SD slot empty:
stock: 3 of 3 aborted by mmc0
patched: 3 of 3 got to "hibernation debug: Waiting for 5 second(s)"
and came back, no aborts
I also tried it with a card (64 GB SDXC), same boot, both drivers:
card inserted, 3 cycles as above:
stock: 3 of 3 aborted by mmc0
patched: 3 of 3 slept, no aborts
card removed during suspend:
stock: "card e624 removed" after resume, card gone
patched: same, slept on the first attempt
card inserted during suspend:
stock: first attempt aborted by mmc0, card found after resume
patched: slept on the first attempt, card found after resume
(mmcblk0 back, 8 MiB read OK)
So the rescan at the end of the transition picks up card changes made
during suspend. These were single runs, and I didn't see the "card not
recognized" problem Tabby had in January with either driver.
Tested-by: WisdomWebMan <wisdomwebman@xxxxxxxxx>
Thanks,
WisdomWebMan