diff options
| author | Ilpo Järvinen <[email protected]> | 2024-12-10 17:01:20 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-12-23 18:01:18 +0000 |
| commit | ed2761958ad77e54791802b07095786150eab844 (patch) | |
| tree | eef2d37188d9f0e5cf91c0a67047acf246942002 /tools/net/ynl/pyynl/cli.py | |
| parent | Linux 6.13-rc3 (diff) | |
| download | kernel-ed2761958ad77e54791802b07095786150eab844.tar.gz kernel-ed2761958ad77e54791802b07095786150eab844.zip | |
tty: serial: 8250: Fix another runtime PM usage counter underflow
The commit f9b11229b79c ("serial: 8250: Fix PM usage_count for console
handover") fixed one runtime PM usage counter balance problem that
occurs because .dev is not set during univ8250 setup preventing call to
pm_runtime_get_sync(). Later, univ8250_console_exit() will trigger the
runtime PM usage counter underflow as .dev is already set at that time.
Call pm_runtime_get_sync() to balance the RPM usage counter also in
serial8250_register_8250_port() before trying to add the port.
Reported-by: Borislav Petkov (AMD) <[email protected]>
Fixes: bedb404e91bb ("serial: 8250_port: Don't use power management for kernel console")
Cc: stable <[email protected]>
Tested-by: Borislav Petkov (AMD) <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
