On Wednesday, August 5, 2015 at 12:26:18 AM UTC+3, Hans de Goede wrote:
>
> For some unclear reason sometimes we get VBus errors in host-only mode, 
> even though we do not have any vbus-detection then. Ignore these. 
>
> Signed-off-by: Hans de Goede <[email protected] <javascript:>> 
> --- 
>  drivers/usb/musb/sunxi.c | 4 ++++ 
>  1 file changed, 4 insertions(+) 
>
> diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c 
> index f9f6304..34ce5df 100644 
> --- a/drivers/usb/musb/sunxi.c 
> +++ b/drivers/usb/musb/sunxi.c 
> @@ -194,6 +194,10 @@ static irqreturn_t sunxi_musb_interrupt(int irq, void 
> *__hci) 
>                  musb_writeb(musb->mregs, MUSB_FADDR, 0); 
>          } 
>   
> +        /*  Ignore Vbus errors when in host only mode */ 
> +        if (musb->port_mode == MUSB_PORT_MODE_HOST) 
> +                musb->int_usb &= ~MUSB_INTR_VBUSERROR; 
> + 
>          musb->int_tx = readw(musb->mregs + SUNXI_MUSB_INTRTX); 
>          if (musb->int_tx) 
>                  writew(musb->int_tx, musb->mregs + SUNXI_MUSB_INTRTX); 
> -- 
> 2.4.3 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to