Some questions:
(1) I'm guessing that this is an OHCI system, based on your other
messages.  Please confirm/deny this.

(2) Does anyone know why we're not seeing the "OHCI Root Hub" string in
the output?  Did that patch (to identify virtual root hubs) not make it
into the kernel?

(3) I'm guessing that the ORB drive had media in it when this was done.
Please confirm/deny.

(4) Does this always fail, or just sometimes?  It's clear that at least
one command makes it to the device in this trace -- do others sometime
make it?

(5) Can you send the logfile processed by syslog with timestamps?  That
can be helpful, especially with timeout/reset conditions.

(6) Can you test this on a UHCI system (or OHCI, which ever you don't have
-- see question 1)?

(7) I find it somewhat odd that the INQUIRY data returned happens to be
exactly 255 bytes.  It just rubs my instincts funny.  Could you hack the
driver to, in the case of an INQUIRY, only get like 50 bytes?  You should
be able to do this by editing us_transfer_length().  Do that, retest, and
let me know if it makes a difference.

The short version is this:  Everything seems just fine.  But the device
fails to respond to the status stage of the transfer.  The only thing I
can think to do would be to attempt to reset the device.  That code isn't
done yet, but should get done when I'm back on my feet from surgery.

Matt Dharm

On Tue, 11 Apr 2000, Miles Lane wrote:

> 
> usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
> hub.c: USB hub found
> hub.c: 4 ports detected
> hub.c: individual port power switching
> hub.c: standalone hub
> hub.c: individual port over-current protection
> hub.c: power on to power good time: 100ms
> hub.c: hub controller current requirement: 100mA
> hub.c: port 1 is removable
> hub.c: port 2 is removable
> hub.c: port 3 is removable
> hub.c: port 4 is removable
> hub.c: local power source is good
> hub.c: no over-current condition exists
> hub.c: enabling power on all ports
> usb.c: hub driver claimed interface cff79c40
> hub.c: port 1 connection change
> hub.c: portstatus 101, change 1, High Speed
> Adding Swap: 88320k swap-space (priority -1)
> hub.c: portstatus 103, change 10, High Speed
> usb.c: USB new device connect, assigned device number 4
> usb.c: kmalloc IF cff79f80, numif 1
> usb.c: new device strings: Mfr=1, Product=2, SerialNumber=5
> usb.c: USB device number 4 default language ID 0x409
> Manufacturer: Microtech International, Inc.
> Product: USB-SCSI-HD50
> SerialNumber: 07
> usb.c: unhandled interfaces on device
> usb.c: This device is not recognized by any installed USB driver.
>   Length              = 18
>   DescriptorType      = 01
>   USB version         = 1.00
>   Vendor:Product      = 07af:0005
>   MaxPacketSize0      = 64
>   NumConfigurations   = 1
>   Device version      = 1.00
>   Device Class:SubClass:Protocol = 00:00:00
>     Per-interface classes
> Configuration:
>   bLength             =    9
>   bDescriptorType     =   02
>   wTotalLength        = 0020
>   bNumInterfaces      =   01
>   bConfigurationValue =   01
>   iConfiguration      =   03
>   bmAttributes        =   40
>   MaxPower            =    0mA
> 
>   Interface: 0
>   Alternate Setting:  0
>     bLength             =    9
>     bDescriptorType     =   04
>     bInterfaceNumber    =   00
>     bAlternateSetting   =   00
>     bNumEndpoints       =   02
>     bInterface Class:SubClass:Protocol =   08:06:50
>     iInterface          =   04
>     Endpoint:
>       bLength             =    7
>       bDescriptorType     =   05
>       bEndpointAddress    =   01 (out)
>       bmAttributes        =   02 (Bulk)
>       wMaxPacketSize      = 0040
>       bInterval           =   00
>     Endpoint:
>       bLength             =    7
>       bDescriptorType     =   05
>       bEndpointAddress    =   82 (in)
>       bmAttributes        =   02 (Bulk)
>       wMaxPacketSize      = 0040
>       bInterval           =   00
> hdc: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
> Uniform CD-ROM driver Revision: 3.07
> hdd: ATAPI 24X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
> Serial driver version 4.93 (2000-03-20) with MANY_PORTS SHARE_IRQ SERIAL_PCI
> ISAPNP enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at port 0xf400 (irq = 9) is a 16550A
> Creative EMU10K1 PCI Audio Driver, version 0.5 , 12:51:32 Apr 11 2000
> emu10k1: emu10k1 rev 7 found at IO 0xff80, IRQ 9
> Unlink of SHM id 583499777 failed (-1).
> Unlink of SHM id 583565314 failed (-1).
> usb.c: registered new driver usb-storage
> usb-storage: USB Mass Storage device detected
> usb-storage: Endpoints In 2 Out 1 Int 0
> usb-storage: Result from usb_set_interface is -32
> usb-storage: -- clearing stall on control interface
> usb-storage: New GUID 07af00050000000000000007
> usb-storage: Transport: Bulk
> usb-storage: Protocol: Transparent SCSI
> usb-storage: *** thread sleeping.
> scsi0 : SCSI emulation for USB Mass Storage devices
> 
> scsi : 1 host.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage:   00 00 00 00 00 00 12 c0 80 3c
> usb-storage: Bulk command S 0x43425355 T 0x1 LUN 0 L 0 F 0 CL 6
> usb-storage: Bulk command transfer result=0
> usb-storage: Bulk status S 0x53425355 T 0x1 R 0 V 0x1
> usb-storage: -- transport indicates command failure
> usb-storage: Command FAILED: Issuing auto-REQUEST_SENSE
> usb-storage: Bulk command S 0x43425355 T 0x1 LUN 0 L 18 F 128 CL 6
> usb-storage: Bulk command transfer result=0
> usb-storage: Bulk xfer 0xcd512afc(18)
> usb-storage: bulk_msg returned 0 xferred 18/18
> usb-storage: Bulk data transfer result 0x0
> usb-storage: Bulk status S 0x53425355 T 0x1 R 0 V 0x0
> usb-storage: -- Result from auto-sense is 0
> usb-storage: -- sense key: 0x6, ASC: 0x29, ASCQ: 0x0
> usb-storage: scsi cmd done, result=0x1
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command INQUIRY (6 bytes)
> usb-storage:   12 00 00 00 ff 00 12 c0 80 3c
> usb-storage: Bulk command S 0x43425355 T 0x2 LUN 0 L 256 F 128 CL 6
> usb-storage: Bulk command transfer result=0
> usb-storage: Bulk xfer 0xc9dc3cc0(256)
> usb-storage: bulk_msg returned 0 xferred 255/256
> usb-storage: Bulk data transfer result 0x1
> usb-storage: clearing endpoint halt for pipe 0xc0010483
> usb-storage: us_abort() called
> usb-storage: bus_reset() requested but not implemented
> usb-storage: Bus reset requested
> usb-storage: us_queuecommand() called
> usb_control/bulk_msg: timeout
> usb-storage: Bulk status result = -110
> usb-storage: -- transport indicates transport failure
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage:   00 00 00 00 00 00 12 c0 80 3c
> usb-storage: Bulk command S 0x43425355 T 0x2 LUN 0 L 256 F 0 CL 6
> usb-storage: bus_reset() requested but not implemented
> usb-storage: Bus reset requested
> usb-storage: Bulk command transfer result=0
> usb-storage: Bulk xfer 0xc9dc3cc0(256)
> usb-storage: bulk_msg returned 0 xferred 256/256
> usb-storage: Bulk data transfer result 0x0
> usb_control/bulk_msg: timeout
> usb-storage: us_queuecommand() called
> usb-storage: Bulk status result = -110
> usb-storage: -- transport indicates transport failure
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage:   00 00 00 00 00 00 12 c0 80 3c
> usb-storage: Bulk command S 0x43425355 T 0x2 LUN 0 L 256 F 0 CL 6
> usb-storage: us_queuecommand() called
> usb-storage: Bulk command transfer result=-32
> usb-storage: clearing endpoint halt for pipe 0xc0008403
> usb_control/bulk_msg: timeout
> usb-storage: Bulk status result = -110
> usb-storage: -- transport indicates transport failure
> usb-storage: Fixing INQUIRY data, setting SCSI rev to 2
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (1/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (2/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (3/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (4/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (5/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (6/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> usb-storage: us_queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad device number (7/0) or dev 0xcf80ae00
> usb-storage: *** thread sleeping.
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 4
> usb.c: usb-storage driver claimed interface cff79f80
> USB Mass Storage support registered.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Engineer, Qualcomm, Inc.                         Work: [EMAIL PROTECTED]

I'm just trying to think of a way to say "up yours" without getting fired.
                                        -- Stef
User Friendly, 10/8/1998


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to