]> 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)
commit490cd8fb72aaae56c4be452da9cf96eb456eb918
tree96747e7e36a9ff35f186c1cb9e3f0bb8d4276d9c
parent37f0af068f557327d377866c7ebaa33bf78a0d16
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