From 290c88b7e1755de4202ab7e38a25baee27aa0bf7 Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Fri, 7 Aug 2015 13:51:48 +0900 Subject: [PATCH] serial: samsung: remove UART baudrate clock enable This patch removes clock enable routine for baudrate. On Exynos5 and Exynos7, uart baudrate clock will be either sclk or divider of sclk which is parent clock of sclk. So, we don't need to enable baudrate clock. Because when we enable sclk, baudrate clock is also enabled. Change-Id: I3316cac79559746f8a4c27c844bc793743fe5ee6 Signed-off-by: Youngmin Nam --- drivers/tty/serial/samsung.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index ac7dd6f5a947..8d4daf0e286c 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -930,18 +930,8 @@ static void s3c24xx_serial_set_termios(struct uart_port *port, if (IS_ERR(clk)) return; - /* check to see if we need to change clock source */ - + /* setting clock for baud rate */ if (ourport->baudclk != clk) { - s3c24xx_serial_setsource(port, clk_sel); - - if (!IS_ERR(ourport->baudclk)) { - clk_disable_unprepare(ourport->baudclk); - ourport->baudclk = ERR_PTR(-EINVAL); - } - - clk_prepare_enable(clk); - ourport->baudclk = clk; ourport->baudclk_rate = clk ? clk_get_rate(clk) : 0; } -- 2.20.1