From: Roger Quadros Date: Wed, 15 Feb 2017 11:38:22 +0000 (+0200) Subject: usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox() X-Git-Tag: v4.14-rc1~1307^2~15^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0913750f9fb6f26bcd00c8f9dd9a8d1b8d031246;p=platform%2Fkernel%2Flinux-rpi3.git usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox() We need to break from all cases if we want to treat each one of them separately. Reported-by: Gustavo A. R. Silva Fixes: d2728fb3e01f ("usb: dwc3: omap: Pass VBUS and ID events transparently") Cc: #v4.8+ Signed-off-by: Roger Quadros Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 4a59577..f8d0747 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -250,6 +250,7 @@ static void dwc3_omap_set_mailbox(struct dwc3_omap *omap, val = dwc3_omap_read_utmi_ctrl(omap); val |= USBOTGSS_UTMI_OTG_CTRL_IDDIG; dwc3_omap_write_utmi_ctrl(omap, val); + break; case OMAP_DWC3_VBUS_OFF: val = dwc3_omap_read_utmi_ctrl(omap);