]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
soc: qcom-geni-se: Cleanup the code to remove proxy votes
authorRoja Rani Yarubandi <rojay@codeaurora.org>
Wed, 24 Mar 2021 10:18:35 +0000 (15:48 +0530)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:53 +0000 (15:42 -0500)
commitc2cf3921fdc742d5ca53a85a29114a19404970eb
tree8e67eb8da207e8e92d7941dab238badada05a5f5
parentb74afe581ac54eb0931f76401837c06a41f43c28
soc: qcom-geni-se: Cleanup the code to remove proxy votes

BugLink: https://bugs.launchpad.net/bugs/1923069
commit 29d96eb261345c8d888e248ae79484e681be2faa upstream.

This reverts commit 048eb908a1f2 ("soc: qcom-geni-se: Add interconnect
support to fix earlycon crash")

ICC core and platforms drivers supports sync_state feature, which
ensures that the default ICC BW votes from the bootloader is not
removed until all it's consumers are probes.

The proxy votes were needed in case other QUP child drivers
I2C, SPI probes before UART, they can turn off the QUP-CORE clock
which is shared resources for all QUP driver, this causes unclocked
access to HW from earlycon.

Given above support from ICC there is no longer need to maintain
proxy votes on QUP-CORE ICC node from QUP wrapper driver for early
console usecase, the default votes won't be removed until real
console is probed.

Cc: stable@vger.kernel.org
Fixes: 266cd33b5913 ("interconnect: qcom: Ensure that the floor bandwidth value is enforced")
Fixes: 7d3b0b0d8184 ("interconnect: qcom: Use icc_sync_state")
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20210324101836.25272-2-rojay@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/soc/qcom/qcom-geni-se.c
drivers/tty/serial/qcom_geni_serial.c
include/linux/qcom-geni-se.h