summaryrefslogtreecommitdiff
path: root/sys/dev/usb/controller/atmegadci.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-10-29 23:16:39 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-10-29 23:16:39 +0000
commitf23c09d0b0ec175a424638a57c7a667c14e36cf4 (patch)
tree2864785ffbbf4cfce9af143e74845609bf32d649 /sys/dev/usb/controller/atmegadci.c
parent320dbc0942cd5d919146a9d8fe9e21a8090e383b (diff)
Notes
Diffstat (limited to 'sys/dev/usb/controller/atmegadci.c')
-rw-r--r--sys/dev/usb/controller/atmegadci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/atmegadci.c b/sys/dev/usb/controller/atmegadci.c
index 9b60ad7e17be..a864c5765c5d 100644
--- a/sys/dev/usb/controller/atmegadci.c
+++ b/sys/dev/usb/controller/atmegadci.c
@@ -301,8 +301,8 @@ atmegadci_setup_rx(struct atmegadci_td *td)
sc->sc_dv_addr = 0xFF;
}
- /* clear SETUP packet interrupt */
- ATMEGA_WRITE_1(sc, ATMEGA_UEINTX, ~ATMEGA_UEINTX_RXSTPI);
+ /* Clear SETUP packet interrupt and all other previous interrupts */
+ ATMEGA_WRITE_1(sc, ATMEGA_UEINTX, 0);
return (0); /* complete */
not_complete: