summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-04-24 10:44:47 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-24 20:48:06 +0000
commit82ec2a52c5ae7e4316d0aba15137876489f94398 (patch)
tree6500743c555cc3b10577c7eb051b305ae8c50ec6
parentd927c3e5d9743f42b98ec63b8e6034f72a11c136 (diff)
downloadchrome-ec-82ec2a52c5ae7e4316d0aba15137876489f94398.tar.gz
cr50: Enable IN interrupts for USB HID EP.
This fixes a slight mistake where we were enabling the wrong interrupt (EP1 instead of EP2). I'm not sure that this is necessary, since we don't actually do anything about these interrupts except clear them. BUG=none BRANCH=none TEST=manual To test, I instrumented the hid_tx() interrupt handler. Before this CL, it never fired. Now it does. Change-Id: Iaa5816ec78f70ef101d4663c08842678ddc7d2f9 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/267089 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/g/usb_hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/usb_hid.c b/chip/g/usb_hid.c
index 5a34f491a3..ebe88b28e7 100644
--- a/chip/g/usb_hid.c
+++ b/chip/g/usb_hid.c
@@ -114,7 +114,7 @@ static void hid_reset(void)
GR_USB_DIEPCTL(USB_EP_HID) = DXEPCTL_MPS(HID_REPORT_SIZE) |
DXEPCTL_USBACTEP | DXEPCTL_EPTYPE_INT |
DXEPCTL_TXFNUM(USB_EP_HID);
- GR_USB_DAINTMSK |= (1<<USB_EP_CONSOLE);
+ GR_USB_DAINTMSK |= (1<<USB_EP_HID);
}
USB_DECLARE_EP(USB_EP_HID, hid_tx, hid_tx, hid_reset);