]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: qcom-geni-serial: Drop the icc bw votes in suspend for console
authorRajendra Nayak <rnayak@codeaurora.org>
Tue, 14 Jul 2020 05:31:49 +0000 (11:01 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Jul 2020 05:43:43 +0000 (22:43 -0700)
commit953e7426e23ec661eb1b3d6d4a751593ae729d24
tree744ed8e4ac661ff56a57edc9fe956dee081aea57
parent32257935063b374f7184f51225fc92eec17013e5
tty: serial: qcom-geni-serial: Drop the icc bw votes in suspend for console

When using the geni-serial as console, its important to be
able to hit the lowest possible power state in suspend,
even with no_console_suspend.
The only thing that prevents it today on platforms like the sc7180
is the interconnect BW votes, which we certainly don't need when
the system is in suspend. So in the suspend handler mark them as
ACTIVE_ONLY (0x3) and on resume switch them back to the ALWAYS tag (0x7)

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Akash Asthana <akashast@codeaurora.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/1594704709-26072-1-git-send-email-rnayak@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/qcom-geni-se.c
drivers/tty/serial/qcom_geni_serial.c
include/linux/qcom-geni-se.h