usb: dwc2: Read GNPTXFSIZ when in forced HOST mode.
authorDoug Anderson <dianders@chromium.org>
Thu, 7 Aug 2014 19:48:11 +0000 (12:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:41:14 +0000 (15:41 -0700)
commit2867c05d4cb1638217522fb270f1a0a5794a10b9
tree9ae11505d33487be99dec5a53b559d4ef30e394e
parent9508314655ba3f730c6290f5a7683e3a0c9e351d
usb: dwc2: Read GNPTXFSIZ when in forced HOST mode.

The documentation for GNPTXFSIZ says that "For host mode, this field
is always valid."  Since we're already switching to host mode for
HPTXFSIZ, let's also read GNPTXFSIZ in host mode.

On an rk3288 SoC, without this change we see this at bootup:
  dwc2 ff580000.usb: gnptxfsiz=00100400
  dwc2 ff580000.usb: 128 invalid for host_nperio_tx_fifo_size. Check HW configuration.

After this change we see:
  dwc2 ff580000.usb: gnptxfsiz=04000400

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core.c