Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f8fe0e3a authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Krishna Kurapati PSSNV
Browse files

usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens



If the core soft reset timeout happens, avoid setting up event
buffers and starting gadget as the writes to these registers
may not reflect when in reset and setting the run stop bit
can lead the controller to access wrong event buffer address
resulting in a crash.

Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20230510075252.31023-2-quic_kriskura@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 813f44d57e19ccaa7330e829bd913515be42719d
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/

 usb
-next).

Change-Id: I7f17f0bf28f785b0798025476f76b040e8b83e2c
Signed-off-by: default avatarKrishna Kurapati <quic_kriskura@quicinc.com>
parent 759c5fad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment