public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH]usb: gadget: musb: Fix the DMA transfer error for Isochronous transfers
       [not found] <001401d85247$2c66cd40$853467c0$@timesintelli.com>
@ 2022-04-20  7:08 ` paul.elder
  0 siblings, 0 replies; only message in thread
From: paul.elder @ 2022-04-20  7:08 UTC (permalink / raw)
  To: Haifeng; +Cc: linux-usb, linux-kernel

Hello Haifeng,

On Sun, Apr 17, 2022 at 06:37:44PM +0800, Haifeng wrote:
> For Isochronous transfer mode, the ISO bit should be kept in CSR.
> Otherwise, the DMA transfer will be terminated unexpected since
> the ISO bit is missed once the last packet is a short packet.
> 
> Signed-off-by: Haifeng Li <haifeng.li@timesintelli.com>

Looks good to me.

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>

> ---
>  drivers/usb/musb/musb_gadget.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
> index 51274b87f46c..b99faf627dce 100644
> --- a/drivers/usb/musb/musb_gadget.c
> +++ b/drivers/usb/musb/musb_gadget.c
> @@ -482,7 +482,7 @@ void musb_g_tx(struct musb *musb, u8 epnum)
>  			if (csr & MUSB_TXCSR_TXPKTRDY)
>  				return;
>  
> -			musb_writew(epio, MUSB_TXCSR, MUSB_TXCSR_MODE
> +			musb_writew(epio, MUSB_TXCSR, csr | MUSB_TXCSR_MODE
>  					| MUSB_TXCSR_TXPKTRDY);
>  			request->zero = 0;
>  		}
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-20  7:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <001401d85247$2c66cd40$853467c0$@timesintelli.com>
2022-04-20  7:08 ` [PATCH]usb: gadget: musb: Fix the DMA transfer error for Isochronous transfers paul.elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox