]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01e891d223f93d1783ca0a2c572dd3a4c04c3363
tree96747e7e36a9ff35f186c1cb9e3f0bb8d4276d9c
parent60afb2e37b766e63cc2fe1feb05156b3f0a99894
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