Today i am behind my wifes laptop and want to use the sd card to put some photo's on. The sd card is not detected and i tried others. I think the driver is not installed so i tried this method but it is still not working.
I've done more investigating of this regression and I've narrowed it down to rtsx_pci_init_ocp() in drivers/misc/cardreader/rtsx_pcr.c. It is called by rtsx_pci_init_hw() (from the same source file. If a comment out that call, build and install the resultant kernel, the rts5229 reader and the card inserted in are detected and work fine. The machine is an Intel NUC Tall Arches Canyon NUC6CAYH Celeron J3455. I can't take this diagnosis any further because, as far as I can see, the only change the patch identified as the culprit (see comment 10 above) makes to rtsx_pci_init_ocp(), shouldn't be executed for the rts5229. So far, I've built and installed 5.7.12 and 5.4.54 the latter of which I am currently running on the machine. I think I tried an unpatched 5.7 series kernel earlier in my investagations and the card reader did not work. To be sure, I'll build an older 5.4 kernel that more closely matches the one currently included in Ubuntu 20.04, and check whether that works when rtsx_pci_init_ocp() is not called.
Thanks @Aravisian i came accross the same page this morning.
The weird thing is it does detect the micro sd cards (32GB), but not the SDXC card (128GB). The 128GB card did work fine on her laptop when she used Windows 10. I also checked if it worked on my laptop and it does.
OMG, this is exactly the type of thing that makes my head pop with stuff like this. I am so grateful that I don't have to deal with all this garbage. I am glad you got it working Michel. But yeah, all that GIT code, and blacklisting, its like trying to learn programming for me, I just can't handle it.
Thats why i love linux so much. When you google for the issues you get some pages with info. I found the github page first and followed their instructions to move the blacklisted file (Copy blacklist-rts5229.conf to /etc/modprobe.d/ (Optional)). When i updated initramfs i got alot of error messages. So i removed the file with the rm command.
So i googled how i could blacklist those files and someone posted those 2 lines to put it in the /etc/modprobe.d/blacklist.conf. So i tried that one and updated initramfs again without errors. Rebooted, checked again and the sd card is working .
Some commands from the github page did not work. Like sudo su (sudo -i) and sudo mkinitcpio -p linux (sudo update-initramfs -u)