On Thu, 15 Jul 2004, Tgnard wrote:

> Hi list,
> 
> I have a problem with my cypress disk enclosure.
> It works perfectly with usb1.1 but I can't get it work with ehci.
> 
> when only uhci_hcd is loaded, I have the following lines in my /proc/
> usb/devices:
> 
> T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=04b4 ProdID=6830 Rev= 0.01
> S:  Manufacturer=Cypress Semiconductor
> S:  Product=USB2.0 Storage Device
> S:  SerialNumber=DEF1084194CB
> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-
> storage
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=88(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

You might also want to show what it says when the EHCI driver is loaded.

> When I try to plug the disk with ehci_hcd loaded, I have the following
> output:
> 
> kernel: usb-storage: Command READ_10 (10 bytes)
> kernel: usb-storage:  28 00 00 00 00 00 00 00 08 00
> kernel: usb-storage: Bulk Command S 0x43425355 T 0xb L 4096 F 128 Trg 0
> LUN 0 CL 10
> kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
> kernel: usb-storage: Status code 0; transferred 31/31
> kernel: usb-storage: -- transfer complete
> kernel: usb-storage: Bulk command transfer result=0
> kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1
> entries
> kernel: ehci_hcd 0000:00:1d.7: devpath 6 ep8in 3strikes
> kernel: usb-storage: Status code -71; transferred 0/4096
> kernel: usb-storage: -- unknown error
> kernel: usb-storage: Bulk data transfer result 0x4

> ...again and again..
> 
> 
> It seems the scatter-gather list doesn't succesfully end with ehci
> loaded whereas it works with uhci
> 
> I have a 2.6.7 kernel with patch
> http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108593392122076&q=raw

Don't use that patch; it has been removed from the kernel.

> Any ideas ?

Maybe your device needs a time delay inserted when it's running at high 
speed, like the Genesys Logic interface does.  Try this patch and see if 
it makes any difference.

Alan Stern


===== drivers/usb/storage/transport.c 1.141 vs edited =====
--- 1.141/drivers/usb/storage/transport.c       Thu Jun 24 12:44:16 2004
+++ edited/drivers/usb/storage/transport.c      Mon Jul 19 11:57:22 2004
@@ -975,6 +975,7 @@
 
        /* DATA STAGE */
        /* send/receive data payload, if there is any */
+       udelay(100);
        if (transfer_length) {
                unsigned int pipe = srb->sc_data_direction == SCSI_DATA_READ ? 
                                us->recv_bulk_pipe : us->send_bulk_pipe;



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to