summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-01-27 13:49:28 -0600
committerFelipe Balbi <balbi@ti.com>2015-01-27 13:56:10 -0600
commite9f2aa871c732acfe29c3ba5e6b541b2aa786778 (patch)
tree1a496958952786ac6f019a7bac8d55b5c91687af /drivers
parent4cd8f6d05599be8bd2052df28c805f7c2f8ff479 (diff)
downloadlinux-stable-e9f2aa871c732acfe29c3ba5e6b541b2aa786778.tar.gz
linux-stable-e9f2aa871c732acfe29c3ba5e6b541b2aa786778.tar.bz2
linux-stable-e9f2aa871c732acfe29c3ba5e6b541b2aa786778.zip
usb: dwc3: gadget: WARN() in case of unknown IRQ
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 944036d4c83d..c6eec261a304 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -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);
}
}