[PATCH RFC 3/4] usb: chipidea: udc: Avoid busy wait in reset ISR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since there is no dependency from this busy wait in the reset ISR
we could remove it.

Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
---
 drivers/usb/chipidea/udc.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index fdcdcc6..bb51ae8 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -323,10 +323,6 @@ static int hw_usb_reset(struct ci_hdrc *ci)
 	/* clear complete status */
 	hw_write(ci, OP_ENDPTCOMPLETE,  0,  0);
 
-	/* wait until all bits cleared */
-	while (hw_read(ci, OP_ENDPTPRIME, ~0))
-		udelay(10);             /* not RTOS friendly */
-
 	/* reset all endpoints ? */
 
 	/* reset internal status and wait for further instructions
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux