]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00178939 [mx6] usb host, msleep may be called in atomic context
authorTony LIU <junjie.liu@freescale.com>
Thu, 5 Apr 2012 06:11:13 +0000 (14:11 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:22 +0000 (08:34 +0200)
- 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>
arch/arm/mach-mx6/usb_dr.c
arch/arm/mach-mx6/usb_h1.c

index 3a8a3a7ec2428edbedd27381cf61d5100f0c04ed..24c8cb9c4d315cc2348d66fe2370ee8ae41039f9 100644 (file)
@@ -415,14 +415,14 @@ static void _host_platform_rh_resume(struct fsl_usb2_platform_data *pdata)
 
        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);
 }
 
index 4d9d1527a0b1413a7685e0eac3142f0318a73652..478ead40cf0df4f456b8e40a93c0542040e9ff49 100644 (file)
@@ -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);
 }