Skip to content

Commit

Permalink
msm_serial: fix clock rate on DMA-based uarts
Browse files Browse the repository at this point in the history
The driver explicitly requests a clock rate for the UART, but it is
off by a factor of four from the dividers that it programs into the
UART.  Fix this by setting the rate to 1/4 of the current value.

Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
David Brown authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 43b5f0d commit 7b6031a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ static int __init msm_serial_probe(struct platform_device *pdev)
return PTR_ERR(msm_port->clk);

if (msm_port->is_uartdm)
clk_set_rate(msm_port->clk, 7372800);
clk_set_rate(msm_port->clk, 1843200);

port->uartclk = clk_get_rate(msm_port->clk);
printk(KERN_INFO "uartclk = %d\n", port->uartclk);
Expand Down

0 comments on commit 7b6031a

Please sign in to comment.