tty: n_gsm: Fix waking up upper tty layer when room available
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 12 May 2020 11:53:23 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 11:37:32 +0000 (13:37 +0200)
commit01dbb362f0a114fbce19c8abe4cd6f4710e934d5
treeb38fd80d6452d2c4a5c09ac64fce5833de924c3c
parent84d6f81c1fb58b56eba81ff0a36cf31946064b40
tty: n_gsm: Fix waking up upper tty layer when room available

Warn the upper layer when n_gms is ready to receive data
again. Without this the associated virtual tty remains blocked
indefinitely.

Fixes: e1eaea46bb40 ("tty: n_gsm line discipline")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20200512115323.1447922-4-gregory.clement@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c