summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-09-28 07:10:32 +0000
committerthompsa <thompsa@FreeBSD.org>2009-09-28 07:10:32 +0000
commit313dce25ce05b86a23e34dd937150483f41625b5 (patch)
tree445c152de6c924a5f3d42c621c4a5886c7315af5 /sys/dev/usb
parent9566db332f1f1245b4e3efbf42403b911d358213 (diff)
downloadFreeBSD-src-313dce25ce05b86a23e34dd937150483f41625b5.zip
FreeBSD-src-313dce25ce05b86a23e34dd937150483f41625b5.tar.gz
Clear all interrupts rather than just SETUP packet.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb')
-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 9b60ad7..a864c57 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:
OpenPOWER on IntegriCloud