]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/kernel/early_printk.c
serial: sh-sci: Reorder the SCxTDR write after the TDxE clear.
[linux-2.6-omap-h63xx.git] / arch / sh / kernel / early_printk.c
index 98a29a78230179f54425d27ea35947beb4de405e..a952dcf9999d43bedbef8ff275aa3517fb13ab91 100644 (file)
@@ -85,9 +85,9 @@ static void scif_sercon_putc(int c)
        while (((sci_in(&scif_port, SCFDR) & EPK_FIFO_BITS) >= EPK_FIFO_SIZE))
                ;
 
-       sci_out(&scif_port, SCxTDR, c);
        sci_in(&scif_port, SCxSR);
        sci_out(&scif_port, SCxSR, 0xf3 & ~(0x20 | 0x40));
+       sci_out(&scif_port, SCxTDR, c);
 
        while ((sci_in(&scif_port, SCxSR) & 0x40) == 0)
                ;