Andiry Xu f370b9968a xHCI: keep track of ports being resumed and indicate in hub_status_data
This commit adds a bit-array to xhci bus_state for keeping track of
which ports are undergoing a resume transition. If any of the bits
are set when xhci_hub_status_data() is called, the routine will return
a non-zero value even if no ports have any status changes pending.
This will allow usbcore to handle races between root-hub suspend and
port wakeup.

This patch should be backported to kernels as old as 3.4, that contain
the commit 879d38e6bc36d73b0ac40ec9b0d839fda9fa8b1a "USB: fix race
between root-hub suspend and remote wakeup".

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: stable@vger.kernel.org
2012-05-03 13:10:17 -07:00
..
2012-04-22 15:25:26 -07:00
2011-12-08 09:38:53 -08:00
2012-05-01 21:33:35 -07:00
2011-11-26 19:46:48 -08:00
2011-10-18 13:51:34 -07:00
2012-04-18 13:57:26 -07:00
2011-03-31 11:26:23 -03:00
2012-02-13 14:32:34 -08:00
2011-03-31 11:26:23 -03:00
2012-05-01 13:36:18 -04:00
2012-04-18 13:43:30 -07:00
2011-09-18 01:39:36 -07:00
2012-05-01 21:33:37 -07:00
2011-11-18 10:51:00 -08:00
2012-05-01 13:36:18 -04:00
2011-09-18 01:39:36 -07:00
2012-04-27 11:24:43 -07:00
2011-11-18 10:51:00 -08:00
2012-04-27 11:24:44 -07:00
2011-11-18 10:51:00 -08:00
2012-04-27 11:24:45 -07:00