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),
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!
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
11-18-2009, 08:00 PM
Moritz Muehlenhoff
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
11-19-2009, 03:00 PM
Vitaly Kuznetsov
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.
11-19-2009, 04:18 PM
Matthew Dharm
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
11-19-2009, 04:58 PM
Alan Stern
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
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
11-19-2009, 09:39 PM
Vitaly Kuznetsov
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.
11-20-2009, 01:39 PM
Vitaly Kuznetsov
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.
11-20-2009, 02:01 PM
Alan Stern
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
11-20-2009, 06:27 PM
Vitaly Kuznetsov
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.
>