Bug 11423
Summary: | usb-storage device based on Rockchip 2706 is being disconnected and thus not mountable. | ||
---|---|---|---|
Product: | Drivers | Reporter: | Adrian Pilchowiec (adi1981) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | stern |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25, 2.6.26, 2.6.27-rc2 and probably others | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
dmesg output
Patch for Rockchip MP3 dmesg output lsusb -v -d 071b:3203 |
Description
Adrian Pilchowiec
2008-08-25 08:38:50 UTC
Reply-To: akpm@linux-foundation.org (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Mon, 25 Aug 2008 08:38:52 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=11423 > > Summary: usb-storage device based on Rockchip 2706 is being > disconnected and thus not mountable. > Product: Drivers > Version: 2.5 > KernelVersion: 2.6.25, 2.6.26, 2.6.27-rc2 and probably others > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: USB > AssignedTo: greg@kroah.com > ReportedBy: adi1981@epf.pl > > > Distribution: Fedora > Hardware Environment: Asus F3Sc -> > http://www.smolts.org/show?uuid=pub_7bfb182b-dee4-4154-bf48-57bf02e363c6 > > Problem Description: > When trying to plug PMP Eon Slide-R TC, device is being immediately > disconnected, so there's no chance to mount and browse the device, even if it > should be working with kernels > 2.4.4 (as declared by producer). I've tried > already to add udev rules for this PMP, reformatting the device and few > different cables to exclude cabling problem, but all without luck. I don't > have > also usb hub. On Windows it's just working. Here's what i get from dmesg > output: > > usb 5-1: new full speed USB device using uhci_hcd and address 3 > usb 5-1: configuration #1 chosen from 1 choice > scsi7 : SCSI emulation for USB Mass Storage devices > usb-storage: device found at 3 > usb-storage: waiting for device to settle before scanning > usb 5-1: New USB device found, idVendor=071b, idProduct=3203 > usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 5-1: Product: Eon MP3 > usb 5-1: Manufacturer: EonSlide > usb 5-1: SerialNumber: USBV1.00 > usb-storage: device scan complete > scsi 7:0:0:0: Direct-Access Eon Slide-R 1.00 PQ: 0 ANSI: 0 > sd 7:0:0:0: [sdb] Attached SCSI removable disk > sd 7:0:0:0: Attached scsi generic sg2 type 0 > sd 7:0:0:0: [sdb] 16011264 512-byte hardware sectors (8198 MB) > usb 5-1: reset full speed USB device using uhci_hcd and address 3 > usb 5-1: reset full speed USB device using uhci_hcd and address 3 > sd 7:0:0:0: [sdb] Write Protect is off > sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00 > sd 7:0:0:0: [sdb] Assuming drive cache: write through > usb 5-1: USB disconnect, address 3 > sd 7:0:0:0: [sdb] READ CAPACITY failed > sd 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT > driverbyte=DRIVER_OK,SUGGEST_OK > sd 7:0:0:0: [sdb] Sense not available. > sd 7:0:0:0: [sdb] Write Protect is off > sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00 > sd 7:0:0:0: [sdb] Assuming drive cache: write through > > lsusb before disconnecting gives: > > Bus 002 Device 124: ID 071b:3203 Domain Technologies, Inc > > And finally lspci: > > 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory > Controller Hub (rev 03) > 00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express > Root > Port (rev 03) > 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI > Controller #4 (rev 03) > 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI > Controller #5 (rev 03) > 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI > Controller #2 (rev 03) > 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio > Controller (rev 03) > 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 > (rev 03) > 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 > (rev 03) > 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 > (rev 03) > 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 > (rev 03) > 00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 > (rev 03) > 00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 > (rev 03) > 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI > Controller #1 (rev 03) > 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI > Controller #2 (rev 03) > 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI > Controller #3 (rev 03) > 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI > Controller #1 (rev 03) > 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) > 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface > Controller > (rev 03) > 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE > Controller (rev 03) > 00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA > IDE > Controller (rev 03) > 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M G (rev > a1) > 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet > Adapter (rev b0) > 03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN > Network Connection (rev 61) > 05:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 01) > 09:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev > 05) > 09:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host > Adapter (rev 22) > 09:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12) > 09:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter > (rev 12) > 09:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) > > Problem similar to bug #11159, but none of suggestions from there helped. > On Mon, 25 Aug 2008, Andrew Morton wrote: > > http://bugzilla.kernel.org/show_bug.cgi?id=11423 > > > > Summary: usb-storage device based on Rockchip 2706 is being > > disconnected and thus not mountable. > > When trying to plug PMP Eon Slide-R TC, device is being immediately > > disconnected, so there's no chance to mount and browse the device, even if > it > > should be working with kernels > 2.4.4 (as declared by producer). I've > tried > > already to add udev rules for this PMP, reformatting the device and few > > different cables to exclude cabling problem, but all without luck. I don't > have > > also usb hub. On Windows it's just working. Here's what i get from dmesg > > output: Please build a kernel with CONFIG_USB_STORAGE_DEBUG enabled and attach the resulting dmesg log to the bug report. Alan Stern Created attachment 17450 [details]
dmesg output
Comment on attachment 17450 [details]
dmesg output
Finally I'd managed to attach output from dmesg, I had some problems with BZ's internal error earlier.
There's a bug in the USB chip on your device; it doesn't respond correctly to MODE SENSE requests. The patch below should work around the problem. Alan Stern Index: usb-2.6/drivers/usb/storage/unusual_devs.h =================================================================== --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h +++ usb-2.6/drivers/usb/storage/unusual_devs.h @@ -987,6 +987,13 @@ UNUSUAL_DEV( 0x069b, 0x3004, 0x0001, 0x US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_FIX_CAPACITY ), +/* Reported by Adrian Pilchowiec <adi1981@epf.pl> */ +UNUSUAL_DEV( 0x071b, 0x3203, 0x0000, 0x0000, + "RockChip", + "MP3", + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_NO_WP_DETECT), + /* Reported by Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com> * This USB MP3/AVI player device fails and disconnects if more than 128 * sectors (64kB) are read/written in a single command, and may be present On Wednesday 27 of August 2008 18:21:25 bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=11423 > > > ------- Comment #5 from stern@rowland.harvard.edu 2008-08-27 09:21 ------- > There's a bug in the USB chip on your device; it doesn't respond > correctly to MODE SENSE requests. The patch below should work around > the problem. > > Alan Stern > > > Index: usb-2.6/drivers/usb/storage/unusual_devs.h > =================================================================== > --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h > +++ usb-2.6/drivers/usb/storage/unusual_devs.h > @@ -987,6 +987,13 @@ UNUSUAL_DEV( 0x069b, 0x3004, 0x0001, 0x > US_SC_DEVICE, US_PR_DEVICE, NULL, > US_FL_FIX_CAPACITY ), > > +/* Reported by Adrian Pilchowiec <adi1981@epf.pl> */ > +UNUSUAL_DEV( 0x071b, 0x3203, 0x0000, 0x0000, > + "RockChip", > + "MP3", > + US_SC_DEVICE, US_PR_DEVICE, NULL, > + US_FL_NO_WP_DETECT), > + > /* Reported by Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com> > * This USB MP3/AVI player device fails and disconnects if more than 128 > * sectors (64kB) are read/written in a single command, and may be present Thanks Alan, now it's working almost perfectly. But now I see a lot of messages like: sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY end_request: I/O error, dev sdb, sector 7422792 sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY end_request: I/O error, dev sdb, sector 7423032 sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY end_request: I/O error, dev sdb, sector 7423272 sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY end_request: I/O error, dev sdb, sector 7423512 sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY end_request: I/O error, dev sdb, sector 7423752 Is it some real problem or it just can be ignored ? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wednesday 27 of August 2008 18:21:25 bugme-daemon@bugzilla.kernel.org wrote:</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> http://bugzilla.kernel.org/show_bug.cgi?id=11423</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> ------- Comment #5 from stern@rowland.harvard.edu 2008-08-27 09:21 -------</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> There's a bug in the USB chip on your device; it doesn't respond</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> correctly to MODE SENSE requests. The patch below should work around</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> the problem.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Alan Stern</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Index: usb-2.6/drivers/usb/storage/unusual_devs.h</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> ===================================================================</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> +++ usb-2.6/drivers/usb/storage/unusual_devs.h</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> @@ -987,6 +987,13 @@ UNUSUAL_DEV( 0x069b, 0x3004, 0x0001, 0x</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> US_SC_DEVICE, US_PR_DEVICE, NULL,</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> US_FL_FIX_CAPACITY ),</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> +/* Reported by Adrian Pilchowiec <adi1981@epf.pl> */</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> +UNUSUAL_DEV( 0x071b, 0x3203, 0x0000, 0x0000,</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> + "RockChip",</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> + "MP3",</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> + US_SC_DEVICE, US_PR_DEVICE, NULL,</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> + US_FL_NO_WP_DETECT),</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> +</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> /* Reported by Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> * This USB MP3/AVI player device fails and disconnects if more than 128</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> * sectors (64kB) are read/written in a single command, and may be present</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks Alan, now it's working almost perfectly.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">But now I see a lot of messages like: </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7422792</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423032</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423272</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423512</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423752</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Is it some real problem or it just can be ignored ?</p></body></html> uhhh again problem with formatting, sorry for that :/ I don't know what's wrong with my mail client :/ Probably it's some problem with signing messages. I will use web interface until I will fix this issue. The patch works. But, I got errors during file transfer to the device. To solve the problem, I did # echo 64 > /sys/block/sdb/device/max_sectors /dev/sdb is the MP3/4 device. I tried with 128 but not working. -Mohmammad Bahathir Hashim On Thursday 28 of August 2008 09:39:47 bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=11423 > > > > > > ------- Comment #8 from bahathir@gmail.com 2008-08-28 00:39 ------- > The patch works. But, I got errors during file transfer to the device. To > solve the problem, I did > > # echo 64 > /sys/block/sdb/device/max_sectors > > /dev/sdb is the MP3/4 device. > > I tried with 128 but not working. > > -Mohmammad Bahathir Hashim Confirmed. Adding those lines + +UNUSUAL_DEV( 0x071b, 0x3203, 0x0000, 0x0000, + "RockChip", + "ROCK MP3", + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_MAX_SECTORS_64 ), + to patch proposed by Alan solved problem for me. Now everything works just perfect. --------------------- Panorama Internetu - prognoza pogody, poczta e-mail, SMS, wyszukiwarki: Gooru, Anonser, serwisy: randki, ogl Created attachment 17594 [details]
Patch for Rockchip MP3
Just to confirm, is this the patch that works? If it is, I will submit it.
Yes, that's this one. Everything works with it. (In reply to comment #11) > Yes, that's this one. Everything works with it. > (In reply to comment #10) > Created an attachment (id=17594) [details] > Patch for Rockchip MP3 > > Just to confirm, is this the patch that works? If it is, I will submit it. > It does not work on my GNU/Linux :( But the previous patch in comment #5 works, but have add script to change max_sectors to 64 in udev script. Mohammad, I don't understand. The patch in comment #10 is exactly the same as the patch in comment #5 except that it also sets max_sectors to 64. So what's going wrong? Yes, but, with patch #10, my GNU/Linux system can detect the device but cannot mount it, and disconnected from USB system. Also /sys/block/%k/device/max_sectors value still 240 and did not change to 64. I will send debug result in short while. TQ. Created attachment 17693 [details]
dmesg output
Here is the dmesg, after applying patch #10 and mount the device.
Created attachment 17694 [details]
lsusb -v -d 071b:3203
lsusb output.
My system configuration
GNU/Linux distro: Slamd64
Kernel : Linux v2.6.26 vanilla, x86_64, SMP, vT
gcc : gcc-4.4.0
HW: Lenovo Thinkpad T61, 4GB RAM.
The dmesg log in #15 indicates that you did not have patch #10 installed. You can confirm this by looking at the file in /proc/scsi/usb-storage. Confirmed! Patch #10 works. I forgot to changed 0x0100,0x0100 portion from the original code. I did the patches manually, and sometime I missed it... My bad... Sorry. From >> UNUSUAL_DEV( 0x071b, 0x3203, 0x0100, 0x0100, to >> UNUSUAL_DEV( 0x071b, 0x3203, 0x0000, 0x0000, Thanks you very much. patch submitted? Not only has it been submitted, it has been accepted and is already in Linus's current tree. It will appear in 2.6.27-rc8. This bug report can be closed. ok, closing out. |