Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 20a41a6 ("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 bedb404 ("serial: 8250_port: Don't use power management for kernel console"). Fixes: 20a41a6 ("serial: 8250_omap: Use force_suspend and resume for system suspend") Cc: stable <[email protected]> Cc: Udit Kumar <[email protected]> Reported-by: Thomas Richard <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Tested-by: Thomas Richard <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information