aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/uhci-debug.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2006-05-19 16:34:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 18:04:12 -0400
commitc433472658b4df11bd3590a59be79194a1ff43ae (patch)
tree32d48a155360c8e877be3956c9964d2d4c19a236 /drivers/usb/host/uhci-debug.c
parent3612242e527eb47ee4756b5350f8bdf791aa5ede (diff)
[PATCH] UHCI: use integer-sized frame numbers
This patch (as687) changes uhci-hcd to keep track of frame numbers as full-sized integers rather than 11-bit values. This makes them a lot easier to handle and makes it possible to schedule beyond a 2-second window, should anyone ever want to do so. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c
index 081c592fe8b1..ecef5880cfd9 100644
--- a/drivers/usb/host/uhci-debug.c
+++ b/drivers/usb/host/uhci-debug.c
@@ -289,7 +289,7 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len)
289 unsigned short portsc1, portsc2; 289 unsigned short portsc1, portsc2;
290 290
291 /* Try to make sure there's enough memory */ 291 /* Try to make sure there's enough memory */
292 if (len < 80 * 6) 292 if (len < 80 * 9)
293 return 0; 293 return 0;
294 294
295 usbcmd = inw(io_addr + 0); 295 usbcmd = inw(io_addr + 0);
@@ -328,6 +328,8 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len)
328 out += sprintf(out, " sof = %02x\n", sof); 328 out += sprintf(out, " sof = %02x\n", sof);
329 out += uhci_show_sc(1, portsc1, out, len - (out - buf)); 329 out += uhci_show_sc(1, portsc1, out, len - (out - buf));
330 out += uhci_show_sc(2, portsc2, out, len - (out - buf)); 330 out += uhci_show_sc(2, portsc2, out, len - (out - buf));
331 out += sprintf(out, "Most recent frame: %x\n",
332 uhci->frame_number);
331 333
332 return out - buf; 334 return out - buf;
333} 335}