usb: dwc3: gadget: Clear DCTL.ULSTCHNGREQ before set
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 24 Oct 2019 02:15:55 +0000 (19:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:20 +0000 (10:39 +0100)
commit2e708fa3b8987a6a76853cd4deaee990095a7b20
tree0062ef02bacfec9be54e9920054d8410a47ea013
parent1b6009ea88ec3657792c6d15e33990abf2b907b0
usb: dwc3: gadget: Clear DCTL.ULSTCHNGREQ before set

Send a no-action link state change request before the actual request
so DWC3 can send the same request whenever we call
dwc3_gadget_set_link_state().

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c