serial: 8250_uniphier: use CHAR register for canary to detect power-off
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 8 Aug 2017 13:48:42 +0000 (22:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:22 +0000 (20:51 +0200)
commitd3a9184773c5cde483e249096ae7c7f98f310e20
tree4e93c505f6457f63cfb498f2ce29bfaa54e45152
parent39be40ce066da4d5d59bf53f72b914018bc84029
serial: 8250_uniphier: use CHAR register for canary to detect power-off

The 8250 core uses the SCR as a canary to discover if the console has
been powered-off.

This hardware does not have SCR at offset 7, but an unused register
CHAR at a different offset.  As long as the character interrupt is
disabled, the register access has no impact, so it is useful as an
alternative scratch register.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c