diff options
author | Zhang Yan <b34916@freescale.com> | 2010-12-17 17:23:38 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2010-12-20 16:00:01 +0800 |
commit | 20655bab3804a9509cabf8f416c1aee25ae48a41 (patch) | |
tree | d7c65299462ad39fffb8b0320d83ef2a76d9e180 | |
parent | f40d1d1be00cb059687a854b61a3fcf1d7a8609c (diff) |
ENGR00137080 USB: fix usb device can't work on MX53 board
Set USB VBUS on when host only controller probed. Only DR OTG host
doesn't set vbus on when platform driver probed.
Signed-off-by: Zhang Yan <b34916@freescale.com>
-rw-r--r-- | drivers/usb/host/ehci-arc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c index 615e76572eed..bc719dfea7bd 100644 --- a/drivers/usb/host/ehci-arc.c +++ b/drivers/usb/host/ehci-arc.c @@ -240,9 +240,6 @@ int usb_hcd_fsl_probe(const struct hc_driver *driver, if (retval != 0) goto err5; -#if (!defined CONFIG_USB_OTG) - fsl_platform_set_vbus_power(pdata, 1); -#endif if (pdata->operating_mode == FSL_USB2_DR_OTG) { struct ehci_hcd *ehci = hcd_to_ehci(hcd); @@ -260,7 +257,8 @@ int usb_hcd_fsl_probe(const struct hc_driver *driver, retval = otg_set_host(ehci->transceiver, &ehci_to_hcd(ehci)->self); if (retval) otg_put_transceiver(ehci->transceiver); - } + } else if (pdata->operating_mode == FSL_USB2_MPH_HOST) + fsl_platform_set_vbus_power(pdata, 1); if (pdata->suspended) { pdata->suspended = 0; |