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(-) -- 2.21.0.196.g041f5ea