]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: samsung: wait for transfer completion before clock disable
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 24 Nov 2014 06:56:21 +0000 (07:56 +0100)
committerZefan Li <lizefan@huawei.com>
Tue, 14 Apr 2015 09:33:43 +0000 (17:33 +0800)
commite660b2f263de95566ffa53f9f0cc229e239311a7
treefb2f925d3c5de99114ded7363f93b4add095a9d3
parent9de18f8e90f456277efe3310546069c30ec2f18e
serial: samsung: wait for transfer completion before clock disable

commit 1ff383a4c3eda8893ec61b02831826e1b1f46b41 upstream.

This patch adds waiting until transmit buffer and shifter will be empty
before clock disabling.

Without this fix it's possible to have clock disabled while data was
not transmited yet, which causes unproper state of TX line and problems
in following data transfers.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/tty/serial/samsung.c