remoteproc fix for v6.15

Address a regression preventing the wireless subsystem remoteproc on
 some Qualcomm platforms (e.g. SDM632) from working.
 -----BEGIN PGP SIGNATURE-----
 
 iQJJBAABCAAzFiEEBd4DzF816k8JZtUlCx85Pw2ZrcUFAmgtPS4VHGFuZGVyc3Nv
 bkBrZXJuZWwub3JnAAoJEAsfOT8Nma3FXuIP/2PenqEm2XjPCsXi+SSzJYAr7ghX
 hs/jt4/lcJOhQ0zHJTbJvr3e82FdBPbFVW3X7Qr+1+o3digQVCjBRujaozuZFRGN
 WI50LrKKkrRi1dj83G09HYsJdDDKMX3nP1D4o0XwwH6DHvh8WfuED3t07PWh6EBh
 jL4XjIRJsRbhf5YBQhzsO6t5ph7bY9OZJ4dY3ytbc6Fty3ERaiKKy9j1Tp4JJY0J
 Zg6C8Vn8M2sie5+SF47v2muZXMoEVRIhQQ6buJLcKnELVOEgJ8XruxbM7XSKsdHx
 Zh/2yl7B/FLKoF51wXa0Y+ugBN/tJmNRIzYS56b6N4lbriaGvfKMeMB9zdJA+5zi
 vWnbF35/oVrAsg74Qzai2bzPeIR9dWLpR++ImZisZhaVfIq83d4RsLMThZUxZNil
 QwQAuUu0O3Fcgzb/h1t3QutVIh87LQZ8xDQwXaQxn+KGhL1mLgmGkAmebLEKUZRu
 SW5CzJUxi8D8Cnp8nprzQLS9hCuB6BZURcYh0j8MS78uIAKrsMD/M2+TU9VVPdMA
 TpR5IRIFSMQZVs2fV8YBnbc14QfttMpCjGvKCbRWYm1HTtz4akzOXg63R9k2qoG0
 L/1/0Jrjbu66fufBfuHTUmPGzlYWEHUBHJxRy4rejYKBE7VuHfZMpHePZQQHMNDo
 WAlr/qNb8kyICW/u
 =HZxd
 -----END PGP SIGNATURE-----

Merge tag 'rproc-v6.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux

Pull remoteproc fix from Bjorn Andersson:
 "Address a regression preventing the wireless subsystem remoteproc on
  some Qualcomm platforms (e.g. SDM632) from working"

* tag 'rproc-v6.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
  remoteproc: qcom_wcnss: Fix on platforms without fallback regulators
This commit is contained in:
Linus Torvalds 2025-05-20 20:12:20 -07:00
commit 4a95bc121c

View File

@ -456,7 +456,8 @@ static int wcnss_init_regulators(struct qcom_wcnss *wcnss,
if (wcnss->num_pds) {
info += wcnss->num_pds;
/* Handle single power domain case */
num_vregs += num_pd_vregs - wcnss->num_pds;
if (wcnss->num_pds < num_pd_vregs)
num_vregs += num_pd_vregs - wcnss->num_pds;
} else {
num_vregs += num_pd_vregs;
}