Re: [PATCHv2 05/11] serdev: add serdev_device_wait_until_sent

2017-03-22 Thread Pavel Machek
Hi! > @@ -47,10 +48,13 @@ static void ttyport_write_wakeup(struct tty_port *port) > struct serport *serport = serdev_controller_get_drvdata(ctrl); > > if (!test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &port->tty->flags)) > - return; > + goto out; > > if (te

[PATCHv2 05/11] serdev: add serdev_device_wait_until_sent

2017-03-21 Thread Sebastian Reichel
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 Signed-off-by: Sebastian Reichel --- drivers/tty/serdev/core.c | 11 +++