forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
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;