On Fri, 2 Jun 2006, Vivek Dharmadhikari wrote: > Alan > > >Apparently you are using an old kernel version. With more recent versions > >(like 2.6.17-rc5), usbmon provides a lot more information. > > I am using 2.6.12 kernel. > > >Also it looks like either usbmon has dropped a lot of lines or you have > >edited them out of the log. > > I pasted few lines from the log. I guess then the usbmon is dropping lot of > lines. > > >The 30-second jump occurs because the device has crashed and isn't sending > >any response. The kernel waits for 30 seconds before aborting the > >command. The 6-second jump is probably part of the device-reset sequence. > > Which code sequence in USB driver waits for 30 seconds before aborting the > command ?
None of them. That timeout is part of the SCSI core. > What are the tradeoffs of decreasing timeout value of 30 seconds ? You might abort a command that would have completed successfully if you had let it run longer. > Is the 30 seconds timeout is in accordance with USB standard or just a random > value ? It's not part of any USB standard. I don't know how the SCSI guys came up with it. > >No. For better visibility you should upgrade to a more recent kernel. > > I wish i could upgrade the kernel. However i can not upgrade the kernel now > because it is too much of effort. > > >The problem is more likely to be in your device than in the kernel. > >Nevertheless, the only available fix is to upgrade to a newer kernel. > > As i said, currently for us,upgrading kernel is not an option. Are there > any other options to upgrade the USB driver ? You could try taking the contents of drivers/usb/storage from 2.6.13 and using them instead of the files from 2.6.12. There may have been other incompatible changes that would prevent this from working, however. Perhaps if you compare the differences between the two versions of the driver, you will be able to see which ones can be back-ported. Alan Stern _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel