summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-arc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2011-03-24 14:25:45 +0800
committerPeter Chen <peter.chen@freescale.com>2011-03-24 15:40:26 +0800
commit0d8444e23e422135ce0caa8b95de1e07052706c7 (patch)
treea9e212f3aee0d57cc14f76efc0b11e848deaacde /drivers/usb/host/ehci-arc.c
parentbc676214b92db468c7b72dc495312809dbfc37bf (diff)
ENGR00141092 usb: fix some tiny bugs for usbrel_imx_2.6.35_11.03.00
For android system, the gadget driver is built in, when the usb device is on otg port, the udc suspended counter will be error at the situation. This patch fix it, if this situation is met, the udc suspended counter will be not added. Using A VBus Valid to judge whether the usb cable is connected, as some boards' vbus may higher than 0.8v(B Session Valid) Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers/usb/host/ehci-arc.c')
-rw-r--r--drivers/usb/host/ehci-arc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index cf932e3b5466..e54eef85237c 100644
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2005 MontaVista Software
- * Copyright (C) 2011 Freescale Semiconductor
+ * Copyright (C) 2011 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -33,6 +33,8 @@ extern int usb_host_wakeup_irq(struct device *wkup_dev);
extern void usb_host_set_wakeup(struct device *wkup_dev, bool para);
static void fsl_usb_lowpower_mode(struct fsl_usb2_platform_data *pdata, bool enable)
{
+ pdata->lowpower = enable;
+
if (enable) {
if (pdata->phy_lowpower_suspend)
pdata->phy_lowpower_suspend(pdata, true);
@@ -40,7 +42,6 @@ static void fsl_usb_lowpower_mode(struct fsl_usb2_platform_data *pdata, bool ena
if (pdata->phy_lowpower_suspend)
pdata->phy_lowpower_suspend(pdata, false);
}
- pdata->lowpower = enable;
}
static void fsl_usb_clk_gate(struct fsl_usb2_platform_data *pdata, bool enable)