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>
Fri, 15 May 2020 11:37:32 +0000 (13:37 +0200)
commit84d6f81c1fb58b56eba81ff0a36cf31946064b40
tree5c016b9714d5483d502fb963246185fcc24925a1
parentfe92c2a801267c3d90240752a9df542174794567
tty: n_gsm: Fix SOF skipping

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>
drivers/tty/n_gsm.c