]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
usb: musb: core: log VBUS error
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 10 Mar 2013 00:49:28 +0000 (02:49 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 22 Mar 2013 06:44:24 +0000 (08:44 +0200)
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>
drivers/usb/musb/musb_core.c

index 5fbabc0037b4363a5016bf583e4b34883b9ca7af..37a261a6bb6aa1d75d8e9a0b27e787d0cffeff41 100644 (file)
@@ -603,7 +603,8 @@ 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, %s), retry #%d, port1 %08x\n",
                                usb_otg_state_string(musb->xceiv->state),
                                devctl,
                                ({ char *s;