From: Alan Stern Date: Fri, 11 Oct 2013 15:28:12 +0000 (-0400) Subject: USB: EHCI: check the right uframes for CSPLIT X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e24371a6be9c5c00b56607bd425cc409cba75d88;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: EHCI: check the right uframes for CSPLIT The check_intr_schedule() routine in ehci-hcd looks at the wrong microframes when checking to see if a full-speed or low-speed interrupt endpoint will fit in the periodic schedule. If the Start-Split transaction is scheduled for microframe N then the Complete-Split transactions get scheduled for microframes N+2, N+3, and N+4. However the code considers N+1, N+2, and N+3 instead. This patch fixes the limits on the "for" loop and also improves the use of whitespace. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index dcbaad94d607..34b5945fafa5 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -761,7 +761,7 @@ static int check_intr_schedule ( unsigned i; /* TODO : this may need FSTN for SSPLIT in uframe 5. */ - for (i=uframe+1; i<8 && iperiod, qh->c_usecs)) goto done;