Guest User

Untitled

a guest
Nov 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. [18:37:13] Milinevskyy Dmytro: diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
  2. index 64385a3..df62af7 100644
  3. --- a/drivers/usb/host/ehci-tegra.c
  4. +++ b/drivers/usb/host/ehci-tegra.c
  5. @@ -466,7 +466,11 @@ static int tegra_usb_resume(struct usb_hcd *hcd, bool is_dpd)
  6. if (port_speed > TEGRA_USB_PHY_PORT_SPEED_HIGH) {
  7. /* Wait for the phy to detect new devices
  8. * before we restart the controller */
  9. - msleep(10);
  10. + // msleep(10);
  11. + int loops = 10;
  12. + while (loops--) {
  13. + udelay(1000);
  14. + }
  15.  
  16. if (hsic) {
  17. val = readl(&hw->port_status[0]);
  18. @@ -1011,8 +1015,13 @@ static int tegra_ehci_suspend(struct platform_device *pdev, pm_message_t state)
  19. if ((tegra->bus_suspended) && (tegra->power_down_on_bus_suspend))
  20. return 0;
  21.  
  22. - if (time_before(jiffies, tegra->ehci->next_statechange))
  23. - msleep(10);
  24. + if (time_before(jiffies, tegra->ehci->next_statechange)) {
  25. + //msleep(10);
  26. + int loops = 10;
  27. + while (loops--) {
  28. + udelay(1000);
  29. + }
  30. + }
  31.  
  32. return tegra_usb_suspend(hcd, true);
  33. }
Add Comment
Please, Sign In to add comment