This patch series adds some fixes to how dwc3 handles cases related to link state changes. Changes in v2: - Create inline function to do safe write to DCTL Thinh Nguyen (4): usb: dwc3: gadget: Don't send unintended link state change usb: dwc3: gadget: Set link state to RX_Detect on disconnect usb: dwc3: gadget: Clear DCTL.ULSTCHNGREQ before set usb: dwc3: debug: Remove newline printout drivers/usb/dwc3/debug.h | 4 ++-- drivers/usb/dwc3/gadget.c | 21 ++++++++++++--------- drivers/usb/dwc3/gadget.h | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 11 deletions(-) -- 2.11.0