returm to kernel driver and change in drivers/mmc/host/rtsx_usb_sdmmc.c As advised in https://lkml.org/lkml/2015/10/21/318 comment caps:
static void rtsx_usb_init_host(struct rtsx_usb_sdmmc *host) { struct mmc_host *mmc = host->mmc; mmc->f_min = 250000; mmc->f_max = 208000000; mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195; mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | // MMC_CAP_MMC_HIGHSPEED | MMC_CAP_BUS_WIDTH_TEST | // MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 | MMC_CAP_UHS_SDR50 | MMC_CAP_NEEDS_POLL; mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE; mmc->max_current_330 = 400; mmc->max_current_180 = 800; mmc->ops = &rtsx_usb_sdmmc_ops; mmc->max_segs = 256; mmc->max_seg_size = 65536; mmc->max_blk_size = 512; mmc->max_blk_count = 65535; mmc->max_req_size = 524288; host->power_mode = MMC_POWER_OFF; } reload new module and block rts5139 # lsmod | grep rts rtsx_usb_sdmmc 28672 0 rtsx_usb_ms 20480 0 memstick 16384 1 rtsx_usb_ms rtsx_usb 20480 2 rtsx_usb_sdmmc,rtsx_usb_ms It does not work anyway, as before the changes: [10270.437734] mmc0: error -110 whilst initialising SD card [10273.125682] mmc0: error -110 whilst initialising SD card [10276.837684] mmc0: error -110 whilst initialising SD card [10279.493425] mmc0: error -110 whilst initialising SD card [10304.740718] mmc0: error -110 whilst initialising SD card [10307.428683] mmc0: error -110 whilst initialising SD card If you have any ideas I can check them on my kernel Linux oleg-Lenovo-G580 4.10.0-30-generic #34~16.04.1-Ubuntu SMP Wed Aug 2 02:13:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579748 Title: rtsx_usb module for Realtek Semiconductor Corp. RTS5129 Card Reader Controller: mmc errors and read data corruption To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs