UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit653af1256f78db3f690739c4f064f1332338a371
tree9a244ab4cb9a2633378e443534895628d09c6b8a
parent434c7e979e9979427df5b5d64a5eac22bb36e5c6
UPSTREAM: 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.

Change-Id: I2fd8e68f88b15e64fc06770ffdc6376fcb4cff62
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 676e3497448177bdb1934cbc4402f921730a5864)

Conflicts:
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c