From: Alan Stern Date: Tue, 12 Jul 2005 14:45:17 +0000 (-0400) Subject: [SCSI] sd: pause in sd_spinup_disk for slow USB devices X-Git-Tag: v2.6.14-rc1~522^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4451e472627881e3e2240b224f127c99be500f91;p=pandora-kernel.git [SCSI] sd: pause in sd_spinup_disk for slow USB devices This patch adds a delay tailored for USB flash devices that are slow to initialize their firmware. The symptom is a repeated Unit Attention with ASC=0x28 (Not Ready to Ready transition). The patch will wait for up to 5 seconds for such devices to become ready. Normal devices won't send the repeated Unit Attention sense key and hence won't trigger the patch. This fixes a problem with James Roberts-Thomson's USB device, and I've seen several reports of other devices exhibiting the same symptoms -- presumably they will be helped as well. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed