serdev: add serdev_device_wait_until_sent
authorSebastian Reichel <sre@kernel.org>
Tue, 28 Mar 2017 15:59:31 +0000 (17:59 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:12:16 +0000 (22:12 +0200)
commitb3f80c8f75efb2e6a817a0e48bf36cd30685a138
tree0c87449d8c01772ebb9ec801b0de332a51c90331
parent2f09276769a1f9c515e7767284fb188198ddfed7
serdev: add serdev_device_wait_until_sent

Add method, which waits until the transmission buffer has been sent.
Note, that the change in ttyport_write_wakeup is related, since
tty_wait_until_sent will hang without that change.

Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/tty/serdev/core.c
drivers/tty/serdev/serdev-ttyport.c
include/linux/serdev.h