kernel_samsung_a53x/drivers/tty/serial/8250
Tony Lindgren f4bfebab79 serial: 8250_omap: Fix errors with no_console_suspend
[ Upstream commit 560706eff7c8e5621b0d63afe0866e0e1906e87e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-08 11:26:14 +01:00
..
8250.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_accent.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_acorn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_aspeed_vuart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_bcm2835aux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_boca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dwlib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dwlib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_early.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_em.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_exar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_exar_st16c554.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fintek.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fourport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fsl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_gsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_hp300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_hub6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_ingenic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_ioc3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_lpc18xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_lpss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_men_mcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_mid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_mtk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_omap.c serial: 8250_omap: Fix errors with no_console_suspend 2024-11-08 11:26:14 +01:00
8250_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_pnp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_port.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_pxa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serial_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00