mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Handle core soft reset failure in pullup
@ 2023-05-10  7:52 Krishna Kurapati
  2023-05-10  7:52 ` [PATCH v3 1/2] usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens Krishna Kurapati
  2023-05-10  7:52 ` [PATCH v3 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation Krishna Kurapati
  0 siblings, 2 replies; 4+ messages in thread
From: Krishna Kurapati @ 2023-05-10  7:52 UTC (permalink / raw)
  To: Thinh Nguyen, Greg Kroah-Hartman, Alan Stern, Jiantao Zhang,
	Badhri Jagan Sridharan
  Cc: linux-usb, linux-kernel, quic_ppratap, quic_wcheng, quic_jackp,
	Krishna Kurapati

When core soft reset timeout happens, pullup doesn't check for the
return value and proceeds setting up of event buffers and starts the
controller.

In this scneario, it is observed sometimes that the GEVTADDR LO/HI
registers read zero while we are setting the run stop bit and we end
up accessing address 0x00 leading to a crash. This series tries to
address this issue by handling the timeout and return back appropriate
error code to configfs for it to retry enumeration if it chooses to.

Link to v1: https://lore.kernel.org/all/20230322092740.28491-1-quic_kriskura@quicinc.com/
Link to v2: https://lore.kernel.org/all/20230328160756.30520-1-quic_kriskura@quicinc.com/

changes in v3:
Rebased on top of latest usb-next to resolve merge issues
Fixed comments from v2 related to code styling

changes in v2:
Fixed comments addressing incomplete error handling in udc core

Krishna Kurapati (2):
  usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens
  usb: gadget: udc: Handle gadget_connect failure during bind operation

 drivers/usb/dwc3/gadget.c     |  5 ++++-
 drivers/usb/gadget/udc/core.c | 21 +++++++++++++++++----
 2 files changed, 21 insertions(+), 5 deletions(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-10  9:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-10  7:52 [PATCH v3 0/2] Handle core soft reset failure in pullup Krishna Kurapati
2023-05-10  7:52 ` [PATCH v3 1/2] usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens Krishna Kurapati
2023-05-10  7:52 ` [PATCH v3 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation Krishna Kurapati
2023-05-10  9:31   ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®