Roger Quadros 9fa733f24b usb: xhci: Fix suspend/resume when used with OTG core
In the OTG case, the controller might not yet have been
added or is removed before the system suspends.

Assign xhci->main_hcd during probe to prevent NULL
pointer de-reference in xhci_suspend/resume().

Use the hcd->state flag to check if HCD is halted
and if that is so do nothing for xhci_suspend/resume().

[Only for xhci-plat devices, pci devices need it in gen_setup -Mathias]
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-31 15:45:31 +09:00
..
2014-12-14 16:10:09 -08:00
2015-04-03 19:03:19 +02:00
2014-11-07 09:02:38 -08:00
2014-11-07 09:02:38 -08:00
2014-11-03 15:26:15 -08:00
2015-04-03 19:03:18 +02:00
2015-04-03 19:03:18 +02:00
2015-04-03 19:03:18 +02:00
2014-12-14 16:10:09 -08:00
2015-04-03 19:03:17 +02:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-01-25 21:01:13 +08:00
2014-12-14 16:10:09 -08:00
2015-04-03 19:03:16 +02:00
2015-05-31 15:45:30 +09:00