Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9f2aa87 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 4cd8f6d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
}