FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-11-2009, 10:17 PM
Vitaly Kuznetsov
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

Package: linux-image-2.6.30-2-686
Version: 2.6.30-8
Severity: normal
Tags: patch

Unusual usb storage Samsung YP-CP3 (mp4 player) not working (disconnects immediately after connection), dmesg:

[ 1457.432058] usb 2-6: new high speed USB device using ehci_hcd and address 2
[ 1457.564921] usb 2-6: New USB device found, idVendor=04e8, idProduct=5122
[ 1457.564925] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1457.564928] usb 2-6: Product: YP-CP3
[ 1457.564931] usb 2-6: Manufacturer: SAMSUNG
[ 1457.564933] usb 2-6: SerialNumber: USBV1.00
[ 1457.565058] usb 2-6: configuration #1 chosen from 1 choice
[ 1457.648326] Initializing USB Mass Storage driver...
[ 1457.648725] scsi3 : SCSI emulation for USB Mass Storage devices
[ 1457.648857] usb-storage: device found at 2
[ 1457.648859] usb-storage: waiting for device to settle before scanning
[ 1457.648866] usbcore: registered new interface driver usb-storage
[ 1457.648870] USB Mass Storage support registered.
[ 1462.644223] usb-storage: device scan complete
[ 1462.644699] scsi 3:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
[ 1462.645313] scsi 3:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
[ 1462.649922] sd 3:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[ 1462.761061] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1463.009063] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1463.256053] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1463.505060] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1463.756066] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1464.008104] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1464.140585] sd 3:0:0:0: [sdb] Write Protect is off
[ 1464.140590] sd 3:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1464.140592] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 1464.141322] sd 3:0:0:1: [sdc] Attached SCSI removable disk
[ 1464.257057] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1464.512064] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1464.760074] usb 2-6: reset high speed USB device using ehci_hcd and address 2
[ 1464.816364] usb 2-6: USB disconnect, address 2
[ 1464.817340] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 1464.817352] sdb:<2>ldm_validate_partition_table(): Disk read failed.
[ 1464.818575] Dev sdb: unable to read RDB block 0
[ 1464.818618] unable to read partition table

I wrote a small patch to fix this problem:
--- drivers/usb/storage/unusual_devs.h.old 2009-09-26 01:58:45.000000000 +0400
+++ drivers/usb/storage/unusual_devs.h 2009-11-12 02:01:20.000000000 +0300
@@ -495,6 +495,13 @@
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_MAX_SECTORS_64),

+/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
+UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
+ "Samsung",
+ "YP-CP3",
+ US_SC_DEVICE, US_PR_DEVICE, NULL,
+ US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG),
+
/* Entry and supporting patch by Theodore Kilgore <kilgota@auburn.edu>.
* Device uses standards-violating 32-byte Bulk Command Block Wrappers and
* reports itself as "Proprietary SCSI Bulk." Cf. device entry 0x084d:0x0011.

Now this device works perfect, dmesg:
[ 6126.086942] usb-storage: device found at 19
[ 6126.086947] usb-storage: waiting for device to settle before scanning
[ 6131.084350] usb-storage: device scan complete
[ 6131.084553] scsi 20:0:0:0: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 6131.084680] scsi 20:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 6131.088943] sd 20:0:0:1: [sdc] Attached SCSI removable disk
[ 6131.097925] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
[ 6131.097940] sd 20:0:0:0: [sdb] 7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[ 6131.099241] sd 20:0:0:0: [sdb] Write Protect is off
[ 6131.099250] sd 20:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 6131.099256] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 6131.100855] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
[ 6131.101355] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 6131.101367] sdb:
[ 6131.102452] sd 20:0:0:0: [sdb] Attached SCSI removable disk





-- Package-specific info:
** Version:
Linux version 2.6.30-2-686 (Debian 2.6.30-8) (waldi@debian.org) (gcc version 4.3.4 (Debian 4.3.4-3) ) #1 SMP Sat Sep 26 01:16:22 UTC 2009

** Command line:
auto BOOT_IMAGE=Linux ro root=802 quiet

** Not tainted

** Kernel log:
[ 5499.236068] usb 2-5: reset high speed USB device using ehci_hcd and address 15
[ 5499.292428] usb 2-5: USB disconnect, address 15
[ 5499.293059] sd 16:0:0:0: [sdb] Write Protect is off
[ 5499.293067] sd 16:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 5499.293073] sd 16:0:0:0: [sdb] Assuming drive cache: write through
[ 5499.293392] sd 16:0:0:0: [sdb] Attached SCSI removable disk
[ 5509.764063] usb 2-5: new high speed USB device using ehci_hcd and address 16
[ 5509.896959] usb 2-5: New USB device found, idVendor=04e8, idProduct=5122
[ 5509.896968] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5509.896974] usb 2-5: Product: YP-CP3
[ 5509.896979] usb 2-5: Manufacturer: SAMSUNG
[ 5509.896984] usb 2-5: SerialNumber: USBV1.00
[ 5509.897162] usb 2-5: configuration #1 chosen from 1 choice
[ 5509.899353] scsi17 : SCSI emulation for USB Mass Storage devices
[ 5509.901046] usb-storage: device found at 16
[ 5509.901052] usb-storage: waiting for device to settle before scanning
[ 5514.901344] usb-storage: device scan complete
[ 5514.901881] scsi 17:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
[ 5514.902376] scsi 17:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
[ 5514.916563] sd 17:0:0:1: [sdc] Attached SCSI removable disk
[ 5514.918219] sd 17:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
[ 5514.918234] sd 17:0:0:0: [sdb] 7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[ 5515.028062] usb 2-5: reset high speed USB device using ehci_hcd and address 16
[ 5515.277066] usb 2-5: reset high speed USB device using ehci_hcd and address 16
[ 5515.533049] usb 2-5: reset high speed USB device using ehci_hcd and address 16
[ 5515.781045] usb 2-5: reset high speed USB device using ehci_hcd and address 16
[ 5516.029044] usb 2-5: reset high speed USB device using ehci_hcd and address 16
[ 5516.225413] usb 2-5: USB disconnect, address 16
[ 5516.226052] sd 17:0:0:0: [sdb] Write Protect is off
[ 5516.226060] sd 17:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 5516.226066] sd 17:0:0:0: [sdb] Assuming drive cache: write through
[ 5516.226827] sd 17:0:0:0: [sdb] Attached SCSI removable disk
[ 5606.989810] usbcore: deregistering interface driver usb-storage
[ 5733.072055] usb 2-6: new high speed USB device using ehci_hcd and address 17
[ 5733.204963] usb 2-6: New USB device found, idVendor=04e8, idProduct=5122
[ 5733.204971] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5733.204978] usb 2-6: Product: YP-CP3
[ 5733.204983] usb 2-6: Manufacturer: SAMSUNG
[ 5733.204988] usb 2-6: SerialNumber: USBV1.00
[ 5733.205174] usb 2-6: configuration #1 chosen from 1 choice
[ 5733.252091] Initializing USB Mass Storage driver...
[ 5733.295268] scsi18 : SCSI emulation for USB Mass Storage devices
[ 5733.295590] usbcore: registered new interface driver usb-storage
[ 5733.295597] USB Mass Storage support registered.
[ 5733.296551] usb-storage: device found at 17
[ 5733.296557] usb-storage: waiting for device to settle before scanning
[ 5738.296316] usb-storage: device scan complete
[ 5738.296473] scsi 18:0:0:0: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 5738.296564] scsi 18:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 5738.303346] sd 18:0:0:1: [sdc] Attached SCSI removable disk
[ 5738.303853] sd 18:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[ 5738.421034] usb 2-6: reset high speed USB device using ehci_hcd and address 17
[ 5738.669050] usb 2-6: reset high speed USB device using ehci_hcd and address 17
[ 5738.917054] usb 2-6: reset high speed USB device using ehci_hcd and address 17
[ 5739.164068] usb 2-6: reset high speed USB device using ehci_hcd and address 17
[ 5739.412040] usb 2-6: reset high speed USB device using ehci_hcd and address 17
[ 5739.605417] usb 2-6: USB disconnect, address 17
[ 5739.606010] sd 18:0:0:0: [sdb] Write Protect is off
[ 5739.606018] sd 18:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 5739.606023] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[ 5739.606356] sd 18:0:0:0: [sdb] Attached SCSI removable disk
[ 5750.064042] usb 2-6: new high speed USB device using ehci_hcd and address 18
[ 5750.196971] usb 2-6: New USB device found, idVendor=04e8, idProduct=5122
[ 5750.196980] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5750.196987] usb 2-6: Product: YP-CP3
[ 5750.196992] usb 2-6: Manufacturer: SAMSUNG
[ 5750.196997] usb 2-6: SerialNumber: USBV1.00
[ 5750.197182] usb 2-6: configuration #1 chosen from 1 choice
[ 5750.199509] scsi19 : SCSI emulation for USB Mass Storage devices
[ 5750.200873] usb-storage: device found at 18
[ 5750.200879] usb-storage: waiting for device to settle before scanning
[ 5752.304255] usb 2-6: USB disconnect, address 18
[ 6115.857035] usbcore: deregistering interface driver usb-storage
[ 6125.892052] usb 2-6: new high speed USB device using ehci_hcd and address 19
[ 6126.025983] usb 2-6: New USB device found, idVendor=04e8, idProduct=5122
[ 6126.025992] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6126.025998] usb 2-6: Product: YP-CP3
[ 6126.026003] usb 2-6: Manufacturer: SAMSUNG
[ 6126.026008] usb 2-6: SerialNumber: USBV1.00
[ 6126.026191] usb 2-6: configuration #1 chosen from 1 choice
[ 6126.065669] Initializing USB Mass Storage driver...
[ 6126.086246] scsi20 : SCSI emulation for USB Mass Storage devices
[ 6126.086441] usbcore: registered new interface driver usb-storage
[ 6126.086448] USB Mass Storage support registered.
[ 6126.086942] usb-storage: device found at 19
[ 6126.086947] usb-storage: waiting for device to settle before scanning
[ 6131.084350] usb-storage: device scan complete
[ 6131.084553] scsi 20:0:0:0: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 6131.084680] scsi 20:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
[ 6131.088943] sd 20:0:0:1: [sdc] Attached SCSI removable disk
[ 6131.097925] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
[ 6131.097940] sd 20:0:0:0: [sdb] 7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[ 6131.099241] sd 20:0:0:0: [sdb] Write Protect is off
[ 6131.099250] sd 20:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 6131.099256] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 6131.100855] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
[ 6131.101355] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 6131.101367] sdb:
[ 6131.102452] sd 20:0:0:0: [sdb] Attached SCSI removable disk
[ 6133.493625] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

** Loaded modules:
Module Size Used by
usb_storage 48548 1
nls_utf8 1488 1
nls_cp437 5320 1
vfat 8628 1
fat 41452 1 vfat
nls_base 6416 4 nls_utf8,nls_cp437,vfat,fat
i915 149164 1
drm 137920 2 i915
i2c_algo_bit 4860 1 i915
ppdev 6348 0
lp 8012 0
parport 31144 2 ppdev,lp
bridge 39968 0
stp 2112 1 bridge
bnep 10860 2
sco 8816 2
rfcomm 30340 8
l2cap 18088 16 bnep,rfcomm
acpi_cpufreq 7640 0
cpufreq_stats 3520 0
cpufreq_userspace 2768 0
cpufreq_powersave 1292 0
cpufreq_conservative 6256 0
binfmt_misc 7120 1
deflate 2348 0
zlib_deflate 17580 1 deflate
ctr 3688 0
twofish 6260 0
twofish_common 13316 1 twofish
camellia 17520 0
serpent 16820 0
blowfish 7880 0
cast5 16320 0
des_generic 16144 0
cbc 3012 0
aes_i586 8092 0
aes_generic 27436 1 aes_i586
xcbc 4076 0
rmd160 10048 0
sha256_generic 11216 0
sha1_generic 1984 0
hmac 3516 0
crypto_null 2820 0
af_key 25780 0
omnibook 48244 0
firewire_sbp2 12700 0
loop 13324 0
snd_hda_codec_realtek 178564 1
snd_hda_intel 22192 0
snd_hda_codec 63580 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6120 1 snd_hda_codec
arc4 1560 2
snd_pcm_oss 32228 0
ecb 2368 2
snd_mixer_oss 12368 1 snd_pcm_oss
uvcvideo 49308 0
snd_pcm 62396 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi 5688 0
videodev 31040 1 uvcvideo
btusb 10276 2
snd_rawmidi 18596 1 snd_seq_midi
joydev 8676 0
v4l1_compat 11416 2 uvcvideo,videodev
ath5k 104788 0
snd_seq_midi_event 6212 1 snd_seq_midi
bluetooth 47028 9 bnep,sco,rfcomm,l2cap,btusb
snd_seq 42436 2 snd_seq_midi,snd_seq_midi_event
pcmcia 24280 0
snd_timer 17436 2 snd_pcm,snd_seq
snd_seq_device 6136 3 snd_seq_midi,snd_rawmidi,snd_seq
mac80211 142984 1 ath5k
snd 49060 11 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec, snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_ra wmidi,snd_seq,snd_timer,snd_seq_device
yenta_socket 21168 1
soundcore 6184 1 snd
rsrc_nonstatic 9664 1 yenta_socket
i2c_i801 8580 0
pcmcia_core 31212 3 pcmcia,yenta_socket,rsrc_nonstatic
snd_page_alloc 8180 2 snd_hda_intel,snd_pcm
tifm_7xx1 4864 0
i2c_core 20844 4 i915,drm,i2c_algo_bit,i2c_i801
tifm_core 7104 1 tifm_7xx1
rfkill 9668 0
serio_raw 4560 0
cfg80211 55572 2 ath5k,mac80211
psmouse 37528 0
pcspkr 2104 0
input_polldev 3588 0
processor 34560 3 acpi_cpufreq
evdev 8028 16
button 5060 0
ac 2960 0
battery 6012 0
ext3 107172 2
jbd 41036 1 ext3
mbcache 6924 1 ext3
ide_cd_mod 24484 0
sd_mod 28740 5
crc_t10dif 1632 1 sd_mod
cdrom 30316 1 ide_cd_mod
ata_generic 4340 0
uhci_hcd 19136 0
ide_pci_generic 3632 0
ahci 30068 3
firewire_ohci 18952 0
piix 5680 0
libata 151044 2 ata_generic,ahci
ehci_hcd 29812 0
scsi_mod 131800 4 usb_storage,firewire_sbp2,sd_mod,libata
sdhci_pci 6540 0
intel_agp 23052 1
sdhci 14868 1 sdhci_pci
firewire_core 37736 2 firewire_sbp2,firewire_ohci
crc_itu_t 2148 1 firewire_core
ide_core 87940 3 ide_cd_mod,ide_pci_generic,piix
r8169 27692 0
mii 4664 1 r8169
mmc_core 46380 1 sdhci
led_class 3852 2 ath5k,sdhci
agpgart 30836 3 drm,intel_agp
usbcore 126052 6 usb_storage,uvcvideo,btusb,uhci_hcd,ehci_hcd
video 18044 1 i915
output 2604 1 video
thermal 12580 0
fan 4044 0
thermal_sys 13140 4 processor,video,thermal,fan

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 0c)
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Device [1179:ff01]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 30
Region 0: Memory at f4000000 (64-bit, non-prefetchable) [size=1M]
Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
Region 4: I/O ports at 1800 [size=8]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>

00:02.1 Display controller [0380]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a03] (rev 0c)
Subsystem: Toshiba America Info Systems Device [1179:ff01]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Region 0: Memory at f4100000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>

00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 03) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 4: I/O ports at 1820 [size=32]
Kernel driver in use: uhci_hcd

00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 03) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 21
Region 4: I/O ports at 1840 [size=32]
Kernel driver in use: uhci_hcd

00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 03) (prog-if 20 [EHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 18
Region 0: Memory at f4704800 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 22
Region 0: Memory at f4700000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel

00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: f0000000-f3ffffff
Prefetchable memory behind bridge: 00000000f6000000-00000000f7ffffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver

00:1c.1 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 [8086:2841] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: f4300000-f43fffff
Prefetchable memory behind bridge: 000000008c000000-000000008c0fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver

00:1c.2 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 [8086:2843] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
Memory behind bridge: f4200000-f42fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver

00:1c.3 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 [8086:2845] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport-driver

00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 4: I/O ports at 1860 [size=32]
Kernel driver in use: uhci_hcd

00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 03) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 19
Region 4: I/O ports at 1880 [size=32]
Kernel driver in use: uhci_hcd

00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 03) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 18
Region 4: I/O ports at 18a0 [size=32]
Kernel driver in use: uhci_hcd

00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 03) (prog-if 20 [EHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 0: Memory at f4704c00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev f3) (prog-if 01 [Subtractive decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Bus: primary=00, secondary=0c, subordinate=10, sec-latency=32
I/O behind bridge: 00004000-00004fff
Memory behind bridge: f4400000-f44fffff
Prefetchable memory behind bridge: 0000000088000000-000000008bffffff
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller [8086:2815] (rev 03)
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>

00:1f.1 IDE interface [0101]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller [8086:2850] (rev 03) (prog-if 8a [Master SecP PriP])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at 1810 [size=16]
Kernel driver in use: PIIX_IDE

00:1f.2 SATA controller [0106]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller [8086:2829] (rev 03) (prog-if 01 [AHCI 1.0])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 29
Region 0: I/O ports at 1c00 [size=8]
Region 1: I/O ports at 18d4 [size=4]
Region 2: I/O ports at 18d8 [size=8]
Region 3: I/O ports at 18d0 [size=4]
Region 4: I/O ports at 18e0 [size=32]
Region 5: Memory at f4704000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 82801H (ICH8 Family) SMBus Controller [8086:283e] (rev 03)
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 19
Region 0: Memory at 8c100000 (32-bit, non-prefetchable) [size=256]
Region 4: I/O ports at 1c20 [size=32]
Kernel driver in use: i801_smbus

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 01)
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR+ <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 28
Region 0: I/O ports at 3000 [size=256]
Region 2: Memory at f4300000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 8c000000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8169

05:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5001 Wireless Network Adapter [168c:001c] (rev 01)
Subsystem: Askey Computer Corp. Device [144f:7128]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at f4200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k

0c:04.0 CardBus bridge [0607]: Texas Instruments PCIxx12 Cardbus Controller [104c:8039]
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f4404000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=0c, secondary=0d, subordinate=10, sec-latency=176
Memory window 0: 88000000-8bfff000 (prefetchable)
Memory window 1: 90000000-93fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus

0c:04.1 FireWire (IEEE 1394) [0c00]: Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller [104c:803a] (prog-if 10 [OHCI])
Subsystem: Toshiba America Info Systems Device [1179:ff00]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (500ns min, 1000ns max), Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 17
Region 0: Memory at f4406000 (32-bit, non-prefetchable) [size=2K]
Region 1: Memory at f4400000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: firewire_ohci

0c:04.2 Mass storage controller [0180]: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD) [104c:803b]
Subsystem: Toshiba America Info Systems Device [1179:ff03]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 57 (1750ns min, 1000ns max), Cache Line Size: 64 bytes
Interrupt: pin C routed to IRQ 18
Region 0: Memory at f4405000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: tifm_7xx1

0c:04.3 SD Host controller [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller [104c:803c] (prog-if 01)
Subsystem: Toshiba America Info Systems Device [1179:ff03]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 57 (1750ns min, 1000ns max), Cache Line Size: 64 bytes
Interrupt: pin C routed to IRQ 18
Region 0: Memory at f4406800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci



-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-2.6.30-2-686 depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii initramfs-tools [linux-initra 0.93.4 tools for generating an initramfs
ii module-init-tools 3.11-1 tools for managing Linux kernel mo

Versions of packages linux-image-2.6.30-2-686 recommends:
ii libc6-i686 2.10.1-5 GNU C Library: Shared libraries [i

Versions of packages linux-image-2.6.30-2-686 suggests:
ii grub 0.97-59 GRand Unified Bootloader (dummy pa
ii lilo 1:22.8-8.1 LInux LOader - The Classic OS load
pn linux-doc-2.6.30 <none> (no description available)

-- debconf information excluded
 
Old 11-18-2009, 08:00 PM
Moritz Muehlenhoff
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

[CCing upstream for review/merge of the patch proposed by Vitaly.]

This was reported to Debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555835

Vitaly, please add a Signed-off-by: header as described in
Documentation/SubmittingPatches

Cheers,
Moritz

On Thu, Nov 12, 2009 at 02:17:09AM +0300, Vitaly Kuznetsov wrote:
> Package: linux-image-2.6.30-2-686
> Version: 2.6.30-8
> Severity: normal
> Tags: patch
>
> Unusual usb storage Samsung YP-CP3 (mp4 player) not working (disconnects immediately after connection), dmesg:
>
> [ 1457.432058] usb 2-6: new high speed USB device using ehci_hcd and address 2
> [ 1457.564921] usb 2-6: New USB device found, idVendor=04e8, idProduct=5122
> [ 1457.564925] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [ 1457.564928] usb 2-6: Product: YP-CP3
> [ 1457.564931] usb 2-6: Manufacturer: SAMSUNG
> [ 1457.564933] usb 2-6: SerialNumber: USBV1.00
> [ 1457.565058] usb 2-6: configuration #1 chosen from 1 choice
> [ 1457.648326] Initializing USB Mass Storage driver...
> [ 1457.648725] scsi3 : SCSI emulation for USB Mass Storage devices
> [ 1457.648857] usb-storage: device found at 2
> [ 1457.648859] usb-storage: waiting for device to settle before scanning
> [ 1457.648866] usbcore: registered new interface driver usb-storage
> [ 1457.648870] USB Mass Storage support registered.
> [ 1462.644223] usb-storage: device scan complete
> [ 1462.644699] scsi 3:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
> [ 1462.645313] scsi 3:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
> [ 1462.649922] sd 3:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
> [ 1462.761061] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1463.009063] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1463.256053] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1463.505060] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1463.756066] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1464.008104] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1464.140585] sd 3:0:0:0: [sdb] Write Protect is off
> [ 1464.140590] sd 3:0:0:0: [sdb] Mode Sense: 00 00 00 00
> [ 1464.140592] sd 3:0:0:0: [sdb] Assuming drive cache: write through
> [ 1464.141322] sd 3:0:0:1: [sdc] Attached SCSI removable disk
> [ 1464.257057] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1464.512064] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1464.760074] usb 2-6: reset high speed USB device using ehci_hcd and address 2
> [ 1464.816364] usb 2-6: USB disconnect, address 2
> [ 1464.817340] sd 3:0:0:0: [sdb] Assuming drive cache: write through
> [ 1464.817352] sdb:<2>ldm_validate_partition_table(): Disk read failed.
> [ 1464.818575] Dev sdb: unable to read RDB block 0
> [ 1464.818618] unable to read partition table
>
> I wrote a small patch to fix this problem:
> --- drivers/usb/storage/unusual_devs.h.old 2009-09-26 01:58:45.000000000 +0400
> +++ drivers/usb/storage/unusual_devs.h 2009-11-12 02:01:20.000000000 +0300
> @@ -495,6 +495,13 @@
> US_SC_DEVICE, US_PR_DEVICE, NULL,
> US_FL_MAX_SECTORS_64),
>
> +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
> +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
> + "Samsung",
> + "YP-CP3",
> + US_SC_DEVICE, US_PR_DEVICE, NULL,
> + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG),
> +
> /* Entry and supporting patch by Theodore Kilgore <kilgota@auburn.edu>.
> * Device uses standards-violating 32-byte Bulk Command Block Wrappers and
> * reports itself as "Proprietary SCSI Bulk." Cf. device entry 0x084d:0x0011.
>
> Now this device works perfect, dmesg:
> [ 6126.086942] usb-storage: device found at 19
> [ 6126.086947] usb-storage: waiting for device to settle before scanning
> [ 6131.084350] usb-storage: device scan complete
> [ 6131.084553] scsi 20:0:0:0: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
> [ 6131.084680] scsi 20:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
> [ 6131.088943] sd 20:0:0:1: [sdc] Attached SCSI removable disk
> [ 6131.097925] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
> [ 6131.097940] sd 20:0:0:0: [sdb] 7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
> [ 6131.099241] sd 20:0:0:0: [sdb] Write Protect is off
> [ 6131.099250] sd 20:0:0:0: [sdb] Mode Sense: 03 00 00 00
> [ 6131.099256] sd 20:0:0:0: [sdb] Assuming drive cache: write through
> [ 6131.100855] sd 20:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
> [ 6131.101355] sd 20:0:0:0: [sdb] Assuming drive cache: write through
> [ 6131.101367] sdb:
> [ 6131.102452] sd 20:0:0:0: [sdb] Attached SCSI removable disk




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-19-2009, 03:00 PM
Vitaly Kuznetsov
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

Hello,

Signed-off GIT patch attached.

Moritz Muehlenhoff <jmm@inutil.org> writes:

> [CCing upstream for review/merge of the patch proposed by Vitaly.]
>
> This was reported to Debian as
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555835
>
> Vitaly, please add a Signed-off-by: header as described in
> Documentation/SubmittingPatches
>
> Cheers,
> Moritz
>
> On Thu, Nov 12, 2009 at 02:17:09AM +0300, Vitaly Kuznetsov wrote:
>> Package: linux-image-2.6.30-2-686
>> Version: 2.6.30-8
>> Severity: normal
>> Tags: patch
>>
>> Unusual usb storage Samsung YP-CP3 (mp4 player) not working
> (disconnects immediately after connection), dmesg:
>>
>> [ 1457.432058] usb 2-6: new high speed USB device using ehci_hcd and
> address 2
>> [ 1457.564921] usb 2-6: New USB device found, idVendor=04e8,
> idProduct=5122
>> [ 1457.564925] usb 2-6: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
>> [ 1457.564928] usb 2-6: Product: YP-CP3
>> [ 1457.564931] usb 2-6: Manufacturer: SAMSUNG
>> [ 1457.564933] usb 2-6: SerialNumber: USBV1.00
>> [ 1457.565058] usb 2-6: configuration #1 chosen from 1 choice
>> [ 1457.648326] Initializing USB Mass Storage driver...
>> [ 1457.648725] scsi3 : SCSI emulation for USB Mass Storage devices
>> [ 1457.648857] usb-storage: device found at 2
>> [ 1457.648859] usb-storage: waiting for device to settle before
> scanning
>> [ 1457.648866] usbcore: registered new interface driver usb-storage
>> [ 1457.648870] USB Mass Storage support registered.
>> [ 1462.644223] usb-storage: device scan complete
>> [ 1462.644699] scsi 3:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0
> ANSI: 0
>> [ 1462.645313] scsi 3:0:0:1: Direct-Access SAMSUNG microSD Card 1.00
> PQ: 0 ANSI: 0 CCS
>> [ 1462.649922] sd 3:0:0:0: [sdb] 7649280 512-byte hardware sectors:
> (3.91 GB/3.64 GiB)
>> [ 1462.761061] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1463.009063] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1463.256053] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1463.505060] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1463.756066] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1464.008104] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1464.140585] sd 3:0:0:0: [sdb] Write Protect is off
>> [ 1464.140590] sd 3:0:0:0: [sdb] Mode Sense: 00 00 00 00
>> [ 1464.140592] sd 3:0:0:0: [sdb] Assuming drive cache: write through
>> [ 1464.141322] sd 3:0:0:1: [sdc] Attached SCSI removable disk
>> [ 1464.257057] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1464.512064] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1464.760074] usb 2-6: reset high speed USB device using ehci_hcd
> and address 2
>> [ 1464.816364] usb 2-6: USB disconnect, address 2
>> [ 1464.817340] sd 3:0:0:0: [sdb] Assuming drive cache: write through
>> [ 1464.817352] sdb:<2>ldm_validate_partition_table(): Disk read
> failed.
>> [ 1464.818575] Dev sdb: unable to read RDB block 0
>> [ 1464.818618] unable to read partition table
>>
>> I wrote a small patch to fix this problem:
>> --- drivers/usb/storage/unusual_devs.h.old 2009-09-26
> 01:58:45.000000000 +0400
>> +++ drivers/usb/storage/unusual_devs.h 2009-11-12 02:01:20.000000000
> +0300
>> @@ -495,6 +495,13 @@
>> US_SC_DEVICE, US_PR_DEVICE, NULL,
>> US_FL_MAX_SECTORS_64),
>>
>> +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
>> +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
>> + "Samsung",
>> + "YP-CP3",
>> + US_SC_DEVICE, US_PR_DEVICE, NULL,
>> + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY |
> US_FL_BULK_IGNORE_TAG),
>> +
>> /* Entry and supporting patch by Theodore Kilgore
> <kilgota@auburn.edu>.
>> * Device uses standards-violating 32-byte Bulk Command Block
> Wrappers and
>> * reports itself as "Proprietary SCSI Bulk." Cf. device entry
> 0x084d:0x0011.
>>
>> Now this device works perfect, dmesg:
>> [ 6126.086942] usb-storage: device found at 19
>> [ 6126.086947] usb-storage: waiting for device to settle before
> scanning
>> [ 6131.084350] usb-storage: device scan complete
>> [ 6131.084553] scsi 20:0:0:0: Direct-Access Samsung YP-CP3 0000 PQ:
> 0 ANSI: 2
>> [ 6131.084680] scsi 20:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ:
> 0 ANSI: 2
>> [ 6131.088943] sd 20:0:0:1: [sdc] Attached SCSI removable disk
>> [ 6131.097925] sd 20:0:0:0: [sdb] Adjusting the sector count from
> its reported value: 7649280
>> [ 6131.097940] sd 20:0:0:0: [sdb] 7649279 512-byte hardware sectors:
> (3.91 GB/3.64 GiB)
>> [ 6131.099241] sd 20:0:0:0: [sdb] Write Protect is off
>> [ 6131.099250] sd 20:0:0:0: [sdb] Mode Sense: 03 00 00 00
>> [ 6131.099256] sd 20:0:0:0: [sdb] Assuming drive cache: write
> through
>> [ 6131.100855] sd 20:0:0:0: [sdb] Adjusting the sector count from
> its reported value: 7649280
>> [ 6131.101355] sd 20:0:0:0: [sdb] Assuming drive cache: write
> through
>> [ 6131.101367] sdb:
>> [ 6131.102452] sd 20:0:0:0: [sdb] Attached SCSI removable disk

--
Vitaly Kuznetsov, ALT Linux.
 
Old 11-19-2009, 04:18 PM
Matthew Dharm
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

On Wed, Nov 18, 2009 at 10:00:24PM +0100, Moritz Muehlenhoff wrote:
> [CCing upstream for review/merge of the patch proposed by Vitaly.]
>
> This was reported to Debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555835
>
> Vitaly, please add a Signed-off-by: header as described in
> Documentation/SubmittingPatches
>
> Cheers,
> Moritz
>
> On Thu, Nov 12, 2009 at 02:17:09AM +0300, Vitaly Kuznetsov wrote:
> > I wrote a small patch to fix this problem:
> > --- drivers/usb/storage/unusual_devs.h.old 2009-09-26 01:58:45.000000000 +0400
> > +++ drivers/usb/storage/unusual_devs.h 2009-11-12 02:01:20.000000000 +0300
> > @@ -495,6 +495,13 @@
> > US_SC_DEVICE, US_PR_DEVICE, NULL,
> > US_FL_MAX_SECTORS_64),
> >
> > +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
> > +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
> > + "Samsung",
> > + "YP-CP3",
> > + US_SC_DEVICE, US_PR_DEVICE, NULL,
> > + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG),
> > +
> > /* Entry and supporting patch by Theodore Kilgore <kilgota@auburn.edu>.
> > * Device uses standards-violating 32-byte Bulk Command Block Wrappers and
> > * reports itself as "Proprietary SCSI Bulk." Cf. device entry 0x084d:0x0011.

This is almost certainly WAY too many flags. Please remove the flags to
establish which ones are actually required.

Matt

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

DP: And judging from the scores, Stef has the sma...
T: LET'S NOT GO THERE!
-- Dust Puppy and Tanya
User Friendly, 12/11/1997
 
Old 11-19-2009, 04:58 PM
Alan Stern
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

On Wed, 18 Nov 2009, Moritz Muehlenhoff wrote:

> [CCing upstream for review/merge of the patch proposed by Vitaly.]
>
> This was reported to Debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555835
>
> Vitaly, please add a Signed-off-by: header as described in
> Documentation/SubmittingPatches
>
> Cheers,
> Moritz

> > I wrote a small patch to fix this problem:
> > --- drivers/usb/storage/unusual_devs.h.old 2009-09-26 01:58:45.000000000 +0400
> > +++ drivers/usb/storage/unusual_devs.h 2009-11-12 02:01:20.000000000 +0300
> > @@ -495,6 +495,13 @@
> > US_SC_DEVICE, US_PR_DEVICE, NULL,
> > US_FL_MAX_SECTORS_64),
> >
> > +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
> > +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
> > + "Samsung",
> > + "YP-CP3",
> > + US_SC_DEVICE, US_PR_DEVICE, NULL,
> > + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG),

This is highly questionable. How can you be sure all those flags are
really needed? Have you collected a usbmon trace to find out what's
actually going wrong?

Alan Stern




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-19-2009, 09:39 PM
Vitaly Kuznetsov
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

Matthew Dharm <mdharm-usb@one-eyed-alien.net> writes:

> On Wed, Nov 18, 2009 at 10:00:24PM +0100, Moritz Muehlenhoff wrote:
>> [CCing upstream for review/merge of the patch proposed by Vitaly.]
>>
>> This was reported to Debian as
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555835
>>
>> Vitaly, please add a Signed-off-by: header as described in
>> Documentation/SubmittingPatches
>>
>> Cheers,
>> Moritz
>>
>> On Thu, Nov 12, 2009 at 02:17:09AM +0300, Vitaly Kuznetsov wrote:
>> > I wrote a small patch to fix this problem:
>> > --- drivers/usb/storage/unusual_devs.h.old 2009-09-26
> 01:58:45.000000000 +0400
>> > +++ drivers/usb/storage/unusual_devs.h 2009-11-12
> 02:01:20.000000000 +0300
>> > @@ -495,6 +495,13 @@
>> > US_SC_DEVICE, US_PR_DEVICE, NULL,
>> > US_FL_MAX_SECTORS_64),
>> >
>> > +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
>> > +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
>> > + "Samsung",
>> > + "YP-CP3",
>> > + US_SC_DEVICE, US_PR_DEVICE, NULL,
>> > + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY |
> US_FL_BULK_IGNORE_TAG),
>> > +
>> > /* Entry and supporting patch by Theodore Kilgore
> <kilgota@auburn.edu>.
>> > * Device uses standards-violating 32-byte Bulk Command Block
> Wrappers and
>> > * reports itself as "Proprietary SCSI Bulk." Cf. device entry
> 0x084d:0x0011.
>
> This is almost certainly WAY too many flags. Please remove the flags
> to
> establish which ones are actually required.
>
> Matt

Sorry Matt, I was too lazy

Without US_FL_BULK_IGNORE_TAG:

Nov 20 01:17:56 vitbook kernel: [60336.044697] scsi 4:0:0:1: Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
Nov 20 01:17:56 vitbook kernel: [60336.048770] sd 4:0:0:1: [sdc] Attached SCSI removable disk
Nov 20 01:17:56 vitbook kernel: [60336.049266] sd 4:0:0:0: [sdb] Adjusting the sector count from its reported value: 7649280
Nov 20 01:17:56 vitbook kernel: [60336.049280] sd 4:0:0:0: [sdb] 7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
Nov 20 01:17:56 vitbook kernel: [60336.160052] usb 2-2: reset high speed USB device using ehci_hcd and address 3
Nov 20 01:17:56 vitbook kernel: [60336.408080] usb 2-2: reset high speed USB device using ehci_hcd and address 3
Nov 20 01:17:56 vitbook kernel: [60336.670754] usb 2-2: reset high speed USB device using ehci_hcd and address 3
Nov 20 01:17:57 vitbook kernel: [60336.860493] usb 2-2: USB disconnect, address 3
(devide does not work)

Without US_FL_FIX_CAPACITY works well,

Without US_FL_FIX_INQUIRY works well,

Without US_FL_MAX_SECTORS_64

Nov 20 01:31:43 vitbook kernel: [61162.880923] scsi 8:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
Nov 20 01:31:43 vitbook kernel: [61162.881796] scsi 8:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
Nov 20 01:31:43 vitbook kernel: [61162.886339] sd 8:0:0:1: [sdc] Attached SCSI removable disk
Nov 20 01:31:43 vitbook kernel: [61162.886757] sd 8:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
Nov 20 01:31:43 vitbook kernel: [61162.887247] sd 8:0:0:0: [sdb] Write Protect is off
Nov 20 01:31:43 vitbook kernel: [61162.889637] sdb:
Nov 20 01:31:43 vitbook kernel: [61162.893457] sd 8:0:0:0: [sdb] Attached SCSI removable disk
Nov 20 01:31:43 vitbook kernel: [61163.054984] sd 8:0:0:0: [sdb] Unhandled error code
Nov 20 01:31:43 vitbook kernel: [61163.054993] sd 8:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Nov 20 01:31:43 vitbook kernel: [61163.175881] sd 8:0:0:0: [sdb] Unhandled error code
(device does not work)

So, the minimum is US_FL_MAX_SECTORS_64 | US_FL_BULK_IGNORE_TAG

New patch attached.

--
Vitaly Kuznetsov, ALT Linux.
 
Old 11-20-2009, 01:39 PM
Vitaly Kuznetsov
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

Alan Stern <stern@rowland.harvard.edu> writes:

>> > +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
>> > +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
>> > + "Samsung",
>> > + "YP-CP3",
>> > + US_SC_DEVICE, US_PR_DEVICE, NULL,
>> > + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY |
> US_FL_BULK_IGNORE_TAG),
>
> This is highly questionable. How can you be sure all those flags are
> really needed? Have you collected a usbmon trace to find out what's
> actually going wrong?
>
> Alan Stern

Hello Alan,

as I answered Matthew Dharm yesterday this was not minimal set needed to
get device working properly.

Without US_FL_BULK_IGNORE_TAG:

Nov 20 01:17:56 vitbook kernel: [60336.044697] scsi 4:0:0:1:
Direct-Access Samsung YP-CP3 0000 PQ: 0 ANSI: 2
Nov 20 01:17:56 vitbook kernel: [60336.048770] sd 4:0:0:1: [sdc]
Attached SCSI removable disk
Nov 20 01:17:56 vitbook kernel: [60336.049266] sd 4:0:0:0: [sdb]
Adjusting the sector count from its reported value: 7649280
Nov 20 01:17:56 vitbook kernel: [60336.049280] sd 4:0:0:0: [sdb]
7649279 512-byte hardware sectors: (3.91 GB/3.64 GiB)
Nov 20 01:17:56 vitbook kernel: [60336.160052] usb 2-2: reset high
speed USB device using ehci_hcd and address 3
Nov 20 01:17:56 vitbook kernel: [60336.408080] usb 2-2: reset high
speed USB device using ehci_hcd and address 3
Nov 20 01:17:56 vitbook kernel: [60336.670754] usb 2-2: reset high
speed USB device using ehci_hcd and address 3
Nov 20 01:17:57 vitbook kernel: [60336.860493] usb 2-2: USB
disconnect, address 3
(devide does not work)

Without US_FL_FIX_CAPACITY works well,

Without US_FL_FIX_INQUIRY works well,

Without US_FL_MAX_SECTORS_64

Nov 20 01:31:43 vitbook kernel: [61162.880923] scsi 8:0:0:0:
Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
Nov 20 01:31:43 vitbook kernel: [61162.881796] scsi 8:0:0:1:
Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
Nov 20 01:31:43 vitbook kernel: [61162.886339] sd 8:0:0:1: [sdc]
Attached SCSI removable disk
Nov 20 01:31:43 vitbook kernel: [61162.886757] sd 8:0:0:0: [sdb]
7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
Nov 20 01:31:43 vitbook kernel: [61162.887247] sd 8:0:0:0: [sdb] Write
Protect is off
Nov 20 01:31:43 vitbook kernel: [61162.889637] sdb:
Nov 20 01:31:43 vitbook kernel: [61162.893457] sd 8:0:0:0: [sdb]
Attached SCSI removable disk
Nov 20 01:31:43 vitbook kernel: [61163.054984] sd 8:0:0:0: [sdb]
Unhandled error code
Nov 20 01:31:43 vitbook kernel: [61163.054993] sd 8:0:0:0: [sdb]
Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Nov 20 01:31:43 vitbook kernel: [61163.175881] sd 8:0:0:0: [sdb]
Unhandled error code
(device does not work)

So, the minimum is US_FL_MAX_SECTORS_64 | US_FL_BULK_IGNORE_TAG

New patch attached.

--
Vitaly Kuznetsov, ALT Linux.
 
Old 11-20-2009, 02:01 PM
Alan Stern
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

On Fri, 20 Nov 2009, Vitaly Kuznetsov wrote:

> Alan Stern <stern@rowland.harvard.edu> writes:
>
> >> > +/* Reported by Vitaly Kuznetsov <vitty@altlinux.ru> */
> >> > +UNUSUAL_DEV( 0x04e8, 0x5122, 0x0000, 0x9999,
> >> > + "Samsung",
> >> > + "YP-CP3",
> >> > + US_SC_DEVICE, US_PR_DEVICE, NULL,
> >> > + US_FL_MAX_SECTORS_64 | US_FL_FIX_INQUIRY | US_FL_FIX_CAPACITY |
> > US_FL_BULK_IGNORE_TAG),
> >
> > This is highly questionable. How can you be sure all those flags are
> > really needed? Have you collected a usbmon trace to find out what's
> > actually going wrong?
> >
> > Alan Stern
>
> Hello Alan,
>
> as I answered Matthew Dharm yesterday this was not minimal set needed to
> get device working properly.

> So, the minimum is US_FL_MAX_SECTORS_64 | US_FL_BULK_IGNORE_TAG

I would still like to see a usbmon trace showing what happens with
US_FL_BULK_IGNORE_TAG and _without_ US_FL_MAX_SECTORS_64.

Alan Stern




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-20-2009, 06:27 PM
Vitaly Kuznetsov
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

Alan Stern <stern@rowland.harvard.edu> writes:

>> So, the minimum is US_FL_MAX_SECTORS_64 | US_FL_BULK_IGNORE_TAG
>
> I would still like to see a usbmon trace showing what happens with
> US_FL_BULK_IGNORE_TAG and _without_ US_FL_MAX_SECTORS_64.
>

usbmon attached, dmesg looks like:

[90833.235667] usb-storage: device found at 10
[90833.235672] usb-storage: waiting for device to settle before scanning
[90838.232280] usb-storage: device scan complete
[90838.232741] scsi 10:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
[90838.233107] scsi 10:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
[90838.251803] sd 10:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
[90838.252389] sd 10:0:0:0: [sdb] Write Protect is off
[90838.252394] sd 10:0:0:0: [sdb] Mode Sense: 03 00 00 00
[90838.252397] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[90838.254505] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[90838.254513] sdb:
[90838.255649] sd 10:0:0:0: [sdb] Attached SCSI removable disk
[90838.256630] sd 10:0:0:1: [sdc] Attached SCSI removable disk
[90838.389146] sd 10:0:0:0: [sdb] Unhandled error code
[90838.389150] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[90838.389155] end_request: I/O error, dev sdb, sector 8
[90838.389159] __ratelimit: 110 callbacks suppressed
[90838.389162] Buffer I/O error on device sdb, logical block 1
[90838.389168] Buffer I/O error on device sdb, logical block 2
[90838.389171] Buffer I/O error on device sdb, logical block 3
[90838.389174] Buffer I/O error on device sdb, logical block 4
[90838.389177] Buffer I/O error on device sdb, logical block 5
[90838.389180] Buffer I/O error on device sdb, logical block 6
[90838.389183] Buffer I/O error on device sdb, logical block 7
[90838.389186] Buffer I/O error on device sdb, logical block 8
[90838.389189] Buffer I/O error on device sdb, logical block 9
[90838.389192] Buffer I/O error on device sdb, logical block 10
[90838.502971] sd 10:0:0:0: [sdb] Unhandled error code
[90838.502975] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[90838.502980] end_request: I/O error, dev sdb, sector 0
[90838.674599] sd 10:0:0:0: [sdb] Unhandled error code
[90838.674602] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[90838.674607] end_request: I/O error, dev sdb, sector 0
[90840.751890] sd 10:0:0:0: [sdb] Unhandled error code
[90840.751898] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[90840.751907] end_request: I/O error, dev sdb, sector 0

P.S. Starting from tomorrow I'll have no access to device for some time
(about a month), so I'll be unable to send additional info ;(

--
Vitaly Kuznetsov, ALT Linux.
 
Old 11-20-2009, 08:19 PM
Alan Stern
 
Default Bug#555835: linux-image-2.6.30-2-686: Unusual usb storage Samsung YP-CP3 not working

On Fri, 20 Nov 2009, Vitaly Kuznetsov wrote:

> Alan Stern <stern@rowland.harvard.edu> writes:
>
> >> So, the minimum is US_FL_MAX_SECTORS_64 | US_FL_BULK_IGNORE_TAG
> >
> > I would still like to see a usbmon trace showing what happens with
> > US_FL_BULK_IGNORE_TAG and _without_ US_FL_MAX_SECTORS_64.
> >
>
> usbmon attached, dmesg looks like:
>
> [90833.235667] usb-storage: device found at 10
> [90833.235672] usb-storage: waiting for device to settle before scanning
> [90838.232280] usb-storage: device scan complete
> [90838.232741] scsi 10:0:0:0: Direct-Access SAMSUNG YP-CP3 1.00 PQ: 0 ANSI: 0
> [90838.233107] scsi 10:0:0:1: Direct-Access SAMSUNG microSD Card 1.00 PQ: 0 ANSI: 0 CCS
> [90838.251803] sd 10:0:0:0: [sdb] 7649280 512-byte hardware sectors: (3.91 GB/3.64 GiB)
> [90838.252389] sd 10:0:0:0: [sdb] Write Protect is off
> [90838.252394] sd 10:0:0:0: [sdb] Mode Sense: 03 00 00 00
> [90838.252397] sd 10:0:0:0: [sdb] Assuming drive cache: write through
> [90838.254505] sd 10:0:0:0: [sdb] Assuming drive cache: write through
> [90838.254513] sdb:
> [90838.255649] sd 10:0:0:0: [sdb] Attached SCSI removable disk
> [90838.256630] sd 10:0:0:1: [sdc] Attached SCSI removable disk
> [90838.389146] sd 10:0:0:0: [sdb] Unhandled error code
> [90838.389150] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [90838.389155] end_request: I/O error, dev sdb, sector 8
> [90838.389159] __ratelimit: 110 callbacks suppressed
> [90838.389162] Buffer I/O error on device sdb, logical block 1
> [90838.389168] Buffer I/O error on device sdb, logical block 2
> [90838.389171] Buffer I/O error on device sdb, logical block 3
> [90838.389174] Buffer I/O error on device sdb, logical block 4
> [90838.389177] Buffer I/O error on device sdb, logical block 5
> [90838.389180] Buffer I/O error on device sdb, logical block 6
> [90838.389183] Buffer I/O error on device sdb, logical block 7
> [90838.389186] Buffer I/O error on device sdb, logical block 8
> [90838.389189] Buffer I/O error on device sdb, logical block 9
> [90838.389192] Buffer I/O error on device sdb, logical block 10
> [90838.502971] sd 10:0:0:0: [sdb] Unhandled error code
> [90838.502975] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [90838.502980] end_request: I/O error, dev sdb, sector 0
> [90838.674599] sd 10:0:0:0: [sdb] Unhandled error code
> [90838.674602] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [90838.674607] end_request: I/O error, dev sdb, sector 0
> [90840.751890] sd 10:0:0:0: [sdb] Unhandled error code
> [90840.751898] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [90840.751907] end_request: I/O error, dev sdb, sector 0

Okay, thanks. It looks like the IGNORE_RESIDUE flag might also work.
But if MAX_SECTORS_64 is good enough, it's probably a better choice.

Have you tested this device with a microSD card inserted?

Alan Stern




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org