diff options
author | Tejun Heo <tj@kernel.org> | 2009-08-14 01:41:02 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-08-14 01:45:31 -0400 |
commit | 384be2b18a5f9475eab9ca2bdfa95cc1a04ef59c (patch) | |
tree | 04c93f391a1b65c8bf8d7ba8643c07d26c26590a /drivers/usb/host/ehci-sched.c | |
parent | a76761b621bcd8336065c4fe3a74f046858bc34c (diff) | |
parent | 142d44b0dd6741a64a7bdbe029110e7c1dcf1d23 (diff) |
Merge branch 'percpu-for-linus' into percpu-for-next
Conflicts:
arch/sparc/kernel/smp_64.c
arch/x86/kernel/cpu/perf_counter.c
arch/x86/kernel/setup_percpu.c
drivers/cpufreq/cpufreq_ondemand.c
mm/percpu.c
Conflicts in core and arch percpu codes are mostly from commit
ed78e1e078dd44249f88b1dd8c76dafb39567161 which substituted many
num_possible_cpus() with nr_cpu_ids. As for-next branch has moved all
the first chunk allocators into mm/percpu.c, the changes are moved
from arch code to mm/percpu.c.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r-- | drivers/usb/host/ehci-sched.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 9d1babc7ff65..edd61ee90323 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c | |||
@@ -542,6 +542,7 @@ static int qh_link_periodic (struct ehci_hcd *ehci, struct ehci_qh *qh) | |||
542 | } | 542 | } |
543 | } | 543 | } |
544 | qh->qh_state = QH_STATE_LINKED; | 544 | qh->qh_state = QH_STATE_LINKED; |
545 | qh->xacterrs = 0; | ||
545 | qh_get (qh); | 546 | qh_get (qh); |
546 | 547 | ||
547 | /* update per-qh bandwidth for usbfs */ | 548 | /* update per-qh bandwidth for usbfs */ |
@@ -1619,11 +1620,14 @@ itd_complete ( | |||
1619 | desc->status = -EPROTO; | 1620 | desc->status = -EPROTO; |
1620 | 1621 | ||
1621 | /* HC need not update length with this error */ | 1622 | /* HC need not update length with this error */ |
1622 | if (!(t & EHCI_ISOC_BABBLE)) | 1623 | if (!(t & EHCI_ISOC_BABBLE)) { |
1623 | desc->actual_length = EHCI_ITD_LENGTH (t); | 1624 | desc->actual_length = EHCI_ITD_LENGTH(t); |
1625 | urb->actual_length += desc->actual_length; | ||
1626 | } | ||
1624 | } else if (likely ((t & EHCI_ISOC_ACTIVE) == 0)) { | 1627 | } else if (likely ((t & EHCI_ISOC_ACTIVE) == 0)) { |
1625 | desc->status = 0; | 1628 | desc->status = 0; |
1626 | desc->actual_length = EHCI_ITD_LENGTH (t); | 1629 | desc->actual_length = EHCI_ITD_LENGTH(t); |
1630 | urb->actual_length += desc->actual_length; | ||
1627 | } else { | 1631 | } else { |
1628 | /* URB was too late */ | 1632 | /* URB was too late */ |
1629 | desc->status = -EXDEV; | 1633 | desc->status = -EXDEV; |
@@ -2014,7 +2018,8 @@ sitd_complete ( | |||
2014 | desc->status = -EPROTO; | 2018 | desc->status = -EPROTO; |
2015 | } else { | 2019 | } else { |
2016 | desc->status = 0; | 2020 | desc->status = 0; |
2017 | desc->actual_length = desc->length - SITD_LENGTH (t); | 2021 | desc->actual_length = desc->length - SITD_LENGTH(t); |
2022 | urb->actual_length += desc->actual_length; | ||
2018 | } | 2023 | } |
2019 | stream->depth -= stream->interval << 3; | 2024 | stream->depth -= stream->interval << 3; |
2020 | 2025 | ||