]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
soc: qcom-geni-se: Add interconnect support to fix earlycon crash
authorAkash Asthana <akashast@codeaurora.org>
Tue, 23 Jun 2020 10:38:51 +0000 (16:08 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 25 Jun 2020 04:49:52 +0000 (21:49 -0700)
commit048eb908a1f276ca0346f20a3e6e7d707dcd81f3
tree7b06e85144ce216862c10078f0e95460e5024038
parent58ffbba6a39979baa22d2f7e69faeffa2d9c0641
soc: qcom-geni-se: Add interconnect support to fix earlycon crash

QUP core clock is shared among all the SE drivers present on particular
QUP wrapper, the system will reset(unclocked access) if earlycon used after
QUP core clock is put to 0 from other SE drivers before real console comes
up.

As earlycon can't vote for it's QUP core need, to fix this add ICC
support to common/QUP wrapper driver and put vote for QUP core from
probe on behalf of earlycon and remove vote during earlycon exit call.

Signed-off-by: Akash Asthana <akashast@codeaurora.org>
Reported-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/1592908737-7068-3-git-send-email-akashast@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