Commit:     7bbdc3d51cf793dd81c38f794f4cb73df58d1527
Parent:     3e8d4e2075e049664294722b436edfc5ced6ca53
Author:     Mark A. Greer <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 4 22:27:54 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 09:44:10 2008 -0800

    serial: MPSC: set baudrate when BRG divider is set.
    The clock to generate the desired baudrate with the MPSC is first divided
    by the Baud Rate Generator (BRG) and then by the MPSC itself.  So, when the
    BRG divider is changed, the MPSC divider must also be changed to generate
    the correct baudrate.  During MPSC initialization, the BRG divider is
    changed but the MPSC divider isn't changed until much later.  This results
    in some printk's coming out garbled.  To fix that, set the MPSC divider at
    the same time that the BRG divider is changed.
    Signed-off-by: Mark A. Greer <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/serial/mpsc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/mpsc.c b/drivers/serial/mpsc.c
index 4d643c9..cb3a919 100644
--- a/drivers/serial/mpsc.c
+++ b/drivers/serial/mpsc.c
@@ -612,6 +612,7 @@ static void mpsc_hw_init(struct mpsc_port_info *pi)
        /* No preamble, 16x divider, low-latency, */
        writel(0x04400400, pi->mpsc_base + MPSC_MMCRH);
+       mpsc_set_baudrate(pi, pi->default_baud);
        if (pi->mirror_regs) {
                pi->MPSC_CHR_1_m = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to