Bug 8645
Summary: | disconnect usb end-device; reading error | ||
---|---|---|---|
Product: | Drivers | Reporter: | Wolfgang Schnitker (wolfgang.schnitker) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | akpm, alan, wolfgang.schnitker |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.22.6 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 5089 | ||
Attachments: |
debug logfile usb.log with usb2.0 only devices and kernel 2.6.22.6
kernel 2.6.22.6 complete debug log usb storage |
Description
Wolfgang Schnitker
2007-06-17 05:35:59 UTC
2.6.18 is a little old. Is it repeatable on later kernels? Ideally 2.6.22-rc5? Thanks. Dear developers, additional information from me an Martin Dauskart md001 <at> gmx.de: Martin tried: unload ehci-hcd module wait a moment load ehci-hcd by hand --> works I just tried: unplug 1.1 HUB plug 2.0 HUB plug card reader --> works But if you reboot then, the problem comes up again. I tried it with etch available kernels, latest kernel: Linux 2.6.21-1-686 #1 SMP from backorts.org on original etch System. So the next hint seems to be at the initialization procedure within cold plug. Hot Plugging seems to have no problem. Chears & have a nice day. Wolfgang PS: Keep Martin on CC. Excuse me, but it is in fact not working. Here the snippet from log: usb 3-1: USB disconnect, address 4 usb 3-1.1: USB disconnect, address 6 usb 4-5: new high speed USB device using ehci_hcd and address 4 usb 4-5: configuration #1 chosen from 1 choice hub 4-5:1.0: USB hub found hub 4-5:1.0: 4 ports detected usb 4-5.1: new full speed USB device using ehci_hcd and address 5 usb 4-5.1: configuration #1 chosen from 1 choice scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 5 usb-storage: waiting for device to settle before scanning usb-storage: device scan complete scsi 1:0:0:0: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:1: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:2: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:3: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS sd 1:0:0:0: Attached scsi removable disk sda sd 1:0:0:1: Attached scsi removable disk sdb sd 1:0:0:2: Attached scsi removable disk sdc sd 1:0:0:3: Attached scsi removable disk sdd SCSI device sda: 510976 512-byte hdwr sectors (262 MB) sda: Write Protect is off sda: Mode Sense: 43 00 00 00 sda: assuming drive cache: write through SCSI device sda: 510976 512-byte hdwr sectors (262 MB) sda: Write Protect is off sda: Mode Sense: 43 00 00 00 sda: assuming drive cache: write through sda: sda1 usb 4-5.1: reset full speed USB device using ehci_hcd and address 5 usb 4-5.1: reset full speed USB device using ehci_hcd and address 5 New additional Comment: I just made a new Kernel from 2.6.22-rc5: Here is the result from dmesg: usb 3-1: USB disconnect, address 2 usb 3-1.1: USB disconnect, address 4 usb 4-5: new high speed USB device using ehci_hcd and address 4 usb 4-5: configuration #1 chosen from 1 choice hub 4-5:1.0: USB hub found hub 4-5:1.0: 4 ports detected usb 4-5: USB disconnect, address 4 usb 4-5: new high speed USB device using ehci_hcd and address 5 usb 4-5: configuration #1 chosen from 1 choice hub 4-5:1.0: USB hub found hub 4-5:1.0: 4 ports detected usb 4-5.1: new full speed USB device using ehci_hcd and address 6 usb 4-5.1: configuration #1 chosen from 1 choice scsi1 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning usb-storage: device scan complete scsi 1:0:0:0: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:1: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:2: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS scsi 1:0:0:3: Direct-Access USB Card Reader 1.05 PQ: 0 ANSI: 0 CCS sd 1:0:0:0: [sda] Attached SCSI removable disk sd 1:0:0:1: [sdb] Attached SCSI removable disk sd 1:0:0:2: [sdc] Attached SCSI removable disk sd 1:0:0:3: [sdd] Attached SCSI removable disk sd 1:0:0:0: [sda] 510976 512-byte hardware sectors (262 MB) sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00 sd 1:0:0:0: [sda] Assuming drive cache: write through sd 1:0:0:0: [sda] 510976 512-byte hardware sectors (262 MB) sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00 sd 1:0:0:0: [sda] Assuming drive cache: write through sda: sda1 usb 4-5.1: reset full speed USB device using ehci_hcd and address 6 usb 4-5.1: device descriptor read/64, error -32 As Martin Dauskadt told me, he has the same problem with this kernel version(s). The problem occurs exactly, when you want to write or read to or from an USB mass storage device. Not whe you just plug in the device. In my case you must have a card inserted to the card reader, mount it and read/write to it. You are totally right, the HUB has to swith to right USB subersion. KDE controlcenter tells me, that on the ehci module is a HUB in version 2.0 is used, and the card reader is USB 1.0. #################################### exact lsusb output for both devices: Card-Reader: Bus 004 Device 006: ID 0d7d:0240 Phison Electronics Corp. I/O-Magic/Transcend 6-in-1 Card Reader Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0d7d Phison Electronics Corp. idProduct 0x0240 I/O-Magic/Transcend 6-in-1 Card Reader bcdDevice 1.00 iManufacturer 1 iProduct 2 USB Reader iSerial 3 03260800060C bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0002 1x 2 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) ########################## the HUB: Bus 004 Device 005: ID 05e3:0605 Genesys Logic, Inc. USB 2.0 Hub [ednet] Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 64 idVendor 0x05e3 Genesys Logic, Inc. idProduct 0x0605 USB 2.0 Hub [ednet] bcdDevice 6.0b iManufacturer 0 iProduct 1 USB2.0 Hub iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0001 1x 1 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 4 wHubCharacteristic 0x00e9 Per-port power switching Per-port overcurrent protection TT think time 32 FS bits Port indicators bPwrOn2PwrGood 50 * 2 milli seconds bHubContrCurrent 100 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0103 power enable connect Port 2: 0000.0100 power Port 3: 0000.0100 power Port 4: 0000.0100 power Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0003 Self Powered Remote Wakeup Enabled ######################## the PCI card: Bus 004 Device 001: ID 0000:0000 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 1 Single TT bMaxPacketSize0 64 idVendor 0x0000 idProduct 0x0000 bcdDevice 2.06 iManufacturer 3 Linux 2.6.22-rc5 ehci_hcd iProduct 2 EHCI Host Controller iSerial 1 0000:00:08.3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 Unused bInterfaceProtocol 0 Full speed (or root) hub iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0004 1x 4 bytes bInterval 12 Hub Descriptor: bLength 9 bDescriptorType 41 nNbrPorts 6 wHubCharacteristic 0x0009 Per-port power switching Per-port overcurrent protection TT think time 8 FS bits bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable 0x00 PortPwrCtrlMask 0xff Hub Port Status: Port 1: 0000.0100 power Port 2: 0000.0100 power Port 3: 0000.0100 power Port 4: 0000.0100 power Port 5: 0000.0503 highspeed power enable connect Port 6: 0000.0100 power Device Status: 0x0003 Self Powered Remote Wakeup Enabled New Actions: I bought a USB 2.0 cardReader. Here is what happend: usb 1-5: USB disconnect, address 17 usb 1-5.1: USB disconnect, address 20 usb 1-5: new high speed USB device using ehci_hcd and address 21 usb 1-5: configuration #1 chosen from 1 choice hub 1-5:1.0: USB hub found hub 1-5:1.0: 4 ports detected hub 1-5:1.0: Cannot enable port 1. Maybe the USB cable is bad? hub 1-5:1.0: Cannot enable port 1. Maybe the USB cable is bad? hub 1-5:1.0: Cannot enable port 1. Maybe the USB cable is bad? hub 1-5:1.0: Cannot enable port 1. Maybe the USB cable is bad? usb 1-5.1: new high speed USB device using ehci_hcd and address 26 usb 1-5.1: configuration #1 chosen from 1 choice scsi8 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 26 usb-storage: waiting for device to settle before scanning Vendor: Generic Model: IC1210 CF Rev: 1.9E Type: Direct-Access ANSI SCSI revision: 00 sd 8:0:0:0: Attached scsi removable disk sda Vendor: Generic Model: IC1210 MS Rev: 1.9E Type: Direct-Access ANSI SCSI revision: 00 sd 8:0:0:1: Attached scsi removable disk sdb Vendor: Generic Model: IC1210 MMC/SD Rev: 1.9E Type: Direct-Access ANSI SCSI revision: 00 usb 1-5.1: reset high speed USB device using ehci_hcd and address 26 sd 8:0:0:2: Attached scsi removable disk sdc Vendor: Generic Model: IC1210 SM Rev: 1.9E Type: Direct-Access ANSI SCSI revision: 00 sd 8:0:0:3: Attached scsi removable disk sdd usb-storage: device scan complete usb 1-5.1: reset high speed USB device using ehci_hcd and address 26 usb 1-5.1: reset high speed USB device using ehci_hcd and address 26 output of lsusb: Bus 004 Device 003: ID 03f0:2d11 Hewlett-Packard OfficeJet 6110 Bus 004 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 001 Device 026: ID 0dda:2026 Integrated Circuit Solution, Inc. Bus 001 Device 021: ID 05e3:0605 Genesys Logic, Inc. USB 2.0 Hub [ednet] Bus 001 Device 001: ID 0000:0000 Created attachment 12776 [details]
debug logfile usb.log with usb2.0 only devices and kernel 2.6.22.6
Dear kerneldevelopers,
please find the usb debug log file from my computer.
Test Case: Only usb 2.0 devices, 1 hub and 1 card reader (only ehci driver is used).
After 2 seconds the devices are disconnected from the hub, resetting the usb-storage devices.
I tried this without the hub, directly attaching the card reader to the hub. This behaves in the same manner.
Additionaly I tried to connect a usb stick to the hub, this shows the same behaviour either.
So my proposal is, that probably something is wrong in usb storage code.
Chears
Wolfgang
Created attachment 12789 [details]
kernel 2.6.22.6 complete debug log usb storage
Hi,
again a complete log from my computer with kernele 2.6.22.6 and usb-storage.
Further details:
It seems, that the problem only occurs, when a media is inserted in the card reader. I tried to copy a 10 MB file to a 32 MB CF Card. Copy to the card was succesfull, then I want to list and delete it for test purposes. List was successful, between list and typing delete .... the error occurs.
I copied the whole /var/log/debug to this file.
If it is usefull, I can add dmesg output too.
Chears
Wolfgang
Should now be working in 2.6.30 kernel versions. If not, please bring it up on the linux-usb@vger.kernel.org mailing list. |