kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: Fix switch statement in ohci-tmio.c
@ 2014-08-14 18:05 Nicholas Krause
  2014-08-14 18:06 ` Nick Krause
  2014-08-14 19:04 ` Tobias Boege
  0 siblings, 2 replies; 20+ messages in thread
From: Nicholas Krause @ 2014-08-14 18:05 UTC (permalink / raw)
  To: kernelnewbies

I am fixing the bug on at the link, https://bugzilla.kernel.org/show_bug.cgi?id=79931.
This bug report states that in the function, tmio_hc_stop the switch has no needed breaks.
Further more this patch fixes this bug by adding the needed breaks.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 drivers/usb/host/ohci-tmio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/usb/host/ohci-tmio.c b/drivers/usb/host/ohci-tmio.c
index bb40958..d2b5382 100644
--- a/drivers/usb/host/ohci-tmio.c
+++ b/drivers/usb/host/ohci-tmio.c
@@ -100,12 +100,16 @@ static void tmio_stop_hc(struct platform_device *dev)
 	switch (ohci->num_ports) {
 		default:
 			dev_err(&dev->dev, "Unsupported amount of ports: %d\n", ohci->num_ports);
+			break;
 		case 3:
 			pm |= CCR_PM_USBPW3;
+			break;
 		case 2:
 			pm |= CCR_PM_USBPW2;
+			break;
 		case 1:
 			pm |= CCR_PM_USBPW1;
+			break;
 	}
 	tmio_iowrite8(0, tmio->ccr + CCR_INTC);
 	tmio_iowrite8(0, tmio->ccr + CCR_ILME);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-08-15  4:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 18:05 [PATCH] usb: Fix switch statement in ohci-tmio.c Nicholas Krause
2014-08-14 18:06 ` Nick Krause
2014-08-14 18:13   ` Kristofer Hallin
2014-08-14 18:18     ` Nick Krause
2014-08-14 18:36       ` Lucas Tanure
2014-08-14 20:51       ` Valdis.Kletnieks at vt.edu
2014-08-14 21:00         ` Nick Krause
2014-08-14 21:03         ` Mandeep Sandhu
2014-08-14 21:13           ` Nick Krause
2014-08-14 21:38             ` Valdis.Kletnieks at vt.edu
2014-08-14 22:12               ` Nick Krause
2014-08-14 23:46                 ` Nick Krause
2014-08-15  2:16                   ` Greg Freemyer
2014-08-15  2:29                     ` Nick Krause
2014-08-15  2:42                       ` Nick Krause
2014-08-15  3:37                         ` Nick Krause
2014-08-15  3:42                           ` Jaret Flores
2014-08-15  3:43                             ` Nick Krause
2014-08-15  4:21                               ` Nick Krause
2014-08-14 19:04 ` Tobias Boege

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).