Re: [PATCH 10/22] usb: dwc3: gadget: initialize NUMP based on RxFIFO Size

2016-05-19 Thread Felipe Balbi
Hi, John Youn writes: >> @@ -1589,6 +1578,46 @@ static void dwc3_gadget_disable_irq(struct dwc3 *dwc) >> static irqreturn_t dwc3_interrupt(int irq, void *_dwc); >> static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc); >> >> +/** >> + * dwc3_gadget_setup_nump - Calculate and initiali

Re: [PATCH 10/22] usb: dwc3: gadget: initialize NUMP based on RxFIFO Size

2016-05-18 Thread John Youn
On 5/18/2016 1:35 AM, Felipe Balbi wrote: > Instead of using burst size to configure NUMP, we > should be using RxFIFO Size instead. DWC3 is smart > enough to know that it shouldn't burst in case burst > size is 0. > > Reported-by: John Youn > Signed-off-by: Felipe Balbi > --- > drivers/usb/dwc

[PATCH 10/22] usb: dwc3: gadget: initialize NUMP based on RxFIFO Size

2016-05-18 Thread Felipe Balbi
Instead of using burst size to configure NUMP, we should be using RxFIFO Size instead. DWC3 is smart enough to know that it shouldn't burst in case burst size is 0. Reported-by: John Youn Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.h | 12 +++ drivers/usb/dwc3/gadget.c | 53