]> Git Repo - linux.git/commit
soc: qcom: pmic_glink: Make client-lock non-sleeping
authorBjorn Andersson <[email protected]>
Wed, 1 May 2024 03:38:57 +0000 (20:38 -0700)
committerBjorn Andersson <[email protected]>
Wed, 1 May 2024 18:39:51 +0000 (13:39 -0500)
commit9329933699b32d467a99befa20415c4b2172389a
tree682dd07197b40f82fa0f30dd06193f5917718fc1
parentdff55f66aaba931c71ba5f20906f0a75c4df1da8
soc: qcom: pmic_glink: Make client-lock non-sleeping

The recently introduced commit '635ce0db8956 ("soc: qcom: pmic_glink:
don't traverse clients list without a lock")' ensured that the clients
list is not modified while traversed.

But the callback is made from the GLINK IRQ handler and as such this
mutual exclusion can not be provided by a (sleepable) mutex.

Replace the mutex with a spinlock.

Fixes: 635ce0db8956 ("soc: qcom: pmic_glink: don't traverse clients list without a lock")
Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/20240430-pmic-glink-sleep-while-atomic-v1-1-88fb493e8545@quicinc.com
Signed-off-by: Bjorn Andersson <[email protected]>
drivers/soc/qcom/pmic_glink.c
This page took 0.05268 seconds and 4 git commands to generate.