> I take back what I said earlier -- seeing why the port resets sometimes
> failed might indeed be useful.  Can you duplicate the failure, but this
> time with CONFIG_USB_DEBUG set?

See my other mail.

> Also, I do have a patch that's been sitting around for a while, intended
> to fix a problem that would occasionally cause a port reset to fail (what
> a coincidence!).  It may need a little adjusting on your part like the
> other patches did.  Go try it out, and if you still get a reset failure
> please send the kernel log.  But regardless of how this patch works, do
> send the kernel log showing what happens without it.

This patch seems to go in the right direction. The backup is running for 
about an hour now (usually the disconnect came at least after 15 min).

What I've seen is that now it sometimes takes a bit longer than usual 
for the reset:

Feb 28 01:43:38 fire kernel: usb-storage: -- transfer complete
Feb 28 01:43:38 fire kernel: usb-storage: Bulk command transfer result=0
Feb 28 01:43:38 fire kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 
131072 bytes, 31 entries
Feb 28 01:43:38 fire kernel: usb-storage: Status code -121; transferred 
130061/131072
Feb 28 01:43:38 fire kernel: usb-storage: -- short read transfer
Feb 28 01:43:38 fire kernel: usb-storage: Bulk data transfer result 0x1
Feb 28 01:43:38 fire kernel: usb-storage: Attempting to get CSW...
Feb 28 01:43:38 fire kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 
bytes
>>>>>>>>>>> 30 seconds gap
Feb 28 01:44:08 fire kernel: usb-storage: command_abort called
Feb 28 01:44:08 fire kernel: usb-storage: usb_stor_stop_transport called
Feb 28 01:44:08 fire kernel: usb-storage: -- cancelling URB
Feb 28 01:44:08 fire kernel: usb-storage: Status code -104; transferred 0/13
Feb 28 01:44:08 fire kernel: usb-storage: -- transfer cancelled
Feb 28 01:44:08 fire kernel: usb-storage: Bulk status result = 4
Feb 28 01:44:08 fire kernel: usb-storage: -- command was aborted
Feb 28 01:44:08 fire kernel: ehci_hcd 0000:00:0a.2: port 4 high speed
Feb 28 01:44:08 fire kernel: ehci_hcd 0000:00:0a.2: GetStatus port 4 status 
001005 POWER sig=se0  PE CONNECT
Feb 28 01:44:08 fire kernel: usb 1-4: reset high speed USB device using 
ehci_hcd and address 2
Feb 28 01:44:08 fire kernel: ehci_hcd 0000:00:0a.2: port 4 high speed
Feb 28 01:44:08 fire kernel: ehci_hcd 0000:00:0a.2: GetStatus port 4 status 
001005 POWER sig=se0  PE CONNECT
Feb 28 01:44:08 fire kernel: usb-storage: usb_reset_device returns 0
Feb 28 01:44:08 fire kernel: usb-storage: scsi command aborted

But that is seldom, usually the reset is done in a few secs. Maybe these
are the cases that previously caused the disconnects?

Anyway, I'm going to get some sleep now and report back tomorrow 
if it went alright or not.

Kind regards,

Gerd


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to