Bug 14175

Summary: hdparm hangs 15 seconds on USB drive
Product: Drivers Reporter: Tormod Volden (bugz.kernel.tormod)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: RESOLVED INVALID    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/bugs/428469
Kernel Version: 2.6.31 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: dmesg output, plugging in the drive and running hdparm on it

Description Tormod Volden 2009-09-13 22:09:47 UTC
The USB drive includes:
ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to
ATA/ATAPI
scsi 2:0:0:0: Direct-Access     WDC WD25 00BEVE-00WZT0         PQ: 0 ANSI: 0

When I run hdparm it hangs for 15 seconds:

$ time sudo hdparm /dev/sdb

/dev/sdb:
 HDIO_DRIVE_CMD(identify) failed: Invalid exchange
 readonly = 0 (off)
 readahead = 256 (on)
 geometry = 30401/255/63, sectors = 488397168, start = 0

real 0m15.979s
user 0m0.000s
sys 0m0.008s

I have the ums_cypress modules loaded. This appears in dmesg:
usb 1-7: reset high speed USB device using ehci_hcd and address 2
Comment 1 Tormod Volden 2009-09-13 22:11:27 UTC
Created attachment 23090 [details]
dmesg output, plugging in the drive and running hdparm on it
Comment 2 Greg Kroah-Hartman 2009-09-14 02:28:51 UTC
That is because the device does not support the requests that hdparm made to it (I'm amazed that it did anything.)

Nothing we can do about this, the device times out properly, and everything works fine afterward.