android_kernel_msm-6.1_noth.../include/linux/usb
Wu Liang feng 314b41b16a USB: ehci-platform: Support ehci reset after resume quirk
The Rockchip rk3288 EHCI controller doesn't properly detect
the case when a device is removed during suspend. Specifically,
when usb resume from suspend, the EHCI controller maintaining
the USB state (FLAG_CF is 1, Current Connect Status is 1),
but a USB device (like a USB camera on rk3288) may have been
disconnected actually.

Let's add a quirk to force ehci to go into the
usb_root_hub_lost_power() path and reset after resume.
This should generally reset the whole controller and all
ports and initialize everything cleanly again, and bring
the devices back up.

As part of this, rename the "hibernation" paramter of
ehci_resume() to force_reset since hibernation is simply
another case where we can't trust the autodetected status
and need to force a reset of devices.

Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Reviewed-by: Julius Werner <jwerner@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
Reviewed-by: Tomasz Figa <tfiga@google.com>
Reviewed-by: Pawel Osciak <posciak@google.com>
Reviewed-by: Sonny Rao <sonnyrao@google.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Doug Anderson <dianders@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-09 12:25:54 -08:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h
c67x00.h
cdc-wdm.h
cdc_ncm.h net: cdc_ncm: fix 64bit division build error 2014-05-21 01:56:06 -04:00
ch9.h
chipidea.h usb: chipidea: remove flag CI_HDRC_REQUIRE_TRANSCEIVER 2014-11-26 09:28:12 -08:00
composite.h usb: gadget: configfs: add suspend/resume 2014-11-03 10:00:59 -06:00
ehci-dbgp.h usb: Remove __init from early_dbgp_init() prototype 2014-11-07 09:02:38 -08:00
ehci_def.h usb: Create separate header for ehci-dbgp 2014-11-07 09:02:37 -08:00
ehci_pdriver.h USB: ehci-platform: Support ehci reset after resume quirk 2015-01-09 12:25:54 -08:00
ezusb.h
functionfs.h
g_hid.h
gadget.h usb: gadget: udc: core: prepend udc_attach_driver with usb_ 2014-11-03 10:01:16 -06:00
gadget_configfs.h
gpio_vbus.h
hcd.h usb: core: buffer: smallest buffer should start at ARCH_DMA_MINALIGN 2015-01-09 10:21:31 -08:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
msm_hsusb.h usb: phy: msm: Vote for corner of VDD CX instead of voltage of VDD CX 2014-04-30 11:29:58 -05:00
msm_hsusb_hw.h usb: phy: msm: Select secondary PHY via TCSR 2014-04-30 11:29:51 -05:00
musb-omap.h
musb-ux500.h
musb.h
net2280.h
of.h usb: common: add API to get if the platform supports TPL 2014-09-23 21:28:41 -07:00
ohci_pdriver.h
otg-fsm.h
otg.h usb: add support to the generic PHY framework in OTG 2014-11-03 10:01:25 -06:00
phy.h usb: phy: introduce usb_phy_set_event interface 2014-11-21 09:05:45 -06:00
phy_companion.h
quirks.h USB: quirks.h: use BIT() 2014-09-23 22:23:55 -07:00
r8a66597.h
renesas_usbhs.h usb: renesas_usbhs: expand USB-DMAC channels for R-Car Gen2 2014-11-12 09:11:31 -06:00
rndis_host.h
samsung_usb_phy.h
serial.h USB: serial: make bulk_out_size a lower limit 2014-03-12 12:44:49 -07:00
sl811.h
storage.h
tegra_usb_phy.h
tilegx.h
uas.h uas: Pack iu struct definitions 2014-03-04 15:38:11 -08:00
ulpi.h
usb338x.h usb: gadget: net2280: Add support for PLX USB338X 2014-06-30 12:33:30 -05:00
usb_phy_generic.h usb: phy: generic: switch over to IS_ENABLED() 2014-04-21 14:07:25 -05:00
usbnet.h usbnet: add a callback for set_rx_mode 2014-10-28 17:26:19 -04:00
wusb-wa.h
wusb.h
xhci_pdriver.h xhci: Platform: Set xhci lpm support quirk based on platform data 2014-07-09 15:41:34 -07:00