usb: dwc_otg: handle data toggle error in right way

data toggle error without a ChannelHalt status is not a real data
toggle err, it is a transfer error state so just clear the
interrupt bit rather than resubmit this request

Signed-off-by: lyz <lyz@rock-chips.com>
This commit is contained in:
lyz
2015-01-23 17:05:14 +08:00
parent b1e25b6bf2
commit 63bbda58fe

View File

@@ -2179,8 +2179,8 @@ int32_t dwc_otg_hcd_handle_hc_n_intr(dwc_otg_hcd_t *dwc_otg_hcd, uint32_t num)
handle_hc_frmovrun_intr(dwc_otg_hcd, hc, hc_regs, qtd);
}
if (hcint.b.datatglerr) {
retval |=
handle_hc_datatglerr_intr(dwc_otg_hcd, hc, hc_regs, qtd);
disable_hc_int(hc_regs, datatglerr);
clear_hc_int(hc_regs, chhltd);
}
return retval;