Change-Id: I9576853bbe0fae52c5c2cfab26ce8f2017077d4e
Signed-off-by: Benoit Goby <benoit@android.com>
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. */
}
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;
}