lkml.org 
[lkml]   [2023]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC 0/2] Handle core soft reset during Pullup
Date
When core soft reset timeout happens, pullup doesn't check for the
return value and proceeds to setup 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.

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

--
2.40.0

\
 
 \ /
  Last update: 2023-03-27 01:12    [W:0.041 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site