-
由 Wu Liang feng 提交于
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: NWu Liang feng <wulf@rock-chips.com> Reviewed-by: NJulius Werner <jwerner@google.com> Reviewed-by: NDoug Anderson <dianders@google.com> Reviewed-by: NTomasz Figa <tfiga@google.com> Reviewed-by: NPawel Osciak <posciak@google.com> Reviewed-by: NSonny Rao <sonnyrao@google.com> Acked-by: NAlan Stern <stern@rowland.harvard.edu> Tested-by: NDoug Anderson <dianders@google.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
314b41b1