OSDN Git Service

usb: musb: cppi41: do not call udelay()
authorFelipe Balbi <balbi@ti.com>
Fri, 27 Feb 2015 19:22:27 +0000 (13:22 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:32 +0000 (15:33 -0500)
according to comment in code, HS completion
will happen pretty fast, instead of using
udelay(), let's just busy loop and drop a
cpu_relax() where udelay() was.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c

index 4407f30..9dc45a4 100644 (file)
@@ -287,7 +287,7 @@ static void cppi41_dma_callback(void *private_data)
                        wait--;
                        if (!wait)
                                break;
-                       udelay(1);
+                       cpu_relax();
                } while (1);
        }
        list_add_tail(&cppi41_channel->tx_check,