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