USB: xhci: Wait for host to start running.
commitcf86414c11c5654ce50a5b476ce00fb4b6db46d4
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 24 May 2010 20:25:21 +0000 (24 13:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:48 +0000 (5 11:22 -0700)
tree6c98bce688e8970d2649dcc96836609cfe7e9d9f
parent280947b67d675a885b97857a93adaf97970a02a4
USB: xhci: Wait for host to start running.

commit ed07453fd356025cc25272629e982f5e4607632c upstream.

When the run bit is set in the xHCI command register, it may take a few
microseconds for the host to start running.  We cannot ring any doorbells
until the host is actually running, so wait until the status register says
the host is running.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Shinya Saito <shinya.saito.sx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci.c