Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe3eb60 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

serdev: ttyport: do not used keyed wakeup in write_wakeup



Serdev does not use the file abstraction and specifically there will
never be anyone polling a file descriptor for POLLOUT events.

Just use plain wake_up_interruptible() in the write_wakeup callback and
document why it's there.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19ac50f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -59,7 +59,8 @@ static void ttyport_write_wakeup(struct tty_port *port)
	    test_bit(SERPORT_ACTIVE, &serport->flags))
	    test_bit(SERPORT_ACTIVE, &serport->flags))
		serdev_controller_write_wakeup(ctrl);
		serdev_controller_write_wakeup(ctrl);


	wake_up_interruptible_poll(&tty->write_wait, POLLOUT);
	/* Wake up any tty_wait_until_sent() */
	wake_up_interruptible(&tty->write_wait);


	tty_kref_put(tty);
	tty_kref_put(tty);
}
}