Commit 37d4c953 authored by Krishna Kurapati's avatar Krishna Kurapati Committed by Matthias Männich
Browse files

FROMGIT: 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>

Bug: 275538389
Bug: 301017317
Bug: 301378679
(cherry picked from commit 813f44d5 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-next)
Change-Id: Ieb7fe9f6d0dc64814cf6f9b86d5ee188d07de537
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: default avatarwangting <wangting11@xiaomi.com>
parent d2c3fc48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment