]> git.baikalelectronics.ru Git - kernel.git/commit
tty: n_gsm: fix missing update of modem controls after DLCI open
authorDaniel Starke <daniel.starke@siemens.com>
Wed, 20 Apr 2022 10:13:44 +0000 (03:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:35:05 +0000 (16:35 +0200)
commit56a771e1afd561936fbf93c341e4a54fa34e8692
treea89885fa774de1c7368fd0ff2fbac4dbfaf6c578
parent760e8bf5420f6a83d8a1c298ec8670464b46d932
tty: n_gsm: fix missing update of modem controls after DLCI open

[ Upstream commit d6c9b0b8950dee99f2611bfd68bf7d6f65ab491d ]

Currently the peer is not informed about the initial state of the modem
control lines after a new DLCI has been opened.
Fix this by sending the initial modem control line states after DLCI open.

Fixes: 99551fa31543 ("tty: n_gsm line discipline")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220420101346.3315-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/n_gsm.c