aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2013-03-09 19:49:28 -0500
committerFelipe Balbi <balbi@ti.com>2013-03-22 02:44:24 -0400
commit54485116cd77b361864c17c40c3280b97b6fbecc (patch)
tree2f119b1210ae14fa54bb4219571aebbad7b50160 /drivers/usb/musb
parente21de10cd8b1338200d96038aa66fb966fcf6ed0 (diff)
usb: musb: core: log VBUS error
VBUS_ERROR is a serious error that the driver often doesn't recover from in my tests, so we should at least inform the user about it. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 5fbabc0037b4..37a261a6bb6a 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -603,7 +603,8 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
603 break; 603 break;
604 } 604 }
605 605
606 dev_dbg(musb->controller, "VBUS_ERROR in %s (%02x, %s), retry #%d, port1 %08x\n", 606 dev_printk(ignore ? KERN_DEBUG : KERN_ERR, musb->controller,
607 "VBUS_ERROR in %s (%02x, %s), retry #%d, port1 %08x\n",
607 usb_otg_state_string(musb->xceiv->state), 608 usb_otg_state_string(musb->xceiv->state),
608 devctl, 609 devctl,
609 ({ char *s; 610 ({ char *s;