This series addresses a couple of FIFO issues in dwc2.

The first it properly configures the GDIFIFOCFG registers in
host/gadget mode.

Next it configures the TX FIFOs to default values in gadget mode.
These values should work for all cores. The old constant values were
incorrect in some cases depending on the core configuration.

These value may still be overridden on a per-platform basis and we add
checks to make sure that overridden values are consistent with the
hardware capabilities and fall-back to defaults if so.

Test on Synopsys HAPS core version 3.30a.

Appreciate any Tested-by's on other platforms.

This series depends on the latest dwc2 patches for next and 4.10-rc5
[1] which you can find applied to my git tree for convenience [2].

Regards,
John

[1] https://www.spinics.net/lists/linux-usb/msg152258.html
[2] https://github.com/synopsys-usb/linux.git


Sevak Arakelyan (4):
  usb: dwc2: gadget: Set GDFIFOCFG
  usb: dwc2: host: Correct snpsid checking for GDFIFOCFG
  usb: dwc2: gadget: Set TX FIFO depths to calculated defaults
  usb: dwc2: gadget: Add checking for g-tx-fifo-size parameter

 drivers/usb/dwc2/core.h   | 17 +++++----
 drivers/usb/dwc2/gadget.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc2/hcd.c    |  3 +-
 drivers/usb/dwc2/params.c | 47 +++++++++++++++++++++--
 4 files changed, 151 insertions(+), 12 deletions(-)

-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to