diff options
| author | Val Packett <val@packett.cool> | 2026-02-01 17:55:03 -0300 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2026-07-09 15:03:00 -0500 |
| commit | 3dbc90b9c22ea96e37bf55f6011e63b5123ec668 (patch) | |
| tree | 0180692fccdb6c9ab1df1abeb4cbf4cd3528d2b1 /include/linux | |
| parent | 8c952807c2cebd5e9e9b37146c9383229794c129 (diff) | |
remoteproc: qcom_wcnss: Fix handling the lack of PD regulators in v3
The changes introduced to handle single power domain platforms have
swapped the info pointer increment from num_pd_vregs to num_pds, which
would shift the info pointer past the end of the array for pronto-v3,
which does not list power domain regulators in vregs.
This showed up as a difference between GCC- and LLVM-compiled kernels
on SDM632 devices, where only with LLVM one would get the
"regulator request with no identifier" error, because the out-of-bounds
memory ended up being zeroed. Fix by skipping the increment when there
are more power domains than regulators.
Signed-off-by: Val Packett <val@packett.cool>
Fixes: 65991ea8a6d1 ("remoteproc: qcom_wcnss: Handle platforms with only single power domain")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Fixes: 65991ea8a6d1 ("remoteproc: qcom_wcnss: Handle platforms with only single power domain")
Link: https://lore.kernel.org/r/20260201210230.911220-1-val@packett.cool
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
