diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-05-19 16:44:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:12 -0400 |
commit | caf3827a65af476c71eaeb79636869a4ab128d48 (patch) | |
tree | 78ef5d5ec466e59d9ac626faf34fb1031ba4fd8e /drivers/usb/host/uhci-debug.c | |
parent | 10b8e47d6b32bfba22874354c62770cb4e42aa6c (diff) |
[PATCH] UHCI: store the period in the queue header
This patch (as689) stores the period for periodic transfers (interrupt
and ISO) in the queue header. This is necessary for proper bandwidth
tracking (not yet implemented). It also makes the scheduling of ISO
transfers a bit more rigorous, with checks for out-of-bounds frame
numbers.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
-rw-r--r-- | drivers/usb/host/uhci-debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c index ecef5880cfd9..ab8ba8220ad1 100644 --- a/drivers/usb/host/uhci-debug.c +++ b/drivers/usb/host/uhci-debug.c | |||
@@ -153,7 +153,7 @@ static int uhci_show_qh(struct uhci_qh *qh, char *buf, int len, int space) | |||
153 | char *qtype; | 153 | char *qtype; |
154 | 154 | ||
155 | /* Try to make sure there's enough memory */ | 155 | /* Try to make sure there's enough memory */ |
156 | if (len < 80 * 6) | 156 | if (len < 80 * 7) |
157 | return 0; | 157 | return 0; |
158 | 158 | ||
159 | switch (qh->type) { | 159 | switch (qh->type) { |
@@ -167,6 +167,9 @@ static int uhci_show_qh(struct uhci_qh *qh, char *buf, int len, int space) | |||
167 | out += sprintf(out, "%*s[%p] %s QH link (%08x) element (%08x)\n", | 167 | out += sprintf(out, "%*s[%p] %s QH link (%08x) element (%08x)\n", |
168 | space, "", qh, qtype, | 168 | space, "", qh, qtype, |
169 | le32_to_cpu(qh->link), le32_to_cpu(element)); | 169 | le32_to_cpu(qh->link), le32_to_cpu(element)); |
170 | if (qh->type == USB_ENDPOINT_XFER_ISOC) | ||
171 | out += sprintf(out, "%*s period %d\n", | ||
172 | space, "", qh->period); | ||
170 | 173 | ||
171 | if (element & UHCI_PTR_QH) | 174 | if (element & UHCI_PTR_QH) |
172 | out += sprintf(out, "%*s Element points to QH (bug?)\n", space, ""); | 175 | out += sprintf(out, "%*s Element points to QH (bug?)\n", space, ""); |