We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5333d04 commit 1809548Copy full SHA for 1809548
src/portable/synopsys/dwc2/hcd_dwc2.c
@@ -448,6 +448,12 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr) {
448
hcd_endpoint_t* edpt = &_hcd_data.edpt[i];
449
if (edpt->hcchar_bm.enable && edpt->hcchar_bm.dev_addr == dev_addr) {
450
tu_memclr(edpt, sizeof(hcd_endpoint_t));
451
+ for (uint8_t j = 0; j < (uint8_t) DWC2_CHANNEL_COUNT_MAX; j++) {
452
+ hcd_xfer_t* xfer = &_hcd_data.xfer[j];
453
+ if (xfer->allocated && xfer->ep_id == i) {
454
+ tu_memclr(xfer, sizeof(hcd_xfer_t));
455
+ }
456
457
}
458
459
0 commit comments