]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: qcom_wcnss: Fix on platforms without fallback regulators
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>
Sun, 11 May 2025 23:40:15 +0000 (02:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:38:05 +0000 (14:38 +0200)
commit6a39058059f67cc6b9f74d3cf0af1f48d34e2ed6
treed170d3f631d8b29090913adc0ef0d226b55496dd
parentf6d45fd92f62845cbd1eb5128fd8f0ed7d0c5a42
remoteproc: qcom_wcnss: Fix on platforms without fallback regulators

[ Upstream commit 4ca45af0a56d00b86285d6fdd720dca3215059a7 ]

Recent change to handle platforms with only single power domain broke
pronto-v3 which requires power domains and doesn't have fallback voltage
regulators in case power domains are missing. Add a check to verify
the number of fallback voltage regulators before using the code which
handles single power domain situation.

Fixes: 65991ea8a6d1 ("remoteproc: qcom_wcnss: Handle platforms with only single power domain")
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # sdm632-fairphone-fp3
Link: https://lore.kernel.org/r/20250511234026.94735-1-matti.lehtimaki@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_wcnss.c