From: Youngmin Nam Date: Fri, 11 Nov 2016 08:22:55 +0000 (+0900) Subject: [COMMON] serial: samsung: add clock control routine in suspend X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce03ee80255ccfc5a7453a36549f3090a62a82c0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] serial: samsung: add clock control routine in suspend Change-Id: I85a472eca32c6447aee9b571fda83b18928266e0 Signed-off-by: Youngmin Nam --- 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