]> git.baikalelectronics.ru Git - kernel.git/commit
s390/3270: handle reconnect of a tty with a different size
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 May 2016 13:07:00 +0000 (15:07 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 May 2016 11:24:46 +0000 (13:24 +0200)
commit32639b9e0c8227f78d1420c2eb3e3afc40162272
tree699b58fdaa61cfbc76d8c8482a4cdc395efe8ffd
parent07af21f6c580d2c8afd07917216454f2da3d2c01
s390/3270: handle reconnect of a tty with a different size

If an existing 3270 terminal disconnects and reconnects with a
different size, the 3270 driver still works with the old size.
If the new dimensions are larger the output merely looks funny,
if the new dimensions are smaller the terminal is unusable.

To fix this restart the size detection after a unit check has
been received.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/raw3270.c
drivers/s390/char/tty3270.c