diff options
author | raj <raj@FreeBSD.org> | 2009-01-08 10:16:02 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2009-01-08 10:16:02 +0000 |
commit | 6c794050fae360d868aee73697e67d847787a0b5 (patch) | |
tree | b4cab490ce862689df0f189682ab63ff12d1e83b /sys/dev/mge | |
parent | 128be91e61347b01ba97af54fb6f94e6e2638141 (diff) | |
download | FreeBSD-src-6c794050fae360d868aee73697e67d847787a0b5.zip FreeBSD-src-6c794050fae360d868aee73697e67d847787a0b5.tar.gz |
cam: Retry TEST UNIT READY command if not successful.
This fixes problems with discovering some USB devices that are very slow to
respond during initialisation.
When a USB device is inserted, CAM performs the sequence:
1) INQUIRY
2) INQUIRY (second time with other parameters)
3) TEST UNIT READY
4) READ CAPACITY
Before this change CAM didn't check if TEST UNIT READY was successful and went
on blindly to the next state and sent READ CAPACITY. If the device was still
not ready by then, CAM ended with error message. This patch adds checking for the
status of TEST UNIT READY command and retrying up to 10 times with 0.5 sec
interval.
Submitted by: Grzegorz Bernacki gjb ! semihalf dot com
Reviewed by: scottl
Diffstat (limited to 'sys/dev/mge')
0 files changed, 0 insertions, 0 deletions