]> www.infradead.org Git - users/willy/linux.git/commit
soc: qcom: pmic_glink: Actually communicate when remote goes down
authorBjorn Andersson <quic_bjorande@quicinc.com>
Tue, 20 Aug 2024 20:29:32 +0000 (13:29 -0700)
committerBjorn Andersson <andersson@kernel.org>
Wed, 21 Aug 2024 13:37:37 +0000 (08:37 -0500)
commitad51126037a43c05f5f4af5eb262734e3e88ca59
tree591f9f1046ea677e547a629139745fdd593d1cd9
parent11bb2ffb679399f99041540cf662409905179e3a
soc: qcom: pmic_glink: Actually communicate when remote goes down

When the pmic_glink state is UP and we either receive a protection-
domain (PD) notification indicating that the PD is going down, or that
the whole remoteproc is going down, it's expected that the pmic_glink
client instances are notified that their function has gone DOWN.

This is not what the code does, which results in the client state either
not updating, or being wrong in many cases. So let's fix the conditions.

Fixes: 58ef4ece1e41 ("soc: qcom: pmic_glink: Introduce base PMIC GLINK driver")
Cc: stable@vger.kernel.org
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Amit Pundir <amit.pundir@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240820-pmic-glink-v6-11-races-v3-3-eec53c750a04@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/pmic_glink.c