tty: n_gsm: Fix SOF skipping
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 12 May 2020 11:53:22 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:27 +0000 (17:50 +0200)
commit3a497f97a3b6927dc9a4ccd1754c8ad683681e5e
tree58606e5388939fabcdcf34cda1e2c3b35fda38d1
parent7fcc2ca6a3fbe21b70162bd6a2a2ebf4417bf929
tty: n_gsm: Fix SOF skipping

[ Upstream commit 84d6f81c1fb58b56eba81ff0a36cf31946064b40 ]

For at least some modems like the TELIT LE910, skipping SOF makes
transfers blocking indefinitely after a short amount of data
transferred.

Given the small improvement provided by skipping the SOF (just one
byte on about 100 bytes), it seems better to completely remove this
"feature" than make it optional.

Fixes: e1eaea46bb40 ("tty: n_gsm line discipline")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20200512115323.1447922-3-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