diff options
author | 2015-08-19 16:50:10 +0200 | |
---|---|---|
committer | 2015-08-26 17:19:49 +0200 | |
commit | 05bfd70bcdd3cd12c061cb77b73a11ba6f87379d (patch) | |
tree | 3de2be35516de728b2d9da5aefe91f34c0b23121 /drivers/s390/char/tty3270.c | |
parent | s390/dcssblk: correct out of bounds array indexes (diff) | |
download | linux-05bfd70bcdd3cd12c061cb77b73a11ba6f87379d.tar.gz linux-05bfd70bcdd3cd12c061cb77b73a11ba6f87379d.tar.bz2 linux-05bfd70bcdd3cd12c061cb77b73a11ba6f87379d.zip |
s390/3270: redraw screen on unsolicited device end
If a 3270 terminal is disconnected and later reconnected again,
it gets an unsolicited device end. This is currently ignored and
you have to hit the clear key to get the screen redrawn.
Add an automatic full redraw of the screen for this case.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/tty3270.c')
-rw-r--r-- | drivers/s390/char/tty3270.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c index e91b89dc6d1f..e96fc7fd9498 100644 --- a/drivers/s390/char/tty3270.c +++ b/drivers/s390/char/tty3270.c @@ -659,6 +659,10 @@ tty3270_irq(struct tty3270 *tp, struct raw3270_request *rq, struct irb *irb) else /* Normal end. Copy residual count. */ rq->rescnt = irb->scsw.cmd.count; + } else if (irb->scsw.cmd.dstat & DEV_STAT_DEV_END) { + /* Interrupt without an outstanding request -> update all */ + tp->update_flags = TTY_UPDATE_ALL; + tty3270_set_timer(tp, 1); } return RAW3270_IO_DONE; } |