Re: [PATCH] usb: dwc3: gadget: delay unmap of bounced requests

2017-04-10 Thread Felipe Balbi
Hi, Sekhar Nori writes: >> Roger Quadros writes: From: Janusz Dziedzic In the case of bounced ep0 requests, we must delay DMA operation until after ->complete() otherwise we might overwrite contents of req->buf. This caused problems with RNDIS gadget. Si

Re: [PATCH] usb: dwc3: gadget: delay unmap of bounced requests

2017-04-10 Thread Sekhar Nori
Hi Felipe, On Monday 10 April 2017 05:53 PM, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> From: Janusz Dziedzic >>> >>> In the case of bounced ep0 requests, we must delay DMA operation until >>> after ->complete() otherwise we might overwrite contents of req->buf. >>> >>> This cau

Re: [PATCH] usb: dwc3: gadget: delay unmap of bounced requests

2017-04-10 Thread Felipe Balbi
Hi, Roger Quadros writes: >> From: Janusz Dziedzic >> >> In the case of bounced ep0 requests, we must delay DMA operation until >> after ->complete() otherwise we might overwrite contents of req->buf. >> >> This caused problems with RNDIS gadget. >> >> Signed-off-by: Janusz Dziedzic >> Sign

Re: [PATCH] usb: dwc3: gadget: delay unmap of bounced requests

2017-04-10 Thread Roger Quadros
Hi Felipe, On 13/03/17 16:38, Felipe Balbi wrote: > From: Janusz Dziedzic > > In the case of bounced ep0 requests, we must delay DMA operation until > after ->complete() otherwise we might overwrite contents of req->buf. > > This caused problems with RNDIS gadget. > > Signed-off-by: Janusz Dzi

[PATCH] usb: dwc3: gadget: delay unmap of bounced requests

2017-03-13 Thread Felipe Balbi
From: Janusz Dziedzic In the case of bounced ep0 requests, we must delay DMA operation until after ->complete() otherwise we might overwrite contents of req->buf. This caused problems with RNDIS gadget. Signed-off-by: Janusz Dziedzic Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/gadget.c