Tony Lindgren 560706eff7 serial: 8250_omap: Fix errors with no_console_suspend
We now get errors on system suspend if no_console_suspend is set as
reported by Thomas. The errors started with commit 20a41a62618d ("serial:
8250_omap: Use force_suspend and resume for system suspend").

Let's fix the issue by checking for console_suspend_enabled in the system
suspend and resume path.

Note that with this fix the checks for console_suspend_enabled in
omap8250_runtime_suspend() become useless. We now keep runtime PM usage
count for an attached kernel console starting with commit bedb404e91bb
("serial: 8250_port: Don't use power management for kernel console").

Fixes: 20a41a62618d ("serial: 8250_omap: Use force_suspend and resume for system suspend")
Cc: stable <stable@kernel.org>
Cc: Udit Kumar <u-kumar1@ti.com>
Reported-by: Thomas Richard <thomas.richard@bootlin.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Thomas Richard <thomas.richard@bootlin.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230926061319.15140-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-03 15:01:29 +02:00
..
2023-08-11 21:12:47 +02:00
2023-09-01 09:38:00 -07:00
2021-10-21 12:35:35 +02:00
2023-08-11 21:12:47 +02:00
2023-08-11 21:12:47 +02:00
2023-09-01 09:38:00 -07:00
2023-08-11 21:12:46 +02:00
2023-09-01 09:38:00 -07:00
2022-09-22 16:12:34 +02:00
2023-08-11 21:12:45 +02:00
2023-08-11 21:12:46 +02:00
2023-08-11 21:12:47 +02:00