hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/drivers/usb/dwc3/gadget.c
....@@ -2482,7 +2482,6 @@
24822482 while (left > 0) {
24832483 union dwc3_event event;
24842484
2485
- invalidate_dcache_range((uintptr_t)evt->buf, evt->length);
24862485 event.raw = *(u32 *) (evt->buf + evt->lpos);
24872486
24882487 dwc3_process_event_entry(dwc, &event);
....@@ -2538,6 +2537,7 @@
25382537 u32 reg;
25392538
25402539 evt = dwc->ev_buffs[buf];
2540
+ dwc3_invalidate_cache((uintptr_t)evt->buf, evt->length);
25412541
25422542 count = dwc3_readl(dwc->regs, DWC3_GEVNTCOUNT(buf));
25432543 count &= DWC3_GEVNTCOUNT_MASK;