Merged in david_s5/nuttx/master_kinetis_usbhang (pull request #688)

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>
This commit is contained in:
David Sidrane 2018-07-19 20:13:47 +00:00 committed by GregoryN
parent 2ea49cddfb
commit e9cd6089c9
1 changed files with 1 additions and 0 deletions

View File

@ -2793,6 +2793,7 @@ static int khci_interrupt(int irq, void *context, FAR void *arg)
/* Clear all pending USB error interrupts */ /* Clear all pending USB error interrupts */
khci_putreg(USB_EINT_ALL, KINETIS_USB0_ERRSTAT); khci_putreg(USB_EINT_ALL, KINETIS_USB0_ERRSTAT);
khci_putreg(USB_INT_ERROR, KINETIS_USB0_ISTAT);
} }
/* Service resume interrupts */ /* Service resume interrupts */