Associated thread at https://lore.kernel.org/lkml/CA+CX+bjcvbtW2Wto1XF1dKcAbpGGisdyHAGHX12v3TchhLbKtg@mail.gmail.com/ Creating this ticket to attach larger logs, as dmesg has already rotated when boot completes I extracted kernel logs from journalctl instead
Created attachment 304528 [details] Boot logs
(In reply to Pascal Terjan from comment #1) > Created attachment 304528 [details] > Boot logs Was the log collected after card got inserted?
Hello, Most likely, the power saving of usb devices is disabled (usbcore.autosuspend=-1) Check like this: $ cat /sys/module/usbcore/parameters/autosuspend -1 (returns any negative number - means disabled) In order for the detection of connected cards to work correctly for this chip, it is necessary to create a rule for enabling power saving: sudo cat << EOF > /etc/udev/rules.d/10-RTS5129-autosuspend.rules ACTION=="add" \ , ATTR{idProduct}=="0129" \ , ATTR{idVendor}=="0bda" \ , ATTR{power/autosuspend_delay_ms}="2" \ , ATTR{power/control}="on" EOF reboot
This doesn't seem to be the problem: [pterjan@pn50 ~]$ cat /sys/module/usbcore/parameters/autosuspend 2 [pterjan@pn50 ~]$ cat /sys/bus/usb/devices/4-4/power/autosuspend 2 [pterjan@pn50 ~]$ cat /sys/bus/usb/devices/4-4/power/control auto
Please add kernel parameter `usbcore.dyndbg`, reboot, reproduce the issue and attach dmesg here. We may still need to poll the cards for special cases.
Created attachment 305235 [details] Boot logs Sorry I had missed the question in comment #2 I see no logs entries for that device when inserting the card, adding new logs when I also reload the module and it gets detected. Inserted the card around ~100s after boot, then after nothing happened reloaded the module around ~140s after boot, and it got detected
I afterwards ejected the card and then I finally got a single log entry for that usb device: [ 660.951499] usb 4-4: kworker/0:0 timed out on ep2in len=0/8 [ 660.952989] mmc0: card 59b4 removed
Please also add 'log_buf_len=16M' to kernel parameter so the message won't get truncated. Please also attach `lsusb -t` and `sudo lspci -vv` here, thanks!