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:48:46 +0000 (17:48 +0200)
commit363e8bfc96b4e9d9e0a885408cecaf23df468523
tree6d8bcfcdb2619ba6185fd397f4ab607ffad94c42
parentc43f5761916560580397d9bc7902057835734306
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