freebsd-skq/sys
raj 6c794050fa 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
2009-01-08 10:16:02 +00:00
..
amd64 Add Centaur/IDT/VIA vendor ID for Nano family, which has long mode support. 2009-01-05 21:51:49 +00:00
arm Include std.ixp425 for "cpu" and comment out duplicate memory map 2008-12-28 11:04:24 +00:00
boot This patch introduces a number of simplifications to the Forth 2009-01-05 20:09:54 +00:00
bsm Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, both 2008-12-31 11:12:24 +00:00
cam cam: Retry TEST UNIT READY command if not successful. 2009-01-08 10:16:02 +00:00
cddl Put the MIPS support back in after it was removed in r185029. 2008-12-04 16:31:08 +00:00
compat Push down Giant inside sysctl. Also add some more assertions to the code. 2008-12-29 12:58:45 +00:00
conf Using KMODOWN/KMODGRP rather than hard coding root/wheel for 2009-01-07 09:56:54 +00:00
contrib Check for ipprotosw.h more precisely. 2008-12-23 16:49:07 +00:00
crypto Avoid 256 integer divisions per rc4_init() call. Replace it with using 2008-12-16 13:58:37 +00:00
ddb
dev Make ufoma2 driver work. 2009-01-08 05:10:03 +00:00
fs Add a VOP_VPTOCNP implementation for pseudofs which covers file systems 2008-12-30 21:49:39 +00:00
gdb
geom - Don't enforce an upper-bound to the number of sectors or heads, 2009-01-06 14:10:10 +00:00
gnu Do not incorrectly add the low 5 bits of the offset to the resulting 2009-01-04 15:56:49 +00:00
i386 Add a reference to the "env" kernel config option in the GENERIC file, 2009-01-06 15:10:26 +00:00
ia64 AT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them. 2008-12-17 06:56:58 +00:00
isa Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
kern Remove Giant locking from domains list. 2009-01-04 19:22:53 +00:00
kgssapi Call svc_freereq() before returning from the service proc. 2008-11-12 15:31:05 +00:00
libkern Add simple locking for the in-kernel iconv code. Translation operations 2008-12-05 21:19:24 +00:00
mips First pass at 64-bit elf support 2008-12-31 07:38:04 +00:00
modules - Remove snd_au88x0 which seems never got compiled into kernel nor as a kernel 2009-01-07 03:15:22 +00:00
net The log message should terminate with a newline instead 2009-01-02 22:51:30 +00:00
net80211 only mark an infrastructure node to require an associd for xmit; fixes adhoc 2009-01-07 18:17:36 +00:00
netatalk
netgraph shave about 7% off the overhead of ng_ether by using per-hook 2008-12-25 09:02:55 +00:00
netinet Addresses Roberts comments on comments. Also adds 2009-01-06 13:27:56 +00:00
netinet6 Addresses Roberts comments on comments. Also adds 2009-01-06 13:27:56 +00:00
netipsec Switch the last protosw* structs to C99 initializers. 2009-01-05 20:29:01 +00:00
netipx Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through 2008-12-11 10:29:35 +00:00
netnatm
netncp
netsmb Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. 2008-11-03 14:23:15 +00:00
nfs
nfs4client Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary 2008-10-28 13:44:11 +00:00
nfsclient Rather than using hidden includes (with cicular dependencies), 2008-12-02 21:37:28 +00:00
nfsserver Handle VFS_VGET() failing with an error other than EOPNOTSUPP in addition 2008-12-16 04:34:09 +00:00
nlm Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
opencrypto Don't hang if encrypting/decrypting using struct iovecs where one of the 2008-10-30 16:11:07 +00:00
pc98 Replace syscons terminal renderer by a new renderer that uses libteken. 2009-01-01 13:26:53 +00:00
pccard
pci Since we don't request reset for rlphy(4), the link state 'UP' 2008-12-22 00:53:47 +00:00
powerpc Add a new quirk type so that the MacIO driver will assign memory resources 2009-01-06 01:54:57 +00:00
rpc Add a missing call to mtx_destroy(). 2008-11-12 12:21:18 +00:00
security Do a lockless read of the audit pipe list before grabbing the audit pipe 2009-01-06 14:15:38 +00:00
sparc64 - Currently the PMAP code is laid out to let the kernel TSB cover the 2009-01-01 14:01:21 +00:00
sun4v Missed the sun4v update to ofw_machdep.h in the OFW modularization commit. 2008-12-20 15:11:00 +00:00
sys Add some new oss_sysinfo structure fields from OSSv4. 2009-01-07 21:12:33 +00:00
tools Remove some unused and broken code that attempted to not invoke locking 2008-11-03 19:57:40 +00:00
ufs Do not busy twice the mount point where a quota operation is performed. 2008-12-18 12:01:53 +00:00
vm Extend the struct vm_page wire_count to u_int to avoid the overflow 2009-01-03 13:24:08 +00:00
xdr Use the remote address for access control, not the local address. This fixes 2008-11-13 14:36:52 +00:00
xen merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
Makefile