From 5a553db88ab7579fa78c17f1bcdbc29d885079ce Mon Sep 17 00:00:00 2001 From: Lwazi Dube Date: Mon, 8 May 2023 19:44:58 -0400 Subject: [PATCH] arch/arm/sama5: Fix OHCI SchedulingOverrun interrupt storm. The following message is printed continuously and the nsh shell is unusable on sama5d3-xplained. "OHCI ERROR: Unhandled interrupts pending: 000001". This happens when a keyboard is removed and reinserted on port3 (lower port) while a bluetooth dongle is in port2. --- arch/arm/src/sama5/sam_ohci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index de7814327bd..37ee933de53 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -1330,6 +1330,8 @@ static inline int sam_reminted(struct sam_ed_s *ed) */ prev->hw.nexted = ed->hw.nexted; + up_clean_dcache((uintptr_t)prev, + (uintptr_t)prev + sizeof(struct ohci_ed_s)); } #ifdef CONFIG_USBHOST_TRACE