Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New kernel driver for RTS5209 cardreader in 3.8 doesn't work
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
Vrenn
Guru
Guru


Joined: 15 Dec 2004
Posts: 313

PostPosted: Thu May 16, 2013 3:05 pm    Post subject: New kernel driver for RTS5209 cardreader in 3.8 doesn't work Reply with quote

In my Alienware M17x there is a build in card reader for SD-Cards.
Currently I have no Idea why it doesn't work as I have used the new supplied driver in kernel 3.8. see lspci -v
Code:
13:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
        Subsystem: Dell Device 0490
        Flags: bus master, fast devsel, latency 0, IRQ 41
        Memory at d3101000 (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
        Kernel driver in use: rtsx_pci

13:00.1 SD Host controller: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
        Subsystem: Dell Device 0490
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d3100000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Express Endpoint, MSI 01
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
        Kernel driver in use: sdhci-pci

dmesg seems to accept it too
Code:
[    0.854548] sdhci: Secure Digital Host Controller Interface driver
[    0.854632] sdhci: Copyright(c) Pierre Ossman
[    0.854718] sdhci-pci 0000:13:00.1: SDHCI controller found [10ec:5209] (rev 1)
[    0.854831] sdhci-pci 0000:13:00.1: Will use DMA mode even though HW doesn't fully claim to support it.
[    0.854952] sdhci-pci 0000:13:00.1: Will use DMA mode even though HW doesn't fully claim to support it.
[    0.879122] mmc0: SDHCI controller on PCI [0000:13:00.1] using DMA
Code:
[    0.737128] rtsx_pci 0000:13:00.0: irq 41 for MSI/MSI-X
[    0.737141] rtsx_pci 0000:13:00.0: rtsx_pci_acquire_irq: pcr->msi_en = 1, pci->irq = 41
But theres no useable blockdevice, dolphin is missing the device when a sd-card is used.
The kerneldriver lists my RTS5209 and an usb-adapter for sd-cards is functional.
Do you have any idea where to look next?
_________________
With nice greetings
Vrenn
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu May 16, 2013 4:09 pm    Post subject: Re: New kernel driver for RTS5209 cardreader in 3.8 doesn't Reply with quote

Vrenn wrote:
Do you have any idea where to look next?

there ?
_________________
Back to top
View user's profile Send private message
Vrenn
Guru
Guru


Joined: 15 Dec 2004
Posts: 313

PostPosted: Thu May 16, 2013 4:54 pm    Post subject: Reply with quote

Never used rts_bpp, but I hope it is the same and gets fixed :-(

edith: mine was CONFIG_RTS_PSTOR
But thank you, now I know I might be not alone.
_________________
With nice greetings
Vrenn
Back to top
View user's profile Send private message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 253
Location: Veneto

PostPosted: Thu May 23, 2013 5:51 pm    Post subject: Reply with quote

With the patch that is in the bug report it compiles :D
Back to top
View user's profile Send private message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 253
Location: Veneto

PostPosted: Thu May 23, 2013 7:29 pm    Post subject: Reply with quote

The module compile fine but i cannot read any sd card :(

Code:
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PCI=y
CONFIG_MMC_SDHCI_ACPI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_MFD_RTSX_PCI=y
Back to top
View user's profile Send private message
beizhuchun
n00b
n00b


Joined: 11 Apr 2013
Posts: 29

PostPosted: Sat May 25, 2013 9:44 am    Post subject: Reply with quote

This also occured with gentoo-source-3.9.3

dmesg:
mmc0: error -110 whilst initialising SD card
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Sat May 25, 2013 2:59 pm    Post subject: Reply with quote

Googling around I found this.

http://www.skuldougery.com/?p=93

We need to make sure our kernel has:

Code:

CONFIG_MFD_RTSX_PCI=m
CONFIG_MMC_REALTEK_PCI=m
CONFIG_MEMSTICK_REALTEK_PCI=m
MMC_REALTEK_PCI=m
MEMSTICK_REALTEK_PCI=m


And now my card reader is working as it should.
Back to top
View user's profile Send private message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 253
Location: Veneto

PostPosted: Mon May 27, 2013 9:29 pm    Post subject: Reply with quote

it works :D
Back to top
View user's profile Send private message
lkraav
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 129
Location: Estonia

PostPosted: Fri Aug 09, 2013 9:03 am    Post subject: Reply with quote

+1, yes it does
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 339
Location: Around 2.4GHz

PostPosted: Fri Oct 25, 2013 8:20 am    Post subject: Reply with quote

It works for my HP laptop too. Thanks!
_________________
Linux Proud User: HP Pavilion 15-an002ns laptop (KDE Neon), Xiaomi Mi Air 12 (KDE Neon), Raspberry Pi 3 (Nextcloudpi), Docooler MS9 Pro (LibreElec)
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