xhci: Don't submit commands when the host is dead.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 23 May 2011 23:41:17 +0000 (16:41 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 25 May 2011 22:23:35 +0000 (15:23 -0700)
commitfe6c6c13d8dcb32398eef143e2e8efc3fb4019bf
tree1e340233ee7136051a1dd4ec3d3b30327e9196d1
parent0714a57c6865f31ed3366e5abdfae7da580d41d2
xhci: Don't submit commands when the host is dead.

When the xHCI host controller dies, the USB core may attempt to reset the
devices to their default configuration before disconnecting them.  This
causes calls into the xHCI bandwidth allocation functions.  Don't allow
those functions to submit commands or work on xHCI structures if the host
controller is marked as dying.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c