USB: dwc_otg_310: release channel for qtd that has been dequeued before

Change-Id: I184ed185074b2ccee24cbbf57c9ff1dad06bd9d7
Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
This commit is contained in:
Yunzhi Li
2015-08-28 15:34:34 +08:00
parent 5e3d6ba5d8
commit 90d6c10e8d

View File

@@ -2110,6 +2110,8 @@ int32_t dwc_otg_hcd_handle_hc_n_intr(dwc_otg_hcd_t *dwc_otg_hcd, uint32_t num)
/* All transfer had been killed, clear panding interrupts */
hcint.d32 = DWC_READ_REG32(&hc_regs->hcint);
DWC_WRITE_REG32(&hc_regs->hcint, hcint.d32);
release_channel(dwc_otg_hcd, hc, NULL,
DWC_OTG_HC_XFER_URB_DEQUEUE);
return retval;
}
qtd = DWC_CIRCLEQ_FIRST(&hc->qh->qtd_list);