[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#576861: Realtek Card Reader doesn't emit add or remove events for SD media



Package: linux-image-2.6.26-2-amd64
Version: 2.6.26-21lenny4
Severity: low

while trying to use a usb
 0bda:0111 Realtek Semiconductor Corp. Card Reader
to access a sd-card i found that there is no output on from
 udevadm monitor
when plugging such a card in our out.

instead i have to use
 fdisk -l
as workaround to trigger an add event.
after this the available partitions are reflected by needed device nodes. however removing the media doesn't remove the node, also issuing
 fdisk -l
after removing medias doesn't remove the nodes, but produces empty output.

altering the partitions on the media and typing
 fdisk -l
again, triggers several events like change and add(see 1st attachment).

hint that dmesg shows the following while booting, with no media attached:
[  20.776270] usb-storage: device scan complete
[ 20.785462] scsi 2:0:0:0: Direct-Access Generic- Compact Flash 1.00 PQ: 0 ANSI: 0 CCS [ 20.794372] scsi 2:0:0:1: Direct-Access Generic- SM/xD-Picture 1.00 PQ: 0 ANSI: 0 CCS [ 20.801364] scsi 2:0:0:2: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS [ 20.808465] scsi 2:0:0:3: Direct-Access Generic- MS/MS-Pro 1.00 PQ: 0 ANSI: 0 CCS
[  20.838612] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[  20.842173] sd 2:0:0:1: [sdd] Attached SCSI removable disk
[  20.846141] sd 2:0:0:2: [sde] Attached SCSI removable disk
[  20.850145] sd 2:0:0:3: [sdf] Attached SCSI removable disk

in fact sdc-sdf exist after booting.

see attachment 2 for output of
 lsusb -v

attachement 3 contains lsmod

an usb-port included in the device works well with flash drives.
also the sd-card doesn't make problems with other readers (on other computers)
the realtek readers LED lights up when plugging in a sd-card.

I'm using debian lenny x86_64 (5.0.4)

UDEV  [1270662812.542976] remove   /block/sde/sde1 (block)
UEVENT[1270662812.555433] change   /block/sde (block)
UEVENT[1270662812.555465] add      /block/sde/sde1 (block)
UEVENT[1270662812.555472] add      /block/sde/sde2 (block)
UDEV  [1270662812.564464] change   /devices/pci0000:00/0000:00:0b.1/usb2/2-2/2-2:1.0/host2/target2:0:0/2:0:0:2 (scsi)
UDEV  [1270662812.634868] change   /block/sde (block)
UDEV  [1270662812.696835] add      /block/sde/sde2 (block)
UDEV  [1270662812.723488] add      /block/sde/sde1 (block)

# lsusb -s 2:2 -v
Bus 002 Device 002: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x0111 Card Reader
  bcdDevice           11.22
  iManufacturer           1 Generic
  iProduct                2 USB2.0-CRW
  iSerial                 3 20021111153705700
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 CARD READER
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5 Bulk-In, Bulk-Out, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

# lsmod
Module                  Size  Used by
nfsd                  248616  17 
auth_rpcgss            47520  1 nfsd
exportfs                8704  1 nfsd
nfs                   252080  0 
nfs_acl                 7552  2 nfsd,nfs
lockd                  68944  2 nfsd,nfs
sunrpc                197992  13 nfsd,auth_rpcgss,nfs,nfs_acl,lockd
twofish                11136  5 
twofish_common         18560  1 twofish
ipv6                  288456  23 
ipt_LOG                10116  1 
xt_limit                7172  1 
xt_tcpudp               7680  16 
nf_conntrack_ipv4      19352  13 
xt_state                6656  13 
nf_conntrack           71440  2 nf_conntrack_ipv4,xt_state
ipt_REJECT              7552  3 
iptable_filter          7424  1 
ip_tables              21520  1 iptable_filter
x_tables               25224  6 ipt_LOG,xt_limit,xt_tcpudp,xt_state,ipt_REJECT,ip_tables
sha256_generic         13696  0 
aes_x86_64             12416  4 
aes_generic            32552  1 aes_x86_64
cbc                     7936  7 
dm_crypt               17032  1 
crypto_blkcipher       21636  9 cbc,dm_crypt
loop                   19468  0 
ide_cd_mod             36360  0 
cdrom                  37928  1 ide_cd_mod
usb_storage            95936  0 
pcspkr                  7040  0 
snd_pcm                81800  0 
snd_timer              25744  1 snd_pcm
snd                    63688  2 snd_pcm,snd_timer
soundcore              12064  1 snd
snd_page_alloc         13072  1 snd_pcm
k8temp                  9216  0 
forcedeth              54032  0 
amd74xx                13448  0 [permanent]
ehci_hcd               36108  0 
ohci_hcd               25092  0 
i2c_nforce2            10752  0 
i2c_core               27936  1 i2c_nforce2
button                 11680  0 
evdev                  14208  0 
ext3                  125072  7 
jbd                    51240  1 ext3
mbcache                12804  1 ext3
dm_mirror              20608  0 
dm_log                 13956  1 dm_mirror
dm_snapshot            19400  0 
dm_mod                 58864  32 dm_crypt,dm_mirror,dm_log,dm_snapshot
sd_mod                 29376  8 
thermal                22688  0 
processor              42304  1 thermal
fan                     9352  0 
thermal_sys            17728  3 thermal,processor,fan
ata_generic            10116  0 
sata_nv                28680  6 
libata                165600  2 ata_generic,sata_nv
scsi_mod              161016  3 usb_storage,sd_mod,libata
dock                   14112  1 libata
ide_pci_generic         9220  0 [permanent]
ide_core              128284  3 ide_cd_mod,amd74xx,ide_pci_generic
raid1                  24192  2 
md_mod                 80292  3 raid1


Reply to: