]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc3: gadget: update DCFG.NumP to max burst size
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 26 Apr 2016 07:49:07 +0000 (10:49 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Apr 2016 07:47:29 +0000 (10:47 +0300)
commit676e3497448177bdb1934cbc4402f921730a5864
tree608781fab70cfcb53fb9ac8fe13ad80afe1f82cc
parenta6ef3e02542a33fb705e6977221deb0292b27398
usb: dwc3: gadget: update DCFG.NumP to max burst size

NumP field of DCFG register is used on NumP field of
ACK TP header and it tells the host how many packets
an endpoint can receive before waiting for
synchronization.

Documentation says it should be set to anything
<=bMaxBurst. Interestingly, however, this setting is
not per-endpoint how it should be (different
endpoints could have different burst sizes), but
things seem to work okay right now.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c