mbox series

[0/5] usb: dwc2: Improve gadget phy init

Message ID 20190402103922.16729-1-jmaselbas@kalray.eu (mailing list archive)
Headers show
Series usb: dwc2: Improve gadget phy init | expand

Message

Jules Maselbas April 2, 2019, 10:39 a.m. UTC
Hi,

Theses patches tries to clean a bit dwc2's phy initialization and
fix an issue in gadget mode where the utmi phy width is set
regardless of utmi being used or not.

I believe that when using ulpi a phy width of 8 bits must be used,
but this wasn't the case as the variable phyif was set by default
to 16 bits.

Best,
Jules
---
Jules Maselbas (5):
  usb: dwc2: Move UTMI_PHY_DATA defines closer
  usb: dwc2: Move phy init into core
  usb: dwc2: gadget: Remove duplicated phy init
  usb: dwc2: gadget: Replace phyif with phy_utmi_width
  usb: dwc2: gadget: Move gadget phy init into core phy init

 drivers/usb/dwc2/core.c     | 199 ++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc2/core.h     |   3 +-
 drivers/usb/dwc2/gadget.c   |  34 ++----
 drivers/usb/dwc2/hcd.c      | 190 ----------------------------------
 drivers/usb/dwc2/hw.h       |   6 +-
 drivers/usb/dwc2/platform.c |   5 +-
 6 files changed, 211 insertions(+), 226 deletions(-)