From: Youngmin Nam Date: Fri, 7 Aug 2015 04:51:48 +0000 (+0900) Subject: serial: samsung: remove UART baudrate clock enable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=290c88b7e1755de4202ab7e38a25baee27aa0bf7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; }