serial: qcom-geni: fix opp vote on shutdown
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 14 Jul 2023 13:02:13 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 18:24:29 +0000 (20:24 +0200)
commit8ece7b754bc34ffd7fcc8269ccb9128e72ca76d8
treef560f60c8e9ebae932e8c0c328f88e362823fb3d
parentd9219528fab995c7cae79313867a8a92ee8e1f28
serial: qcom-geni: fix opp vote on shutdown

The operating-performance-point vote needs to be dropped when shutting
down the port to avoid wasting power by keeping resources like power
domains in an unnecessarily high performance state (e.g. when a UART
connected Bluetooth controller is not in use).

Fixes: a5819b548af0 ("tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state")
Cc: stable@vger.kernel.org # 5.9
Cc: Rajendra Nayak <quic_rjendra@quicinc.com>
Cc: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230714130214.14552-2-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c