tty: n_gsm: Fix SOF skipping
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 12 May 2020 11:53:22 +0000 (13:53 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:38:25 +0000 (15:38 -0400)
commit226dc83afbf86878f75c536cbe3516e6d923c1e6
tree0704a700fcb9bb88fc14883ae588f9606aba4871
parenta49d7ccfc436f420b7e7108d189487c189e0797c
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