]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: Check IP revision for GRXTHRCFG
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Fri, 16 Mar 2018 22:34:13 +0000 (15:34 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 22 Mar 2018 08:48:53 +0000 (10:48 +0200)
commit01b0e2cc7d89b6aa4084993634b3ea673caff4e8
tree5c7bf4c88ec102fc331108a464318f2c781e7c54
parent2fbc5bdc8fd1afa6d47223f6a4251f04c7d8fe7c
usb: dwc3: gadget: Check IP revision for GRXTHRCFG

DWC_usb31 controller has a different UsbRxPktCnt bit fields from
GRXTHRCFG register. Check for DWC_usb31 IP revision to read the
appropriate value.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c