serial: 8250_omap: Set the console genpd always on if no console suspend
authorThomas Richard <thomas.richard@bootlin.com>
Tue, 17 Oct 2023 13:05:40 +0000 (15:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 16:34:34 +0000 (18:34 +0200)
commit68e6939ea9ec3d6579eadeab16060339cdeaf940
tree65f1a0d194f28d98b78d473a1377203265713672
parenta30badfd7c13fc8763a9e10c5a12ba7f81515a55
serial: 8250_omap: Set the console genpd always on if no console suspend

If the console suspend is disabled, the genpd of the console shall not
be powered-off during suspend.
Set the flag GENPD_FLAG_ALWAYS_ON to the corresponding genpd during
suspend, and restore the original value during the resume.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://lore.kernel.org/r/20231017130540.1149721-1-thomas.richard@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c