aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc64/kernel/udbg.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/ppc64/kernel/udbg.c b/arch/ppc64/kernel/udbg.c
index c0da45540f0f..155670a40c3b 100644
--- a/arch/ppc64/kernel/udbg.c
+++ b/arch/ppc64/kernel/udbg.c
@@ -169,12 +169,8 @@ void udbg_maple_real_putc(unsigned char c)
169 while ((real_readb(&udbg_comport->lsr) & LSR_THRE) == 0) 169 while ((real_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
170 /* wait for idle */; 170 /* wait for idle */;
171 real_writeb(c, &udbg_comport->thr); eieio(); 171 real_writeb(c, &udbg_comport->thr); eieio();
172 if (c == '\n') { 172 if (c == '\n')
173 /* Also put a CR. This is for convenience. */ 173 udbg_maple_real_putc('\r');
174 while ((real_readb(&udbg_comport->lsr) & LSR_THRE) == 0)
175 /* wait for idle */;
176 real_writeb('\r', &udbg_comport->thr); eieio();
177 }
178 } 174 }
179} 175}
180 176
@@ -194,12 +190,8 @@ void udbg_putc(unsigned char c)
194 while ((in_8(&udbg_comport->lsr) & LSR_THRE) == 0) 190 while ((in_8(&udbg_comport->lsr) & LSR_THRE) == 0)
195 /* wait for idle */; 191 /* wait for idle */;
196 out_8(&udbg_comport->thr, c); 192 out_8(&udbg_comport->thr, c);
197 if (c == '\n') { 193 if (c == '\n')
198 /* Also put a CR. This is for convenience. */ 194 udbg_putc('\r');
199 while ((in_8(&udbg_comport->lsr) & LSR_THRE) == 0)
200 /* wait for idle */;
201 out_8(&udbg_comport->thr, '\r');
202 }
203 } 195 }
204#ifdef CONFIG_PPC_PMAC 196#ifdef CONFIG_PPC_PMAC
205 else if (sccc) { 197 else if (sccc) {