summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2013-06-18 13:25:00 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-06-03 23:01:01 -0500
commit5227a4f8e50ec66f8803ecd58477744791e6091a (patch)
tree0a24375ef44d25583bdcbb451d155d240e8cbb57 /arch/arm
parenta4aa202346c115a7cf3d5cbcc05706b56741de43 (diff)
ENGR00262868 msl-mx6: usb: do not enable id wakeup interrupt for non-otg
ID wakeup interrupt is only needed at OTG config. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mx6/usb_dr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/usb_dr.c b/arch/arm/mach-mx6/usb_dr.c
index 8698b5aa7767..e6496bc9cd50 100644
--- a/arch/arm/mach-mx6/usb_dr.c
+++ b/arch/arm/mach-mx6/usb_dr.c
@@ -519,6 +519,7 @@ static void _host_wakeup_enable(struct fsl_usb2_platform_data *pdata, bool enabl
{
void __iomem *phy_reg = MX6_IO_ADDRESS(USB_PHY0_BASE_ADDR);
__wakeup_irq_enable(pdata, enable, ENABLED_BY_HOST);
+#ifdef CONFIG_USB_OTG
if (enable) {
pr_debug("host wakeup enable\n");
USB_OTG_CTRL |= UCTRL_WKUP_ID_EN;
@@ -532,6 +533,7 @@ static void _host_wakeup_enable(struct fsl_usb2_platform_data *pdata, bool enabl
udelay(100);
}
pr_debug("the otgsc is 0x%x, usbsts is 0x%x, portsc is 0x%x, otgctrl: 0x%x\n", UOG_OTGSC, UOG_USBSTS, UOG_PORTSC1, USB_OTG_CTRL);
+#endif
}
static enum usb_wakeup_event _is_host_wakeup(struct fsl_usb2_platform_data *pdata)