diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-11 20:38:28 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-01-18 12:31:35 +0100 |
commit | 8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc (patch) | |
tree | 028ca3d623d265269a1723152361d6025ae8bb47 /drivers/usb/host | |
parent | a1d31077d06d47233d2bd7002cf65d5ee9b5e501 (diff) | |
download | u-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 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index bc76066..f1fb190 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -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; |