Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RTS5227 PCI Express card reader
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
motig
n00b
n00b


Joined: 11 Oct 2016
Posts: 20

PostPosted: Wed Aug 28, 2019 3:39 pm    Post subject: RTS5227 PCI Express card reader Reply with quote

Hello,
This card reader used to work for me maybe a year (many kernel versions) ago. Now I need it again and I am not sure where the problem is. The kernel config I have enabled that I think I need are:

Code:

CONFIG_MISC_RTSX=m
CONFIG_MMC=m
CONFIG_MMC_BLOCK=m
CONFIG_MMC_BLOCK_MINORS=8


I can modprobe them but nothing happens, whether the card is inserted or not. No /dev/mmcblk* node and absolutely nothing in dmesg.

Code:

$ lsmod
Module                  Size  Used by
rtsx_pci               53248  0
mmc_block              40960  0
mmc_core              122880  1 mmc_block


Code:

02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
        Subsystem: Hewlett-Packard Company RTS5227 PCI Express Card Reader
        Flags: bus master, fast devsel, latency 0, IRQ 50
        Memory at c1100000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
        Capabilities: [150] Latency Tolerance Reporting
        Capabilities: [158] L1 PM Substates
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci


Am I missing something?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23540
Location: here

PostPosted: Wed Aug 28, 2019 3:54 pm    Post subject: Reply with quote

You enabled also CONFIG_MMC_REALTEK_PCI?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 579

PostPosted: Wed Aug 28, 2019 3:58 pm    Post subject: Reply with quote

Does your machine boot with this driver?
I get stuck on a very slowly blinking cursor at 'waiting for uevents'.
It did used to work for me also, I must have removed it at some point and when I've tried to add it back, either built in or as a module, I have the boot issue.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23540
Location: here

PostPosted: Wed Aug 28, 2019 4:05 pm    Post subject: Reply with quote

mrbassie wrote:
Does your machine boot with this driver?

Yes, in my .config
Code:
CONFIG_MMC=m
CONFIG_MMC_BLOCK=m
CONFIG_MMC_BLOCK_MINORS=8
CONFIG_MMC_REALTEK_PCI=m
CONFIG_MMC_CQHCI=m
CONFIG_MISC_RTSX=m
CONFIG_MISC_RTSX_PCI=m

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
motig
n00b
n00b


Joined: 11 Oct 2016
Posts: 20

PostPosted: Wed Aug 28, 2019 4:18 pm    Post subject: Reply with quote

Thanks for the tip, I was missing the CONFIG_MMC_REALTEK_PCI=m because the other module was in the "Misc devices" section. I rebooted and tried it again - it looked like it was still not working but the device node got created maybe 15 seconds later. Then I tried to switch to a different card, it took again maybe 10-15 seconds for the system to notice the card had been removed. The other card never got detected and the original is not working any more either.

Code:

[  262.635746] mmc0: new high speed SDHC card at address b368
[  262.641377] mmcblk0: mmc0:b368 SDC   3.84 GiB
[  262.641961]  mmcblk0: p1
[  460.996273] mmcblk0: error -110 requesting status
[  461.174697] mmc0: cannot verify signal voltage switch
[  461.266598] mmc0: tried to HW reset card, got error -2
[  461.266603] mmcblk0: recovery failed!
[  461.266622] print_req_error: I/O error, dev mmcblk0, sector 0
[  461.266631] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[  471.827813] ldm_validate_partition_table(): Disk read failed.
[  471.827817] mmc0: card b368 removed
[  471.827841]  mmcblk0: unable to read partition table
[  471.831318] udevd[14252]: inotify_add_watch(7, /dev/mmcblk0, 10) failed: No such file or directory


I have to rmmod and modprobe the modules for it to work again (once, till I remove the card).

This is on kernel 4.19.66 gentoo-sources.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum