Ubuntu

Realtek card reader (PCI 10ec:5208) not working

Reported by Keng-Yu Lin on 2011-01-06
68
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Keng-Yu Lin
Declined for Raring by Ara Pulido
Natty
Medium
Keng-Yu Lin
linux-ti-omap4 (Ubuntu)
Undecided
Unassigned
Declined for Raring by Ara Pulido
Natty
Undecided
Unassigned
udisks (Ubuntu)
High
Unassigned
Declined for Raring by Ara Pulido
Natty
High
Unassigned

Bug Description

A laptop has an SD card reader with PCI interface. This needs the driver (rts_pstor.tar.bz2) from Realtek. Its source is free for download from Realtek website, but the driver is not included in Ubuntu nor upstream kernel.

Current driver version is v1.08 released on 2010/12/15. It is verified to work on Maverick, but failed to get compiled on 2.6.37 Natty kernel.

* Update on 2010/Jan/21

The driver author from Realtek fixed the compiling error against 2.6.37 kernel. Also he sent the driver in the staging tree mailing list for review.

Keng-Yu Lin (lexical) on 2011-01-06
description: updated
Keng-Yu Lin (lexical) wrote :
Changed in linux (Ubuntu):
status: New → Confirmed
Keng-Yu Lin (lexical) on 2011-01-06
Changed in linux (Ubuntu):
importance: Undecided → Medium
Chris Van Hoof (vanhoof) on 2011-01-06
tags: added: hwe-blocker
Keng-Yu Lin (lexical) on 2011-01-07
Changed in linux (Ubuntu):
assignee: nobody → Keng-Yü Lin (lexical)
Keng-Yu Lin (lexical) on 2011-01-13
Changed in linux (Ubuntu):
status: Confirmed → In Progress
Keng-Yu Lin (lexical) wrote :

The author from Realtek already sent the driver in the staging tree mailing list (http://driverdev.linuxdriverproject.org/pipermail/devel/2011-January/011414.html).

Keng-Yu Lin (lexical) on 2011-01-21
description: updated
Keng-Yu Lin (lexical) wrote :

already in the staging-next branch and there are 4 patches fixing this driver from different individuals since the first commits.

Keng-Yu Lin (lexical) on 2011-02-22
Changed in linux (Ubuntu):
status: In Progress → Triaged
Keng-Yu Lin (lexical) wrote :

The driver did not hit the 2.6.38 merge window but is in gregkh's tree (staging) already. I will work on pulling/testing the driver from there for natty.

Changed in linux (Ubuntu):
status: Triaged → In Progress
Keng-Yu Lin (lexical) wrote :

The driver is in Linus tree now. I've done the pull on the current natty git head and tested on Dell Latitude 2110, seems to work. I will be organizing the git log and sending the git pull for Natty kernel.

Tim Gardner (timg-tpi) wrote :

Cherry picked the attached list of commits from Linus' upstream:

Changed in linux (Ubuntu Natty):
status: In Progress → Fix Committed
Keng-Yu Lin (lexical) wrote :

The SD card is not automounted in Natty. But manually `mount` the partition works, `udisks --mount` also works. This could be a bug from the udisks udev rule file.

Changed in udisks (Ubuntu Natty):
status: New → Confirmed
importance: Undecided → High
Keng-Yu Lin (lexical) wrote :
Keng-Yu Lin (lexical) wrote :
Keng-Yu Lin (lexical) wrote :

skip the log above it's not executed with root permission.

Keng-Yu Lin (lexical) wrote :

'udisks --monitor-detail'

Keng-Yu Lin (lexical) wrote :

'udevadm monitor --udev --property'

Keng-Yu Lin (lexical) wrote :
Ayan George (ayan) wrote :

Could you post the output of:

$ gvfs-mount --monitor

please.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.38-8.42

---------------
linux (2.6.38-8.42) natty; urgency=low

  [ David Henningsson ]

  * SAUCE: (drop after 2.6.38) ALSA: HDA: Fix dock mic for Lenovo
    X220-tablet
    - LP: #751033

  [ Gustavo F. Padovan ]

  * SAUCE: Revert "Bluetooth: Add new PID for Atheros 3011"
    - LP: #720949

  [ Herton Ronaldo Krzesinski ]

  * SAUCE: (drop after 2.6.39) v4l: make sure drivers supply a zeroed
    struct v4l2_subdev
    - LP: #745213

  [ John Johansen ]

  * AppArmor: Fix masking of capabilities in complain mode
    - LP: #748656

  [ Leann Ogasawara ]

  * [Config] Disable CONFIG_RTS_PSTOR for armel, powerpc

  [ Manoj Iyer ]

  * SAUCE: (drop after 2.6.38) add support for Lenovo tablet ID (0xE6)
    - LP: #746652

  [ Steve Langasek ]

  * [Config] Make linux-libc-dev coinstallable under multiarch
    - LP: #750585

  [ Tim Gardner ]

  * [Config] CONFIG_RTS_PSTOR=m
    - LP: #698006

  [ Upstream Kernel Changes ]

  * Revert "tcp: disallow bind() to reuse addr/port"
    - LP: #731878
  * ALSA: HDA: Add dock mic quirk for Lenovo Thinkpad X220
    - LP: #746259
  * ALSA: HDA: New AD1984A model for Dell Precision R5500
    - LP: #741516
  * Input: sparse-keymap - report scancodes with key events
  * Input: sparse-keymap - report KEY_UNKNOWN for unknown scan codes
  * KVM: SVM: Load %gs earlier if CONFIG_X86_32_LAZY_GS=n
    - LP: #729085
  * watchdog: sp5100_tco.c: Check if firmware has set correct value in
    tcobase.
    - LP: #740011
  * staging: add rts_pstor for Realtek PCIE cardreader
    - LP: #698006
  * staging: fix rts_pstor build errors
    - LP: #698006
  * Staging: rts_pstor: fixed some brace code styling issues
    - LP: #698006
  * staging: rts_pstor: potential NULL dereference
    - LP: #698006
  * Staging: rts_pstor: fix read past end of buffer
    - LP: #698006
  * staging: rts_pstor: delete a function
    - LP: #698006
  * staging: rts_pstor: fix sparse warning
    - LP: #698006
  * staging: rts_pstor: fix a bug that a greenhouse sd card can't be
    recognized
    - LP: #698006
  * staging: rts_pstor: optimize kmalloc to kzalloc
    - LP: #698006
  * staging: rts_pstor: MSXC card power class
    - LP: #698006
  * staging: rts_pstor: modify initial card clock
    - LP: #698006
  * staging: rts_pstor: set lun_mode in a different place
    - LP: #698006
  * x86, hibernate: Initialize mmu_cr4_features during boot
    - LP: #752870
 -- Leann Ogasawara <email address hidden> Fri, 08 Apr 2011 09:24:59 -0700

Changed in linux (Ubuntu Natty):
status: Fix Committed → Fix Released
Keng-Yu Lin (lexical) wrote :

Ayan for your reference.

Daniel Manrique (roadmr) wrote :

On the Dell Latitude 2110 (from bug 754926), the card reader now recognizes the card being inserted BUT does not get auto-mounted. I can open a Nautilus window and click on the drive's icon and *then* it mounts, but there's no auto-mounting behavior. I applied all updates up to today (including the 2.6.38-8.42 kernel).

Chris Van Hoof (vanhoof) wrote :

Daniel:

Per Comment #7 that is expected behaviour, this is a PCI based card reader, which does not appear to have the appropriate hooks available to do the automount. We've opened a new task here to see if this is something that can be corrected.

Chris Van Hoof (vanhoof) wrote :

Since this bug was to track the inclusion of the driver, which was successful; we're going to track the remaining automount/udisks issue in a new bug:

https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/759963

Changed in udisks (Ubuntu Natty):
status: Confirmed → Invalid
Tim Gardner (timg-tpi) on 2011-04-25
Changed in linux-ti-omap4 (Ubuntu Natty):
status: New → Fix Committed
delca85 (delca85) wrote :

I I solved it by installing rts_pstor, downloaded from Realtek site.

Howard (bluesea-520) wrote :

I'm having the same problem, but installing rts_pstor doesn't help to solve my problem

Checked on the windows driver provide by manufacturer, look like Realtek 5139 usb card reader is not supported

lsusb
Bus 002 Device 003: ID 046d:c52e Logitech, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 001 Device 004: ID 058f:a014 Alcor Micro Corp.
Bus 001 Device 003: ID 13d3:3304 IMC Networks
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any idea how to fix this ?

Ayan George (ayan) on 2011-08-31
tags: added: blocks-hwcert-enablement
Launchpad Janitor (janitor) wrote :
Download full text (38.0 KiB)

This bug was fixed in the package linux-ti-omap4 - 2.6.38-1209.15

---------------
linux-ti-omap4 (2.6.38-1209.15) natty-proposed; urgency=low

  * Release tracking bug
    - LP: #837761

  [ Paolo Pisati ]

  * [Config] Turn on CONFIG_USER_NS and DEVPTS_MULTIPLE_INSTANCES.
    - LP: #787749

  [ Tim Gardner ]

  * [Config] Add enic/fnic to nic-modules udeb, CVE-2011-1020
    - LP: #801610

  [ Upstream Kernel Changes ]

  * mpt2sas: prevent heap overflows and unchecked reads
    - LP: #780546
  * agp: fix arbitrary kernel memory writes
    - LP: #775809
  * can: add missing socket check in can/raw release
    - LP: #780546
  * agp: fix OOM and buffer overflow
    - LP: #775809
  * bonding: Incorrect TX queue offset, CVE-2011-1581
    - LP: #792312
    - CVE-2011-1581
  * fs/partitions/efi.c: corrupted GUID partition tables can cause kernel
    oops
    - LP: #795418
    - CVE-2011-1577
  * can: Add missing socket check in can/bcm release.
    - LP: #796502
    - CVE-2011-1598
  * USB: ehci: remove structure packing from ehci_def
    - LP: #791552
  * taskstats: don't allow duplicate entries in listener mode,
    CVE-2011-2484
    - LP: #806390
    - CVE-2011-2484
  * ext4: init timer earlier to avoid a kernel panic in __save_error_info,
    CVE-2011-2493
    - LP: #806929
    - CVE-2011-2493
  * dccp: handle invalid feature options length, CVE-2011-1770
    - LP: #806375
    - CVE-2011-1770
  * pagemap: close races with suid execve, CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020
  * report errors in /proc/*/*map* sanely, CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020
  * close race in /proc/*/environ, CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020
  * auxv: require the target to be tracable (or yourself), CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020
  * deal with races in /proc/*/{syscall, stack, personality}, CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020
  * rose: Add length checks to CALL_REQUEST parsing, CVE-2011-1493
    - LP: #816550
    - CVE-2011-1493
  * GFS2: make sure fallocate bytes is a multiple of blksize, CVE-2011-2689
    - LP: #819572
    - CVE-2011-2689
  * Bluetooth: l2cap and rfcomm: fix 1 byte infoleak to userspace.
    - LP: #819569
    - CVE-2011-2492
  * Add mount option to check uid of device being mounted = expect uid,
    CVE-2011-1833
    - LP: #732628
    - CVE-2011-1833
  * ipv6: make fragment identifications less predictable, CVE-2011-2699
    - LP: #827685
    - CVE-2011-2699
  * perf: Fix software event overflow, CVE-2011-2918
    - LP: #834121
    - CVE-2011-2918
  * proc: fix oops on invalid /proc/<pid>/maps access, CVE-2011-1020
    - LP: #813026
    - CVE-2011-1020

linux-ti-omap4 (2.6.38-1209.13) natty; urgency=low

  [ Tim Gardner ]

  * Release Tracking Bug
    - LP: #772381

  [ Brad Figg ]

  * Ubuntu-2.6.38-9.43

  [ Bryan Wu ]

  * merge Ubuntu-2.6.38-9.43
  * cherry-pick 6 patches from u2 of 'for-ubuntu' branch
  * [Config] Sync up configs for 2.6.38.4

  [ Herton Ronaldo Krzesinski ]

  * SAUCE: Revert "x86, hibernate: Initialize mmu_cr4_features during boot"
    - LP: #764758

  [ Leann Ogasawara ]

  * [Config] updateconfigs for 2.6.38.4

  [ Paolo Pisati ]

  * [Conf...

Changed in linux-ti-omap4 (Ubuntu Natty):
status: Fix Committed → Fix Released
Changed in linux-ti-omap4 (Ubuntu):
status: Fix Committed → Fix Released
Po-Hsu Lin (cypressyew) wrote :

CID: 201009-6529 Dell Latitude 2120

This card reader, Realtek [10ec:5208] works fine on 12.04.2 (kernel 3.5.0-23)

However, it does not work on 3.8 kernels.

Steps:
1. Install 12.04.3 (kernel 3.8.0-29), boot to desktop.
2. Verify by inserting a SDHC card (which can be detected in 12.04.2)

Expected result:
The card reader works, SDHC card correctly detected.

Actual result:
Nothing happened.

Verified with 12.04.3 + kernel 3.8.0-30 and 13.04 (with LiveUSB).

Po-Hsu Lin (cypressyew) on 2013-09-27
tags: added: 201009-6529 taipei-lab
Po-Hsu Lin (cypressyew) wrote :

For this card reader issue on 12.04.3, please refer to bug 1233602

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers