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 4407f30d0b86c05404a35a7ce40942d258bef0eb..9dc45a4a9fa83f2501ec75b196d1f38bd164c28c 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,