From: Grazvydas Ignotas Date: Wed, 27 Feb 2013 00:20:32 +0000 (+0200) Subject: usb: musb: always log VBUS error X-Git-Tag: sz_154~22 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=8572e1835d6cc7093e2cd06826ce21d9e8c4d9f2 usb: musb: always log VBUS error VBUS_ERROR is a serious error that the driver often doesn't recover from in my tests, we should inform user about it. --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index ad67cf92fe89..421ee5f1d646 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -592,9 +592,10 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, break; } - dev_dbg(musb->controller, "VBUS_ERROR in %s (%02x, %s), retry #%d, port1 %08x\n", + dev_printk(ignore ? KERN_DEBUG : KERN_ERR, musb->controller, + "VBUS_ERROR in %s (%02x, %02x, %s), retry #%d, port1 %08x\n", otg_state_string(musb->xceiv->state), - devctl, + devctl, power, ({ char *s; switch (devctl & MUSB_DEVCTL_VBUS) { case 0 << MUSB_DEVCTL_VBUS_SHIFT: