Date: Thu, 8 Jan 2009 10:16:02 +0000 (UTC) From: Rafal Jaworowski <raj@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/cam cam_xpt.c Message-ID: <200901081016.n08AGDCA086866@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
raj 2009-01-08 10:16:02 UTC
FreeBSD src repository
Modified files:
sys/cam cam_xpt.c
Log:
SVN rev 186891 on 2009-01-08 10:16:02Z by raj
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
Revision Changes Path
1.204 +8 -1 src/sys/cam/cam_xpt.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901081016.n08AGDCA086866>
