]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: Don't send unintended link state change
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 24 Oct 2019 02:15:43 +0000 (19:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:19 +0000 (10:39 +0100)
commit5b738211fb59e114727381d07c647a77c0010996
treea3d63ce667cf15b11ee4ad2e21555e1e4035d27d
parent704a940d551c9946bce3fdd661e00a6370c40522
usb: dwc3: gadget: Don't send unintended link state change

DCTL.ULSTCHNGREQ is a write-only field. When doing a read-modify-write
to DCTL, the driver must make sure that there's no unintended link state
change request from whatever is read from DCTL.ULSTCHNGREQ. Set link
state change to no-action when the driver writes to DCTL.

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
drivers/usb/dwc3/gadget.h