Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-29 Thread Felipe Balbi
Hi, Jack Pham writes: >> Jack Pham writes: >> > On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: >> >> Some functions might want to have very, very long request queues. We >> >> can't make any assumptions about how many requests we *are* able to >> >> map, so instead of mapping req

Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-29 Thread Jack Pham
Hi Felipe, On Thu, Jun 29, 2017 at 08:48:17AM +0300, Felipe Balbi wrote: > Hi Jack, > > Jack Pham writes: > > On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: > >> Some functions might want to have very, very long request queues. We > >> can't make any assumptions about how many req

Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-28 Thread Felipe Balbi
Hi Jack, Jack Pham writes: > On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: >> Some functions might want to have very, very long request queues. We >> can't make any assumptions about how many requests we *are* able to >> map, so instead of mapping requests early, let's map them l

Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-28 Thread Jack Pham
Hi Felipe, On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: > Some functions might want to have very, very long request queues. We > can't make any assumptions about how many requests we *are* able to > map, so instead of mapping requests early, let's map them late. This > way, functi

[PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-05-17 Thread Felipe Balbi
Some functions might want to have very, very long request queues. We can't make any assumptions about how many requests we *are* able to map, so instead of mapping requests early, let's map them late. This way, functions can queue as many requests as they'd like but we won't take DMA resources unti