[COMMON] serial: samsung: add clock control routine in suspend
authorYoungmin Nam <youngmin.nam@samsung.com>
Fri, 11 Nov 2016 08:22:55 +0000 (17:22 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I85a472eca32c6447aee9b571fda83b18928266e0
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
drivers/tty/serial/samsung.c

index 72c654fb8ffabd955d45ddac615032f818ba4821..6393e0118acf2fac29b9f7e3955d8bb8dfa7e300 100644 (file)
@@ -1701,10 +1701,13 @@ static int s3c24xx_serial_suspend(struct device *dev)
        if (port) {
                uart_suspend_port(&s3c24xx_uart_drv, port);
 #ifdef CONFIG_SERIAL_SAMSUNG_HWACG
+               uart_clock_enable(ourport);
                /* disable Tx, Rx mode bit for suspend in case of HWACG */
                ucon = rd_regl(port, S3C2410_UCON);
                ucon &= ~(S3C2410_UCON_RXIRQMODE | S3C2410_UCON_TXIRQMODE) ;
                wr_regl(port, S3C2410_UCON, ucon);
+               uart_clock_disable(ourport);
+
                rx_enabled(port) = 0;
                tx_enabled(port) = 0;
 #endif