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)
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>

No differences found