Skip to content

Commit

Permalink
clear qhd halted bit if not caused by STALL protocol, allow for next …
Browse files Browse the repository at this point in the history
…transfer
  • Loading branch information
hathach committed Aug 14, 2023
1 parent d713571 commit 4c73709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/portable/ehci/ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ void qhd_xfer_complete_isr(ehci_qhd_t * qhd) {
if (qtd_overlay->xact_err || qtd_overlay->err_count == 0 || qtd_overlay->buffer_err || qtd_overlay->babble_err) {
// Error count = 0 often occurs when device disconnected, or other bus-related error
xfer_result = XFER_RESULT_FAILED;
qtd_overlay->halted = false; // clear halted bit if it is not caused by STALL
TU_LOG3(" QHD xfer err count: %d\n", qtd_overlay->err_count);
// TU_BREAKPOINT(); // TODO skip unplugged device
}else {
Expand Down

0 comments on commit 4c73709

Please sign in to comment.