]> 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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 13:38:59 +0000 (14:38 +0100)
commitd053001d5433355483f532e1201ed063f8d56b81
treebb6d4bdaa460f703192ae705ce219d1e63d7028e
parent36e4033e7a20009e8d0d4550f0fed22b43f2f89c
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: Jiri Slaby <jslaby@suse.cz>
drivers/tty/serial/samsung.c