summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/usb_h1.c
diff options
context:
space:
mode:
authorTony LIU <junjie.liu@freescale.com>2012-04-05 14:11:13 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:34:18 +0800
commitf4869c86e630023f84294ef86f198cb5e5bf2d4d (patch)
tree30c0c126f4ea205df1ed2de2fdd20370029f5814 /arch/arm/mach-mx6/usb_h1.c
parenta92f6b25a5020235b3ff7e81e66840488df5a49a (diff)
ENGR00178939 [mx6] usb host, msleep may be called in atomic context
- change msleep(1) to udelay(500) - msleep may be called in atomic context, which will cause warning message Signed-off-by: Tony LIU <junjie.liu@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/usb_h1.c')
-rw-r--r--arch/arm/mach-mx6/usb_h1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/usb_h1.c b/arch/arm/mach-mx6/usb_h1.c
index 4d9d1527a0b1..478ead40cf0d 100644
--- a/arch/arm/mach-mx6/usb_h1.c
+++ b/arch/arm/mach-mx6/usb_h1.c
@@ -243,14 +243,14 @@ static void usbh1_platform_rh_resume(struct fsl_usb2_platform_data *pdata)
while ((UH1_PORTSC1 & PORTSC_PORT_FORCE_RESUME)
&& (index < 1000)) {
- msleep(1);
+ udelay(500);
index++;
}
if (index >= 1000)
printk(KERN_INFO "%s big error\n", __func__);
- msleep(1);
+ udelay(500);
fsl_platform_h1_set_usb_phy_dis(pdata, 1);
}