status = disable_periodic (ehci);
else {
status = 0;
- ehci_vdbg (ehci, "periodic schedule still enabled\n");
+ vdbg ("periodic schedule still enabled");
}
/*
* the race is very short. then if qh also isn't
* rescheduled soon, it won't matter. otherwise...
*/
- ehci_vdbg (ehci, "intr_deschedule...\n");
+ vdbg ("intr_deschedule...");
}
} else
qh->hw_next = EHCI_LIST_END;
hcd_to_bus (&ehci->hcd)->bandwidth_allocated -=
(qh->usecs + qh->c_usecs) / qh->period;
- ehci_dbg (ehci, "descheduled qh%d/%p frame=%d count=%d, urbs=%d\n",
- qh->period, qh, frame,
+ dbg ("descheduled qh %p, period = %d frame = %d count = %d, urbs = %d",
+ qh, qh->period, frame,
atomic_read (&qh->kref.refcount), ehci->periodic_sched);
}
__le32 c_mask;
unsigned frame; /* 0..(qh->period - 1), or NO_FRAME */
- qh_refresh(ehci, qh);
qh->hw_next = EHCI_LIST_END;
frame = qh->start;
qh->hw_info2 &= ~__constant_cpu_to_le32(0xffff);
qh->hw_info2 |= cpu_to_le32 (1 << uframe) | c_mask;
} else
- ehci_dbg (ehci, "reused qh %p schedule\n", qh);
+ dbg ("reused previous qh %p schedule", qh);
/* stuff into the periodic schedule */
qh->qh_state = QH_STATE_LINKED;
- ehci_dbg(ehci,
- "scheduled qh%d/%p usecs %d/%d starting %d.%d (gap %d)\n",
- qh->period, qh, qh->usecs, qh->c_usecs,
- frame, uframe, qh->gap_uf);
+ dbg ("scheduled qh %p usecs %d/%d period %d.0 starting %d.%d (gap %d)",
+ qh, qh->usecs, qh->c_usecs,
+ qh->period, frame, uframe, qh->gap_uf);
do {
if (unlikely (ehci->pshadow [frame].ptr != 0)) {
while (q.ptr != 0) {
unsigned uf;
union ehci_shadow temp;
- int live;
- live = HCD_IS_RUNNING (ehci->hcd.state);
switch (type) {
case Q_TYPE_QH:
/* handle any completions */
case Q_TYPE_ITD:
/* skip itds for later in the frame */
rmb ();
- for (uf = live ? uframes : 8; uf < 8; uf++) {
+ for (uf = uframes; uf < 8; uf++) {
if (0 == (q.itd->hw_transaction [uf]
& ITD_ACTIVE))
continue;
q = *q_p;
break;
case Q_TYPE_SITD:
- if ((q.sitd->hw_results & SITD_ACTIVE)
- && live) {
+ if (q.sitd->hw_results & SITD_ACTIVE) {
q_p = &q.sitd->sitd_next;
hw_p = &q.sitd->hw_next;
type = Q_NEXT_TYPE (q.sitd->hw_next);