summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2011-11-03 11:37:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-14 13:47:48 -0800
commitf69e3120df82391a0ee8118e0a156239a06b2afb (patch)
treefbafe9cb22849cf5431adc96cf2cf2872314f941 /drivers/usb/core
parent97ff22ee3b4cb3a334f7385e269773141aed702f (diff)
downloadtalos-op-linux-f69e3120df82391a0ee8118e0a156239a06b2afb.tar.gz
talos-op-linux-f69e3120df82391a0ee8118e0a156239a06b2afb.zip
USB: XHCI: resume root hubs when the controller resumes
This patch (as1494) fixes a problem in xhci-hcd's resume routine. When the controller is runtime-resumed, this can only mean that one of the two root hubs has made a wakeup request and therefore needs to be resumed as well. Rather than try to determine which root hub requires attention (which might be difficult in the case where a new non-SuperSpeed device has been plugged in), the patch simply resumes both root hubs. Without this change, there is a race: The controller might be put back to sleep before it can activate its IRQ line, and the wakeup condition might never get handled. The patch also simplifies the logic in xhci_resume a little, combining some repeated flag settings into a single pair of statements. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable <stable@vger.kernel.org> Tested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud