044-Fix-Max3353-otg-toggle-bug.patch 968 B

1234567891011121314151617181920212223242526
  1. From ff4fb46407f3aee09432a897822e4934d5c6b3ff Mon Sep 17 00:00:00 2001
  2. From: Jingchang Lu <[email protected]>
  3. Date: Thu, 4 Aug 2011 09:59:54 +0800
  4. Subject: [PATCH 44/52] Fix Max3353 otg toggle bug
  5. The max3353 charge pump work with SOC FS/LS transceiver,
  6. during dual role toggle, the root hub port should be powered
  7. off to disable port status detection when suspend host mode,
  8. otherwise it won't work properly when switch to host mode.
  9. Signed-off-by: Jingchang Lu <[email protected]>
  10. ---
  11. drivers/usb/host/ehci-fsl.c | 2 +-
  12. 1 files changed, 1 insertions(+), 1 deletions(-)
  13. --- a/drivers/usb/host/ehci-fsl.c
  14. +++ b/drivers/usb/host/ehci-fsl.c
  15. @@ -528,7 +528,7 @@ static int ehci_fsl_suspend(struct devic
  16. pdata->pm_portsc &= cpu_to_hc32(ehci, ~PORT_RWC_BITS);
  17. pdata->suspended = 1;
  18. -#if 0
  19. +#if defined(CONFIG_USB_M5441X_MAX3353_FSLS)
  20. /* clear PP to cut power to the port */
  21. tmp = ehci_readl(ehci, &ehci->regs->port_status[0]);
  22. tmp &= ~PORT_POWER;