usb: dwc3: gadget: WARN() in case of unknown IRQ
authorFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 19:49:28 +0000 (13:49 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 19:56:10 +0000 (13:56 -0600)
if an unknown IRQ event is triggered, that means
the HW is really misbehaving. Instead of printing
a debug message, let's WARN() so users report
when that happens.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 944036d4c83d31c0036928842633ee048a525f00..c6eec261a3043682d812937efbe40eabd6fc260e 100644 (file)
@@ -2518,7 +2518,7 @@ static void dwc3_gadget_interrupt(struct dwc3 *dwc,
                dev_vdbg(dwc->dev, "Overflow\n");
                break;
        default:
-               dev_dbg(dwc->dev, "UNKNOWN IRQ %d\n", event->type);
+               dev_WARN(dwc->dev, "UNKNOWN IRQ %d\n", event->type);
        }
 }