]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:28:17 +0000 (15:28 +0100)
commit3c0458027103eddd9ec0affdfdec42c51cc7f6aa
tree6f4a2a9f96ce9ceb9652c577330e80edcb528e38
parente41c5a9b99d76b11966afa92922757bb630e31ad
serial: samsung: Reorder the sequence of clock control when call s3c24xx_serial_set_termios()

commit b8995f527aac143e83d3900ff39357651ea4e0f6 upstream.

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: Ben Hutchings <ben@decadent.org.uk>
drivers/tty/serial/samsung.c