Skip to content

Commit

Permalink
Merged in david_s5/nuttx/master_kinetis_usbhang (pull request #688)
Browse files Browse the repository at this point in the history
kinetis:USB0 fix interrupt storm on error

The ERROR bit of USBx_ISTAT needed to be cleared once an
   error occured.

Approved-by: GregoryN <gnutt@nuttx.org>
  • Loading branch information
David Sidrane authored and gregory-nutt committed Jul 19, 2018
1 parent 2ea49cd commit e9cd608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/src/kinetis/kinetis_usbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,7 @@ static int khci_interrupt(int irq, void *context, FAR void *arg)
/* Clear all pending USB error interrupts */

khci_putreg(USB_EINT_ALL, KINETIS_USB0_ERRSTAT);
khci_putreg(USB_INT_ERROR, KINETIS_USB0_ISTAT);
}

/* Service resume interrupts */
Expand Down

0 comments on commit e9cd608

Please sign in to comment.