Browse Source

Merge pull request #1352 from ETCLabs/fix-ehci-isr-status-clear-error

Updated the clearing of the status register bits to use a straight '=…
Ha Thach 4 years ago
parent
commit
6dd4d50213
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/portable/ehci/ehci.c

+ 1 - 1
src/portable/ehci/ehci.c

@@ -657,7 +657,7 @@ void hcd_int_handler(uint8_t rhport)
   uint32_t int_status = regs->status;
   int_status &= regs->inten;
   
-  regs->status |= int_status; // Acknowledge handled interrupt
+  regs->status = int_status; // Acknowledge handled interrupt
 
   if (int_status == 0) return;