dwc2: ctrl and bulk no need nak irq, when intr calls nak, retry by user

This commit is contained in:
sakumisu
2024-01-06 00:59:03 +08:00
parent 249e650c37
commit 5fe66b4f0d
3 changed files with 34 additions and 47 deletions

View File

@@ -87,6 +87,9 @@ void usbh_hid_callback(void *arg, int nbytes)
}
USB_LOG_RAW("nbytes:%d\r\n", nbytes);
usbh_submit_urb(&hid_class->intin_urb);
} else if (nbytes == -USB_ERR_NAK) { /* for dwc2 */
usbh_submit_urb(&hid_class->intin_urb);
} else {
}
}