diff mbox series

[1/3] usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox()

Message ID 1487158704-9006-2-git-send-email-rogerq@ti.com
State New
Headers show
Series usb: dwc3: trivial fixes. | expand

Commit Message

Roger Quadros Feb. 15, 2017, 11:38 a.m. UTC
We need to break from all cases if we want to treat
each one of them separately.

Reported-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Fixes: d2728fb3e01f ("usb: dwc3: omap: Pass VBUS and ID events transparently")
Cc: <stable@vger.kernel.org> #v4.8+
Signed-off-by: Roger Quadros <rogerq@ti.com>

---
 drivers/usb/dwc3/dwc3-omap.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.7.4

Comments

Roger Quadros March 9, 2017, 7:17 a.m. UTC | #1
Felipe,

On 15/02/17 13:38, Roger Quadros wrote:
> We need to break from all cases if we want to treat

> each one of them separately.

> 

> Reported-by: Gustavo A. R. Silva <garsilva@embeddedor.com>

> Fixes: d2728fb3e01f ("usb: dwc3: omap: Pass VBUS and ID events transparently")

> Cc: <stable@vger.kernel.org> #v4.8+

> Signed-off-by: Roger Quadros <rogerq@ti.com>


Can you please pick this one for v4.11-rc? Thanks.

> ---

>  drivers/usb/dwc3/dwc3-omap.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c

> index eb1b9cb..35b6351 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);

> 


-- 
cheers,
-roger
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index eb1b9cb..35b6351 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);