serial: samsung: Reorder the sequence of clock control when call s3c24xx_serial_set_t...
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 21 Apr 2016 09:58:31 +0000 (18:58 +0900)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:27 +0000 (23:07 -0400)
commit664fcc116904a7414f7bbd0831c973cbd28b59ad
tree8dd08e1486136feb14cc5ac7eb20648ccd934c2b
parent5ec75b71be17201805f2e6b7ef9f17f2d6b412d3
serial: samsung: Reorder the sequence of clock control when call s3c24xx_serial_set_termios()

[ Upstream commit b8995f527aac143e83d3900ff39357651ea4e0f6 ]

This patch fixes the broken serial log when changing the clock source
of uart device. Before disabling the original clock source, this patch
enables the new clock source to protect the clock off state for a split second.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/tty/serial/samsung.c