On Sat, Jun 25, 2016 at 08:38:58AM +0000, Stefan Wahren wrote:
> Since there is no dependency from this busy wait in the reset ISR
> we could remove it.
> 
> Signed-off-by: Stefan Wahren <[email protected]>
> ---
>  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 */
> -

I think this wait is needed, you can add timeout (100ms) as
an improvement.

-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to