From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chin Liang See Date: Wed, 4 May 2016 17:36:33 +0800 Subject: [U-Boot] [PATCH 2/7] usb: dwc2: Resend setup packet in all fail cases In-Reply-To: <1462308680-9366-2-git-send-email-marex@denx.de> References: <1462308680-9366-1-git-send-email-marex@denx.de> <1462308680-9366-2-git-send-email-marex@denx.de> Message-ID: <1462354593.1898.9.camel@altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2016-05-03 at 22:51 +0200, Marek Vasut wrote: > The USB function can respond to a Setup packet with ACK or, in > case it's busy, it can ignore the Setup packet. The USB function > usually gets busy if we hammer it with Control EP transfers too > much (ie. sending multiple Get Descriptor requests in a single > microframe tends to trigger it on certain USB sticks). The DWC2 > controller will interpret not receiving an ACK after Setup packet > as XACTERR. Check for this condition and if it happens, retry > sending the Setup packet. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Hans de Goede > Cc: Stefan Roese > Cc: Stephen Warren > --- > drivers/usb/host/dwc2.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > Reviewed-by: Chin Liang See Tested-by: Chin Liang See Thanks Chin Liang