]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Sat, 29 Nov 2025 01:32:05 +0000 (19:32 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:28 +0000 (14:03 +0100)
commitde4a27113099a8916bc715c322fb23965bdfe4d2
tree87a1a7ce00e2a8f239aaefca530e235de171dcd0
parent14980281ebff84f6b6ec9262ba6951c73031680c
remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs

[ Upstream commit 7e81fa8d809ed1e67ae9ecd52d20a20c2c65d877 ]

The "qcom,halt-regs" consists of a phandle reference followed by the
three offsets within syscon for halt registers. Thus, we need to
request 4 integers from of_property_read_variable_u32_array(), with
the halt_reg ofsets at indexes 1, 2, and 3. Offset 0 is the phandle.

With MAX_HALT_REG at 3, of_property_read_variable_u32_array() returns
-EOVERFLOW, causing .probe() to fail.

Increase MAX_HALT_REG to 4, and update the indexes accordingly.

Fixes: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404")
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Link: https://lore.kernel.org/r/20251129013207.3981517-1-mr.nuke.me@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_q6v5_wcss.c