]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:39 +0000 (17:06 -0800)
commit1ff383a4c3eda8893ec61b02831826e1b1f46b41
tree23f46feb7762af806935622ca0a4064d1ebef14a
parentddcbad929510bcad640693fe3cf299632823f61c
serial: samsung: wait for transfer completion before clock disable

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.

Cc: <stable@vger.kernel.org> # v2.6.26+
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c