Re: High speed devices with kernel 2.6.21.5.

"Branden Sletteland" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On 7/11/07, Branden Sletteland <[email protected]> wrote:
> On 7/11/07, Alan Stern <[email protected]> wrote:
> > On Wed, 11 Jul 2007, Branden Sletteland wrote:
> >
> > > None of these patches exhibited the problem.   The third one couldn't
> > > read the USB device descriptor, but the 4th patch fixed that.
> > >
> > > I noticed these patches only touched files in drivers/usb/host, did
> > > anything change in drivers/usb/core or other places in the same time
> > > frame.
> >
> > Certainly.  However the problem starts when your device is identified
> > as full speed rather than high speed, and that identification is made
> > within ehci-hcd.
> >
> > Maybe you could try taking the entire drivers/usb/host directory from
> > 2.6.21, putting it in a 2.6.20 source tree, and building it.  I don't
> > know if that will work, but it's worth a try.
> >
>
> Tried this and it actually built, exhibited the same full speed
> problem as 2.6.21-rc1, so that seems to narrow it down to that
> directory.
>
I guess it wasn't 100% the same result,  if the storage device is
plugged in during kernel initialization the device is detected as a
high speed device, but if I power cycle the storage device it
eventually gets detected as a high speed device, as you can see from
the following dmesg dump.

<6>usb 4-1: new full speed USB device using ohci_hcd and address 2
<6>usb 4-1: not running at top speed; connect to a high speed hub
<6>usb 4-1: configuration #1 chosen from 1 choice
<6>scsi0 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<6>usb 4-1: reset full speed USB device using ohci_hcd and address 2
<3>usb 4-1: failed to restore interface 0 altsetting 0 (error=-62)
<6>usb 4-1: USB disconnect, address 2
<7>usb-storage: device scan complete
<6>usb 4-1: new full speed USB device using ohci_hcd and address 3
<6>usb 4-1: not running at top speed; connect to a high speed hub
<6>usb 4-1: configuration #1 chosen from 1 choice
<6>scsi1 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 3
<7>usb-storage: waiting for device to settle before scanning
<5>scsi 1:0:0:0: Direct-Access     Cypress  Semi                  PQ: 0 ANSI: 0
<6>usb 4-1: reset full speed USB device using ohci_hcd and address 3
<5>SCSI device sda: 4001760 512-byte hdwr sectors (2049 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 27 00 00 00
<3>sda: assuming drive cache: write through
<6>sd 1:0:0:0: ioctl_internal_command return code = 8000002
<6>   : Current: sense key=0x0
<6>    ASC=0x0 ASCQ=0x0
<5>SCSI device sda: 4001760 512-byte hdwr sectors (2049 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 27 00 00 00
<3>sda: assuming drive cache: write through
<6> sda:<6>usb 4-1: reset full speed USB device using ohci_hcd and address 3
<4> sda1
<6>sd 1:0:0:0: ioctl_internal_command return code = 8000002
<6>   : Current: sense key=0x0
<6>    ASC=0x0 ASCQ=0x0
<5>sd 1:0:0:0: Attached scsi removable disk sda
<7>usb-storage: device scan complete
<6>usb 4-1: USB disconnect, address 3
<3>scsi 1:0:0:0: rejecting I/O to dead device
<6>usb 3-1: new full speed USB device using ohci_hcd and address 2
<6>usb 3-1: not running at top speed; connect to a high speed hub
<6>usb 3-1: configuration #1 chosen from 1 choice
<6>scsi2 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<6>usb 2-1: new high speed USB device using ehci_hcd and address 2
<6>usb 2-1: configuration #1 chosen from 1 choice
<6>scsi3 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<6>usb 2-2: new high speed USB device using ehci_hcd and address 3
<3>usb 2-2: device not accepting address 3, error -71
<6>usb 3-1: USB disconnect, address 2
<6>usb 2-1: USB disconnect, address 2
<6>usb 1-2: new high speed USB device using ehci_hcd and address 4
<6>usb 1-2: configuration #1 chosen from 1 choice
<6>scsi4 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 4
<7>usb-storage: waiting for device to settle before scanning
<5>scsi 4:0:0:0: Direct-Access     Cypress  Semi                  PQ: 0 ANSI: 0
<5>SCSI device sda: 4001760 512-byte hdwr sectors (2049 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 27 00 00 00
<3>sda: assuming drive cache: write through
<6>sd 4:0:0:0: ioctl_internal_command return code = 8000002
<6>   : Current: sense key=0x0
<6>    ASC=0x0 ASCQ=0x0
<5>SCSI device sda: 4001760 512-byte hdwr sectors (2049 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 27 00 00 00
<3>sda: assuming drive cache: write through
<6> sda:<6>usb 1-2: reset high speed USB device using ehci_hcd and address 4
<4> sda1




> Was the last patch in the previous emails the version of the files
> that became 2.6.21-rc1 or should I start bisecting between that and
> rc1.
>
> > > Or are there other patches prior to 2.6.21-rc1 that I can try?
> >
> > To get the complete set of changes you need to use Git.  Then you can
> > perform a bisection to find exactly where the problem starts.
> >
> > Linus Torvalds recently posted a message including a quick summary of
> > how to do this.  See
> >
> > http://marc.info/?l=linux-kernel&m=118408208816556&w=2
> >
> > Alan Stern
> >
> >
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.