mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
usb: host: tegra: Fix enumeration after lp0
Fix enumeration when a device is plugged while the host is in lp0 state. Change-Id: Idb491f347172daac8a5603ed098b422b15cc534e Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
@@ -259,8 +259,12 @@ static int tegra_usb_resume(struct usb_hcd *hcd)
|
||||
set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
|
||||
tegra_ehci_power_up(ehci_to_hcd(tegra->ehci));
|
||||
|
||||
if (!context->valid)
|
||||
if (!context->valid) {
|
||||
/* Wait for the phy to detect new devices
|
||||
* before we restart the controller */
|
||||
msleep(10);
|
||||
goto restart;
|
||||
}
|
||||
|
||||
/* Restore register context */
|
||||
writel(TEGRA_USB_USBMODE_HOST, &hw->reserved[19]);
|
||||
|
||||
Reference in New Issue
Block a user