public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Handle core soft reset failure in pullup
@ 2023-03-28 16:07 Krishna Kurapati
  2023-03-28 16:07 ` [PATCH v2 1/2] usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens Krishna Kurapati
  2023-03-28 16:07 ` [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation Krishna Kurapati
  0 siblings, 2 replies; 25+ messages in thread
From: Krishna Kurapati @ 2023-03-28 16:07 UTC (permalink / raw)
  To: Thinh Nguyen, Greg Kroah-Hartman, Alan Stern, Geert Uytterhoeven,
	Colin Ian King, Jiantao Zhang, Rafael J . Wysocki
  Cc: linux-usb, linux-kernel, quic_ppratap, quic_wcheng, quic_jackp,
	quic_ugoswami, 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/

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 | 20 ++++++++++++++++----
 2 files changed, 20 insertions(+), 5 deletions(-)

-- 
2.40.0


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

end of thread, other threads:[~2023-04-28 21:58 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-28 16:07 [PATCH v2 0/2] Handle core soft reset failure in pullup Krishna Kurapati
2023-03-28 16:07 ` [PATCH v2 1/2] usb: dwc3: gadget: Bail out in pullup if soft reset timeout happens Krishna Kurapati
2023-03-28 21:20   ` Thinh Nguyen
2023-03-29  4:34     ` Krishna Kurapati PSSNV
2023-03-30  0:10       ` Thinh Nguyen
2023-03-30 16:58         ` Krishna Kurapati PSSNV
2023-04-03 23:49           ` Thinh Nguyen
2023-04-04  4:39             ` Krishna Kurapati PSSNV
2023-04-04 21:43               ` Thinh Nguyen
2023-04-05  4:24                 ` Krishna Kurapati PSSNV
2023-04-06  0:45                   ` Thinh Nguyen
2023-04-06  2:14                     ` Krishna Kurapati PSSNV
2023-04-25 16:58                       ` Krishna Kurapati PSSNV
2023-04-26  0:22                         ` Thinh Nguyen
2023-04-26  0:43                           ` Krishna Kurapati PSSNV
2023-04-26  1:04                             ` Thinh Nguyen
2023-04-26  1:06   ` Thinh Nguyen
2023-03-28 16:07 ` [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation Krishna Kurapati
2023-04-26  1:17   ` Krishna Kurapati PSSNV
2023-04-26  9:18     ` Geert Uytterhoeven
     [not found]       ` <2070d2fc-9bdc-57f8-d789-4fa6412fc7ed@quicinc.com>
     [not found]         ` <CAMuHMdUKqo6paF5efFVr0tmA3mpOAraZORoKyVFi8Pkt=H4z6Q@mail.gmail.com>
     [not found]           ` <592c2095-a6dc-de4b-713d-a9a582f966e0@quicinc.com>
2023-04-27  9:09             ` get_maintainer.pl wrong and undeterministic? (was: Re: [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation) Geert Uytterhoeven
2023-04-27  9:56               ` get_maintainer.pl wrong and undeterministic? Andreas Schwab
2023-04-27 10:01                 ` Andreas Schwab
2023-04-28 21:58               ` get_maintainer.pl wrong and undeterministic? (was: Re: [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation) Joe Perches
2023-04-28 17:32     ` [PATCH v2 2/2] usb: gadget: udc: Handle gadget_connect failure during bind operation Alan Stern

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