]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: qcom: pdr: fix parsing of domains lists
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 21 Jun 2024 22:03:41 +0000 (01:03 +0300)
committerBjorn Andersson <andersson@kernel.org>
Mon, 24 Jun 2024 03:41:39 +0000 (22:41 -0500)
commit57f20d51f35780f240ecf39d81cda23612800a92
tree88d8205fc7a411933ff50c70fff21a42b8eeeb05
parent107924c14e3ddd85119ca43c26a4ee1056fa9b84
soc: qcom: pdr: fix parsing of domains lists

While parsing the domains list, start offsets from 0 rather than from
domains_read. The domains_read is equal to the total count of the
domains we have seen, while the domains list in the message starts from
offset 0.

Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers")
Tested-by: Steev Klimaszewski <steev@kali.org>
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240622-qcom-pd-mapper-v9-2-a84ee3591c8e@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/pdr_interface.c