usb/xhci: release xhci->lock during turning on/off usb port's acpi power resource...
authorLan Tianyu <tianyu.lan@intel.com>
Mon, 15 Oct 2012 07:38:34 +0000 (15:38 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 22 Oct 2012 20:26:48 +0000 (13:26 -0700)
commit170ed807340b4db0a5e010c2e4da43cf5a2c9a29
tree96747e7e36a9ff35f186c1cb9e3f0bb8d4276d9c
parent3b6054da68f9b0d5ed6a7ed0f42a79e61904352c
usb/xhci: release xhci->lock during turning on/off usb port's acpi power resource and checking the existence of port's power resource

When setting usb port's acpi power resource, there will be some xhci hub requests.
This will cause dead lock since xhci->lock has been held before setting acpi power
resource in the xhci_hub_control(). The usb_acpi_power_manageable() function might
fall into sleep so release xhci->lock before invoking it.

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