musb:host: removing warning message while unable to flush txfifo
authorRavi B <ravibabu@ti.com>
Wed, 12 Oct 2011 11:11:10 +0000 (16:41 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:32 +0000 (00:44 +0530)
changing the warning statement to debug when the tx fifo
was unable to flush.

Signed-off-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/usb/musb/musb_host.c

index c33c9de2686fe763358064236f961c883baad82a..5b1f74214623ac3f467090418c54f1235eb21338 100644 (file)
@@ -144,10 +144,11 @@ static void musb_h_tx_flush_fifo(struct musb_hw_ep *ep)
                csr |= MUSB_TXCSR_FLUSHFIFO;
                musb_writew(epio, MUSB_TXCSR, csr);
                csr = musb_readw(epio, MUSB_TXCSR);
-               if (WARN(retries-- < 1,
-                               "Could not flush host TX%d fifo: csr: %04x\n",
-                               ep->epnum, csr))
+               if (retries-- < 1) {
+                       dev_dbg(musb->controller, "Could not flush host TX%d fifo: csr: %04x\n",
+                               ep->epnum, csr);
                        return;
+               }
                mdelay(1);
        }
 }