From e9cd6089c92a8a5169a3a281b02add2789644aa5 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 19 Jul 2018 20:13:47 +0000 Subject: [PATCH] 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 --- arch/arm/src/kinetis/kinetis_usbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/kinetis/kinetis_usbdev.c b/arch/arm/src/kinetis/kinetis_usbdev.c index 52f04747c2..cf91a616f8 100644 --- a/arch/arm/src/kinetis/kinetis_usbdev.c +++ b/arch/arm/src/kinetis/kinetis_usbdev.c @@ -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 */