rtsx_usb_sdmmc not detecting card insertion anymore

From: Pascal Terjan
Date: Sat Jun 24 2023 - 16:39:54 EST


Hi,
I have an ASUS PN50 machine with a 0bda:0129 card reader. The card is
not seen unless I reload the rtsx_usb_sdmmc module.

I found a Debian bug report for the same regression
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993068 but nothing
to see there.

Trying to understand things I found
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4dad599b8b5d1ffc5ef12a2edb13d15d537202ba
which seemed related, so I first tried to revert it and that worked.

Assuming the description is correct and the rtsx USB driver runtime
resumes the rtsx_usb_sdmmc device when it detects that a new card has
been inserted, I assume this means it doesn't detect that a card was
inserted and the problem would be in rtsx_usb rather than
rtsx_usb_sdmmc.

I am not sure how to debug this further, usbmon doesn't see anything
when I insert the card.