summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-11 20:38:28 +0100
committerMarek Vasut <marex@denx.de>2015-01-18 12:31:35 +0100
commit8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc (patch)
tree028ca3d623d265269a1723152361d6025ae8bb47 /common
parenta1d31077d06d47233d2bd7002cf65d5ee9b5e501 (diff)
downloadu-boot-imx-8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc.zip
u-boot-imx-8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc.tar.gz
u-boot-imx-8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc.tar.bz2
usb: Add an interval parameter to create_int_queue
Currently create_int_queue is only implemented by the ehci code, and that does not honor interrupt intervals, but other drivers which might also want to implement create_int_queue may honor intervals, so add an interval param. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'common')
-rw-r--r--common/usb_kbd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index bc7145e..0d47743 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -332,7 +332,8 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev)
/* We've consumed all queued int packets, create new */
destroy_int_queue(dev, data->intq);
data->intq = create_int_queue(dev, data->intpipe, 1,
- USB_KBD_BOOT_REPORT_SIZE, data->new);
+ USB_KBD_BOOT_REPORT_SIZE, data->new,
+ data->intinterval);
}
#endif
}
@@ -453,7 +454,8 @@ static int usb_kbd_probe(struct usb_device *dev, unsigned int ifnum)
debug("USB KBD: enable interrupt pipe...\n");
#ifdef CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
data->intq = create_int_queue(dev, data->intpipe, 1,
- USB_KBD_BOOT_REPORT_SIZE, data->new);
+ USB_KBD_BOOT_REPORT_SIZE, data->new,
+ data->intinterval);
if (!data->intq) {
#else
if (usb_submit_int_msg(dev, data->intpipe, data->new, data->intpktsize,