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

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.

>From b4fc9bccf1983bec3a7ce571694869c5a0c0ef18 Mon Sep 17 00:00:00 2001
From: Vitaly Kuznetsov <vitty@altlinux.ru>
Date: Thu, 19 Nov 2009 15:49:05 +0000
Subject: [PATCH] USB: Unusual Device support for Samsung YP-CP3 MP4 Player

User was getting the following errors in dmesg:
 usb 2-6: reset high speed USB device using ehci_hcd and address 2
 usb 2-6: reset high speed USB device using ehci_hcd and address 2
 usb 2-6: reset high speed USB device using ehci_hcd and address 2
 usb 2-6: USB disconnect, address 2
 sd 3:0:0:0: [sdb] Assuming drive cache: write through
 sdb:<2>ldm_validate_partition_table(): Disk read failed.
 Dev sdb: unable to read RDB block 0
  unable to read partition table

Signed-off-by: Vitaly Kuznetsov <vitty@altlinux.ru>
---
 drivers/usb/storage/unusual_devs.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index d4f034e..5d9ec8a 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -481,6 +481,13 @@ UNUSUAL_DEV(  0x04e8, 0x507c, 0x0220, 0x0220,
 		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.
-- 
1.6.3.3


Reply to: