diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-09-28 07:10:32 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-09-28 07:10:32 +0000 |
commit | 313dce25ce05b86a23e34dd937150483f41625b5 (patch) | |
tree | 445c152de6c924a5f3d42c621c4a5886c7315af5 /sys/dev/usb | |
parent | 9566db332f1f1245b4e3efbf42403b911d358213 (diff) | |
download | FreeBSD-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.c | 4 |
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: |