mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Marek Vasut

parent
a1d31077d0
commit
8bb6c1d1e0
@ -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,
|
||||
|
Reference in New Issue
Block a user