UHCI: hub_status_data should indicate if ports are resuming
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 3 Apr 2012 19:24:43 +0000 (15:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 22:43:21 +0000 (15:43 -0700)
commitb446b96fd11b69b7c4ecd47d869cff9094fd8802
tree9d8720826697457add5c6674428f64c0f21a1cc1
parenta448e4dc25303fe551e4dafe16c8c7c34f1b9d82
UHCI: hub_status_data should indicate if ports are resuming

This patch (as1538) causes uhci_hub_status_data() to return a nonzero
value when any port is undergoing a resume transition while the root
hub is suspended.  This will allow usbcore to handle races between
root-hub suspend and port wakeup.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-hub.c