usb: dwc3: Get MDWIDTH for DWC_usb32
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sun, 12 Apr 2020 02:20:07 +0000 (19:20 -0700)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:41 +0000 (11:09 +0300)
commit4244ba02edb850f880fafe178abccd9231cb0e4a
tree80ddd28d2ac213e363ca822b6bc4b7dda7f829be
parent9af21dd6faeba593fb47f5cceaf69b1e5a3ff95f
usb: dwc3: Get MDWIDTH for DWC_usb32

DWC_usb32 supports MDWIDTH value larger than 255 and up to 1023. The
field HWPARAMS6[9:8] stores the upper 2-bit values of the DWC_usb32's
MDWIDTH. Check that parameter and properly get the MDWIDTH for
DWC_usb32.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c