summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2011-12-26 11:25:09 +0100
committerGerrit <chrome-bot@google.com>2012-01-04 12:14:26 -0800
commitc156b0e81b31a3209e1f184c2c7eb30122b37b7a (patch)
tree0ee1c8fd3db20b38d5f99a1e6175d6fccda49e0f /common
parentd83fe0bf0e0cc417579ade635c6ea212a95f40a7 (diff)
Use periodic list if no other method is selected polling keyboards
BUG=chrome-os-partner:5752 TEST=Use USB keyboard in u-boot (recovery mode) with later commit that enables this code Change-Id: I60ee2ef94ef0aca9009b9fa6a370d7e4e0536753 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: https://gerrit.chromium.org/gerrit/13490 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_kbd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index e6f50ad4a7..6f2f944d9d 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -324,6 +324,9 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev)
1, 0, data->new, sizeof(data->new));
if (memcmp(data->old, data->new, sizeof(data->new)))
usb_kbd_irq_worker(dev);
+#else
+ usb_kbd_generic_poll();
+ usb_kbd_irq_worker(dev);
#endif
}