]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS
authorSneh Mankad <sneh.mankad@oss.qualcomm.com>
Mon, 25 Aug 2025 06:23:50 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:26 +0000 (11:56 +0200)
commit2f2738fe274b2f6de9ce57b0961e27a1fd4a1a75
treef5bc8a2f57a3ccb12d4b5957b7d52b744f40de0c
parent8e6846e8208c601d9aa046130f9d98f4bac60847
soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS

[ Upstream commit f87412d18edb5b8393eb8cb1c2d4a54f90185a21 ]

Unconditionally clear the TCS_AMC_MODE_TRIGGER bit when a
transaction completes. Previously this bit was only cleared when
a wake TCS was borrowed as an AMC TCS but not for dedicated
AMC TCS. Leaving this bit set for AMC TCS and entering deeper low
power modes can generate a false completion IRQ.

Prevent this scenario by always clearing the TCS_AMC_MODE_TRIGGER
bit upon receiving a completion IRQ.

Fixes: 15b3bf61b8d4 ("soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS")
Signed-off-by: Sneh Mankad <sneh.mankad@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250825-rpmh_rsc_change-v1-1-138202c31bf6@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/rpmh-rsc.c