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
@@ -1148,7 +1148,7 @@ disable_periodic(struct ehci_ctrl *ctrl)
|
||||
|
||||
struct int_queue *
|
||||
create_int_queue(struct usb_device *dev, unsigned long pipe, int queuesize,
|
||||
int elementsize, void *buffer)
|
||||
int elementsize, void *buffer, int interval)
|
||||
{
|
||||
struct ehci_ctrl *ctrl = dev->controller;
|
||||
struct int_queue *result = NULL;
|
||||
@@ -1398,7 +1398,7 @@ submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
|
||||
debug("dev=%p, pipe=%lu, buffer=%p, length=%d, interval=%d",
|
||||
dev, pipe, buffer, length, interval);
|
||||
|
||||
queue = create_int_queue(dev, pipe, 1, length, buffer);
|
||||
queue = create_int_queue(dev, pipe, 1, length, buffer, interval);
|
||||
if (!queue)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user