- /* usb_clear_halt() means qh data toggle gets reset */
- if (unlikely (!usb_gettoggle (urb->dev,
- (epnum & 0x0f), !(epnum & 0x10)))
- && !usb_pipecontrol (urb->pipe)) {
- /* "never happens": drivers do stall cleanup right */
- if (qh->qh_state != QH_STATE_IDLE
- && !list_empty (&qh->qtd_list)
- && qh->qh_state != QH_STATE_COMPLETING)
- ehci_warn (ehci, "clear toggle dev%d "
- "ep%d%s: not idle\n",
- usb_pipedevice (urb->pipe),
- epnum & 0x0f,
- usb_pipein (urb->pipe)
- ? "in" : "out");
- /* else we know this overlay write is safe */
- clear_toggle (urb->dev,
- epnum & 0x0f, !(epnum & 0x10), qh);
- }
-