Skip to contentSkip to conversation

powerpc: Fix CPM2 SCC1 clock initialization.

PATCH Applied Laurent Pinchart 2 participants 2 messages Apr 2, 2008 – Apr 3, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix CPM2 SCC1 clock initialization.

A missing break statement in a switch caused cpm2_clk_setup() to initialize SCC2 instead of SCC1. This patch fixes the bug.

---
 arch/powerpc/sysdev/cpm2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/sysdev/cpm2.c +1 -0
index 57ed1a4..7478e81 100644
@@ -246,6 +246,7 @@ int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode)
 	case CPM_CLK_SCC1:
 		reg = &im_cpmux->cmx_scr;
 		shift = 24;
+		break;
 	case CPM_CLK_SCC2:
 		reg = &im_cpmux->cmx_scr;
 		shift = 16;
Signature · 13 lines
1.5.0


-- 
Laurent Pinchart
CSE Semaphore Belgium

Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
F +32 (2) 387 42 75
Applied
#1 lore raw
Quoted 7 lines · Laurent Pinchart

A missing break statement in a switch caused cpm2_clk_setup() to initialize SCC2 instead of SCC1. This patch fixes the bug.

---
arch/powerpc/sysdev/cpm2.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)

applied.

However your email is malformatted. Since it was a trivial patch I fixed it up by hand.

- k