diff options
author | Tony Lindgren <tony@atomide.com> | 2023-06-14 07:59:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-15 12:20:49 +0200 |
commit | 20a41a62618df85f3a2981008edec5cadd785e0a (patch) | |
tree | 4daf1be10bd4d258ae324f50621a63b42d57128a /kernel/time | |
parent | f3710f5e9e1a68da53202cffba73f4b604f05b15 (diff) | |
download | linux-20a41a62618df85f3a2981008edec5cadd785e0a.tar.gz linux-20a41a62618df85f3a2981008edec5cadd785e0a.tar.bz2 linux-20a41a62618df85f3a2981008edec5cadd785e0a.zip |
serial: 8250_omap: Use force_suspend and resume for system suspend
We should not rely on autosuspend timeout for system suspend. Instead,
let's use force_suspend and force_resume functions. Otherwise the serial
port controller device may not be idled on suspend.
As we are doing a register write on suspend to configure the serial port,
we still need to runtime PM resume the port on suspend.
While at it, let's switch to pm_runtime_resume_and_get() and check for
errors returned. And let's add the missing line break before return to the
suspend function while at it.
Fixes: 09d8b2bdbc5c ("serial: 8250: omap: Provide ability to enable/disable UART as wakeup source")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Dhruva Gole <d-gole@ti.com>
Message-ID: <20230614045922.4798-1-tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions