SD-Card reader Realtek RTS5139 not supported by kernel module rtsx_usb

Hi guys,

since LEAP 42.2 and even now 42.3 the rtsx_usb kernel module is not supporting the Realtek RTS5139 USB Card reader anymore >:( (My MSI GT780DXR Notebook has it).
If you get messages like “error -22 whilst initialising SD card” in dmesg, then reverting back to the old kernel module for rts5139 gives you your card reader back.

How to do:
Prerequisites: git, Kernel headers and gcc/make packages are installed

Open Terminal and switch to root user.

Get the rts5139 drivers from git:
*cd /tmp**git clone https://github.com/asymingt/rts5139.git
cd rts5139
make
make install
*
You now have installed the module in the current session. You need to blacklist the new rtsx_usb modules in /etc/modprobe.d/blacklist.conf (create the file if it does not exist)

Insert the following into blacklist.conf:
*blacklist rtsx_usb_sdmmc
blacklist rtsx_usb_ms
blacklist rtsx_usb
*
Disable autoloading and update your initial ram filesystem:

depmod-a
mkinitrd

reboot your system and you will have access to your SD-Cards again.lol!

Hope this helps.
Manfred Lapp

Hi mlfedv. Thanks for your contribution. I’m sure that it will be helpful to others who may come searching. As this is not a request for help, this will be moved to our ‘Unreviewed How To’ forum.