From ce03ee80255ccfc5a7453a36549f3090a62a82c0 Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Fri, 11 Nov 2016 17:22:55 +0900 Subject: [PATCH] [COMMON] serial: samsung: add clock control routine in suspend Change-Id: I85a472eca32c6447aee9b571fda83b18928266e0 Signed-off-by: Youngmin Nam --- drivers/tty/serial/samsung.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 72c654fb8ffa..6393e0118acf 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -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 -- 2.20.1