- 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>
while ((UOG_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_otg_set_usb_phy_dis(pdata, 1);
}
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);
}