mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
usb: host: tegra: Fix resuming low speed devices from lp0
Change-Id: I9576853bbe0fae52c5c2cfab26ce8f2017077d4e Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
parent
d72d507ae9
commit
b3328e4c67
|
|
@ -265,7 +265,7 @@ static int tegra_usb_resume(struct usb_hcd *hcd)
|
|||
goto restart;
|
||||
}
|
||||
|
||||
tegra_ehci_phy_restore_start(tegra->phy);
|
||||
tegra_ehci_phy_restore_start(tegra->phy, context->port_speed);
|
||||
|
||||
/* Check if the phy resume from LP0. When the phy resume from LP0
|
||||
* USB register will be reset. */
|
||||
|
|
@ -341,10 +341,13 @@ static int tegra_usb_resume(struct usb_hcd *hcd)
|
|||
}
|
||||
|
||||
tegra_ehci_phy_restore_end(tegra->phy);
|
||||
|
||||
return 0;
|
||||
|
||||
restart:
|
||||
tegra_ehci_phy_restore_end(tegra->phy);
|
||||
if (context->valid)
|
||||
tegra_ehci_phy_restore_end(tegra->phy);
|
||||
|
||||
tegra_ehci_restart(hcd);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user