Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [18:37:13] Milinevskyy Dmytro: diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
- index 64385a3..df62af7 100644
- --- a/drivers/usb/host/ehci-tegra.c
- +++ b/drivers/usb/host/ehci-tegra.c
- @@ -466,7 +466,11 @@ static int tegra_usb_resume(struct usb_hcd *hcd, bool is_dpd)
- if (port_speed > TEGRA_USB_PHY_PORT_SPEED_HIGH) {
- /* Wait for the phy to detect new devices
- * before we restart the controller */
- - msleep(10);
- + // msleep(10);
- + int loops = 10;
- + while (loops--) {
- + udelay(1000);
- + }
- if (hsic) {
- val = readl(&hw->port_status[0]);
- @@ -1011,8 +1015,13 @@ static int tegra_ehci_suspend(struct platform_device *pdev, pm_message_t state)
- if ((tegra->bus_suspended) && (tegra->power_down_on_bus_suspend))
- return 0;
- - if (time_before(jiffies, tegra->ehci->next_statechange))
- - msleep(10);
- + if (time_before(jiffies, tegra->ehci->next_statechange)) {
- + //msleep(10);
- + int loops = 10;
- + while (loops--) {
- + udelay(1000);
- + }
- + }
- return tegra_usb_suspend(hcd, true);
- }
Add Comment
Please, Sign In to add comment