]> git.baikalelectronics.ru Git - kernel.git/commit
s390/3215: fix tty output containing tabs
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 Aug 2014 10:01:30 +0000 (12:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 15 Aug 2014 07:01:17 +0000 (09:01 +0200)
commit8a0a97dddac30b1c0c6f149980d09f750c8449d7
tree5bcbcd7da9d5ee77b2abb8870b8f6ad4556ed648
parent86a1ffa84a786f8eef2b055929d0b4836c5c93de
s390/3215: fix tty output containing tabs

git commit 8c1a14a450a1cb1634add809a63734f3611a3eaa
"n_tty: do O_ONLCR translation as a single write"
surfaced a bug in the 3215 device driver. In combination this
broke tab expansion for tty ouput.

The cause is an asymmetry in the behaviour of tty3215_ops->write
vs tty3215_ops->put_char. The put_char function scans for '\t'
but the write function does not.

As the driver has logic for the '\t' expansion remove XTABS
from c_oflag of the initial termios as well.

Reported-by: Stephen Powell <zlinuxman@wowway.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/con3215.c