Commit accadd81 authored by Roger Quadros's avatar Roger Quadros Committed by Greg Kroah-Hartman

usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox()

commit 0913750f upstream.

We need to break from all cases if we want to treat
each one of them separately.
Reported-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Fixes: d2728fb3 ("usb: dwc3: omap: Pass VBUS and ID events transparently")
Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 808ee146
......@@ -249,6 +249,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment