]> git.ipfire.org Git - thirdparty/linux.git/commit
serial: qcom-geni: move resource control logic to separate functions
authorPraveen Talari <quic_ptalari@quicinc.com>
Mon, 21 Jul 2025 17:45:29 +0000 (23:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2025 16:52:50 +0000 (18:52 +0200)
commit94d691417e6f1fe5ba28c092fe95de3dc66d5e3c
treeeaebc007a23789ccf6f516722ac2bb432543784e
parent4b2601ae3066daba5674049e83376317f66d45e8
serial: qcom-geni: move resource control logic to separate functions

Supports use in PM system/runtime frameworks, helping to distinguish new
resource control mechanisms and facilitate future modifications within
the new API.

The code that handles the actual enable or disable of resources like clock
and ICC paths to a separate function (geni_serial_resources_on() and
geni_serial_resources_off()) which enhances code readability.

Introduced minor return checks in newly added function APIs to enhance
error detection and prevent silent failures.

Signed-off-by: Praveen Talari <quic_ptalari@quicinc.com>
Link: https://lore.kernel.org/r/20250721174532.14022-6-quic_ptalari@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c