uwb: avoid radio controller reset loops
authorDavid Vrabel <david.vrabel@csr.com>
Tue, 25 Aug 2009 15:41:06 +0000 (16:41 +0100)
committerDavid Vrabel <david.vrabel@csr.com>
Wed, 26 Aug 2009 11:39:29 +0000 (12:39 +0100)
commit0396c215f301e92677d1e9a064b405e31501dc1d
treea54229672abc6f244fcf184701b8a8bf98b70544
parenta9e75a389254801ca160b72c6e221e5bb7e35df9
uwb: avoid radio controller reset loops

If a radio controller reset attempt occurs while a probe() or remove()
is in progress it fails and is retried endlessly, potentially preventing
the probe() or remove() from completing.

If a reset fails, sleep for a bit before retrying the reset.  This
allows the probe()/remove() to complete.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/uwb/hwa-rc.c
drivers/uwb/reset.c
drivers/uwb/umc-bus.c
drivers/uwb/whc-rc.c
include/linux/uwb.h