aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-07-11 11:23:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-16 19:56:47 -0400
commitf42890782241a60d107f23d08089a4a12b507a11 (patch)
tree8e2049cf96ccdbfa7bca7bdbfb38aa329c18325d /drivers/usb/host/ehci-hcd.c
parent18aafe64d75d0e27dae206cacf4171e4e485d285 (diff)
USB: EHCI: simplify isochronous scanning
This patch (as1587) simplifies ehci-hcd's scan_isoc() routine by eliminating some local variables, declaring boolean-valued values as bool rather than unsigned, changing variable names to make more sense, and so on. The logic at the end of the routine is cut down significantly. The scanning doesn't have to catch up all the way to where the hardware is; it merely has to catch up to where the hardware was when the last interrupt occurred. If the hardware has made more progress since then and issued another interrupt, a rescan will catch up to it. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 9f26080889f5..340c9c4894bf 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -488,9 +488,6 @@ static int ehci_init(struct usb_hcd *hcd)
488 else // N microframes cached 488 else // N microframes cached
489 ehci->i_thresh = 2 + HCC_ISOC_THRES(hcc_params); 489 ehci->i_thresh = 2 + HCC_ISOC_THRES(hcc_params);
490 490
491 ehci->next_uframe = -1;
492 ehci->clock_frame = -1;
493
494 /* 491 /*
495 * dedicate a qh for the async ring head, since we couldn't unlink 492 * dedicate a qh for the async ring head, since we couldn't unlink
496 * a 'real' qh without stopping the async schedule [4.8]. use it 493 * a 'real' qh without stopping the async schedule [4.8]. use it