From: wlf Date: Thu, 20 Mar 2014 03:09:39 +0000 (+0800) Subject: USB: clear chhltd int if NYET/NAK/ACK/other in non-error case. X-Git-Tag: firefly_0821_release~5983 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=18eae387b1379ca43afb8e622ed5e1d247e79eb8;p=firefly-linux-kernel-4.4.55.git USB: clear chhltd int if NYET/NAK/ACK/other in non-error case. --- diff --git a/drivers/usb/dwc_otg_310/dwc_otg_hcd_intr.c b/drivers/usb/dwc_otg_310/dwc_otg_hcd_intr.c index eb2f573e99a9..dfec664b39ce 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_hcd_intr.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_hcd_intr.c @@ -2039,6 +2039,8 @@ static void handle_hc_chhltd_intr_dma(dwc_otg_hcd_t * hcd, } else { DWC_PRINTF("NYET/NAK/ACK/other in non-error case, 0x%08x\n", hcint.d32); + if(!hcint.b.nyet && !hcint.b.nak && !hcint.b.ack) + clear_hc_int(hc_regs,chhltd); } }