/* we always expect at least one reusable BD! */
if (!tail) {
- WARN("rx dma%d -- no BDs? need %d\n", rx->index, n_bds);
+ WARNING("rx dma%d -- no BDs? need %d\n", rx->index, n_bds);
return;
} else if (i < n_bds)
- WARN("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds);
+ WARNING("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds);
tail->next = NULL;
tail->hw_next = 0;
case MUSB_DMA_STATUS_BUS_ABORT:
case MUSB_DMA_STATUS_CORE_ABORT:
/* fault irq handler should have handled cleanup */
- WARN("%cX DMA%d not cleaned up after abort!\n",
+ WARNING("%cX DMA%d not cleaned up after abort!\n",
cppi_ch->transmit ? 'T' : 'R',
cppi_ch->index);
/* WARN_ON(1); */
break;
case MUSB_DMA_STATUS_BUSY:
- WARN("program active channel? %cX DMA%d\n",
+ WARNING("program active channel? %cX DMA%d\n",
cppi_ch->transmit ? 'T' : 'R',
cppi_ch->index);
/* WARN_ON(1); */
musb_writel(musb->ctrl_base, DAVINCI_USB_EOI_REG, 0);
if (is_dma_capable() && !dma_off)
- WARN("dma still active\n");
+ WARNING("dma still active\n");
}
musb->int_usb &= ~MUSB_INTR_VBUSERROR;
musb->xceiv.state = OTG_STATE_A_WAIT_VFALL;
mod_timer(&otg_workaround, jiffies + POLL_SECONDS * HZ);
- WARN("VBUS error workaround (delay coming)\n");
+ WARNING("VBUS error workaround (delay coming)\n");
} else if (is_host_enabled(musb) && drvvbus) {
musb->is_active = 1;
MUSB_HST_MODE(musb);
MUSB_DEV_MODE(musb);
break;
default:
- WARN("bogus %s RESUME (%s)\n",
+ WARNING("bogus %s RESUME (%s)\n",
"host",
otg_state_string(musb));
}
break;
#endif
default:
- WARN("bogus %s RESUME (%s)\n",
+ WARNING("bogus %s RESUME (%s)\n",
"peripheral",
otg_state_string(musb));
}
break;
#endif /* GADGET */
default:
- WARN("unhandled DISCONNECT transition (%s)\n",
+ WARNING("unhandled DISCONNECT transition (%s)\n",
otg_state_string(musb));
break;
}
#define yprintk(facility, format, args...) \
do { printk(facility "%s %d: " format , \
__func__, __LINE__ , ## args); } while (0)
-#define WARN(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
+#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)
#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
csr = musb_readw(epio, MUSB_TXCSR);
request->actual += musb_ep->dma->actual_len;
DBG(4, "TXCSR%d %04x, dma off, "
- "len %Zd, req %p\n",
+ "len %zu, req %p\n",
epnum, csr,
musb_ep->dma->actual_len,
request);
request->actual += musb_ep->dma->actual_len;
- DBG(4, "RXCSR%d %04x, dma off, %04x, len %Zd, req %p\n",
+ DBG(4, "RXCSR%d %04x, dma off, %04x, len %zu, req %p\n",
epnum, csr,
musb_readw(epio, MUSB_RXCSR),
musb_ep->dma->actual_len, request);
}
break;
default:
- WARN("unhandled RESUME transition (%s)\n",
+ WARNING("unhandled RESUME transition (%s)\n",
otg_state_string(musb));
}
}
/* REVISIT if B_HOST, clear DEVCTL.HOSTREQ;
* A_PERIPHERAL may need care too
*/
- WARN("unhandled SUSPEND transition (%s)\n",
+ WARNING("unhandled SUSPEND transition (%s)\n",
otg_state_string(musb));
}
}
} else {
csr = musb_readw(ep->regs, MUSB_RXCSR);
if (csr & MUSB_RXCSR_RXPKTRDY)
- WARN("rx%d, packet/%d ready?\n", ep->epnum,
+ WARNING("rx%d, packet/%d ready?\n", ep->epnum,
musb_readw(ep->regs, MUSB_RXCOUNT));
musb_h_flush_rxfifo(ep, MUSB_RXCSR_CLRDATATOG);
pipe = urb->pipe;
- DBG(5, "<== hw %d rxcsr %04x, urb actual %d (+dma %zd)\n",
+ DBG(5, "<== hw %d rxcsr %04x, urb actual %d (+dma %zu)\n",
epnum, rx_csr, urb->actual_length,
dma ? dma->actual_len : 0);
done = true;
}
- DBG(2, "RXCSR%d %04x, reqpkt, len %zd%s\n", epnum, rx_csr,
+ DBG(2, "RXCSR%d %04x, reqpkt, len %zu%s\n", epnum, rx_csr,
xfer_len, dma ? ", dma" : "");
rx_csr &= ~MUSB_RXCSR_H_REQPKT;
return 0;
if (is_host_active(musb) && musb->is_active) {
- WARN("trying to suspend as %s is_active=%i\n",
+ WARNING("trying to suspend as %s is_active=%i\n",
otg_state_string(musb), musb->is_active);
return -EBUSY;
} else
reg |= MUSB_DEVCTL_HR;
musb_writeb(mbase, MUSB_DEVCTL, reg);
/* MUSB_HST_MODE( ((struct musb*)data) ); */
- /* WARN("Host Mode\n"); */
+ /* WARNING("Host Mode\n"); */
}
break;