UPSTREAM: usb: dwc3: gadget: initialize NUMP based on RxFIFO Size
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 13 May 2016 11:09:59 +0000 (14:09 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit548aa8502d99904aefe47fba98f84b500c0c0188
tree21e4c8e393d23db7cdd0580d98629b488e3571e6
parentd8117f882679cda73e5684f835b35fedbeb27344
UPSTREAM: usb: dwc3: gadget: initialize NUMP based on RxFIFO Size

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.

Change-Id: I03b0290e19ed204047ff35fdf7383f57bf3566df
Reported-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 4e99472bc10bda9906526d725ff6d5f27b4ddca1)
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c