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 Kernel
Packages, which is subscribed to linux in 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
Status in linux package in Ubuntu:
Incomplete
Bug description:
RTS5129 Card Reader has issues with rtsx_usb module on kernels >=3.16
(since kmod-staging rts5129 module replaced with rtsx).
Copying files from FAT32 SDHC memory card produces error messages in syslog:
May 9 05:39:15 dev-laptop kernel: [ 134.762713] mmcblk0: error -110 sending
stop command, original cmd response 0x900, card status 0x900
May 9 05:39:15 dev-laptop kernel: [ 135.427035] mmcblk0: error -110 sending
stop command, original cmd response 0x900, card status 0x900
May 9 05:39:16 dev-laptop kernel: [ 136.030041] mmcblk0: error -110 sending
stop command, original cmd response 0x900, card status 0x900
Also these errors indicate that copied files are corrupted - md5sum
shows different checksums for copied file after each "insert card/copy
file/check md5sum/eject card" cycle (actually you can skip "copy file"
step and run "check md5sum" step directly with file on mounted memory
card filesystem).
Running sudo badblocks -n /dev/mmcblk0 produces same error messages
and prints a lot of random block numbers.
Hardware:
- dell inspiron 7720 laptop (a few different RAM modules and HDD drives used
for testing);
- Realtek Semiconductor Corp. RTS5129 Card Reader (ID 0bda:0129);
- Transcend 32Gb SDHC Memory card Class 10 UHS-I.
Bug exists in latest xenial 4.4.0-22.39 kernel and xenial mainline
4.4.9-040409_4.4.9-040409.201605041832.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-22-generic 4.4.0-22.39
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: dev 1692 F.... pulseaudio
CurrentDesktop: Unity
Date: Mon May 9 08:38:14 2016
HibernationDevice: RESUME=UUID=cf073128-d53a-4214-96bc-3acdf0516900
InstallationDate: Installed on 2016-05-08 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64
(20160420.1)
MachineType: Dell Inc. Inspiron 7720
ProcFB:
0 inteldrmfb
1 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic
root=UUID=2e4e4944-669a-4f1b-a080-87971c644984 ro quiet splash
RelatedPackageVersions:
linux-restricted-modules-4.4.0-22-generic N/A
linux-backports-modules-4.4.0-22-generic N/A
linux-firmware 1.157
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/23/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A16
dmi.board.name: 04M3YM
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias:
dmi:bvnDellInc.:bvrA16:bd08/23/2013:svnDellInc.:pnInspiron7720:pvr:rvnDellInc.:rn04M3YM:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Inspiron 7720
dmi.sys.vendor: Dell Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp