Realtek RTS5227 driver for Ubuntu 14.04

Download the modified Realtek driver from here (made by Adam).

Unload the current driver:

sudo modprobe -r rtsx_pci_sdmmc
sudo modprobe -r rtsx_pci_ms
sudo modprobe -r rtsx_pci
sudo depmod -a

Blacklist the current driver:

sudo nano /etc/modprobe.d/blacklist-rtsx.conf

Add the following line to the end of the file and save it:

blacklist rtsx_pci

Build and install the new driver:

tar -xzvf rts5227_linux.tar.gz
cd rts5227
sudo make install
sudo depmod -a
sudo modprobe rts5227
sudo update-initramfs -u