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>
Wed, 24 Jun 2020 15:50:27 +0000 (17:50 +0200)
commit860b8717f7247384e500ba15c89e9b5327d00423
tree2fe5c641f5bc13cc3ecb3f6bc8d09809df88c2b4
parent3a497f97a3b6927dc9a4ccd1754c8ad683681e5e
tty: n_gsm: Fix waking up upper tty layer when room available

[ Upstream commit 01dbb362f0a114fbce19c8abe4cd6f4710e934d5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/n_gsm.c