]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: qcom-geni: Enable PM runtime for serial driver
authorPraveen Talari <praveen.talari@oss.qualcomm.com>
Mon, 10 Nov 2025 10:10:42 +0000 (15:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 12:12:47 +0000 (13:12 +0100)
commit10904d725f6e382376266a679ff425af488fcbcd
treefcc6be727502bdee3d4e9112557445d20e9dfee6
parent29e8a0c587e328ed458380a45d6028adf64d7487
serial: qcom-geni: Enable PM runtime for serial driver

The GENI serial driver currently handles power resource management
through calls to the statically defined geni_serial_resources_on() and
geni_serial_resources_off() functions. This approach reduces modularity
and limits support for platforms with diverse power management
mechanisms, including resource managed by firmware.

Improve modularity and enable better integration with platform-specific
power management, introduce support for runtime PM. Use
pm_runtime_resume_and_get() and pm_runtime_put_sync() within the
qcom_geni_serial_pm() callback to control resource power state
transitions based on UART power state changes.

Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Link: https://patch.msgid.link/20251110101043.2108414-4-praveen.talari@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c