]> git.dujemihanovic.xyz Git - u-boot.git/commit
spmi: msm: correct max_channels for v5 controllers
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 24 Jun 2024 02:23:29 +0000 (04:23 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 5 Jul 2024 10:07:37 +0000 (12:07 +0200)
commit69b37f1625ac0c9d0c867d591564af91c0b52d18
tree617515c129a42cd1570564e184c04232dd582fb8
parentca229a32ba9cc9c3799383487860757188624172
spmi: msm: correct max_channels for v5 controllers

Commit ee1d8aa5ecf7 ("spmi: msm: support controller version 7") broke
support for channels > 128 on v5 controllers, resulting in some
peripherals (like the power button / pon) working but others (like
gpios) reading bogus data.

Correct max_channels for v5 controllers.

Fixes: ee1d8aa5ecf7 ("spmi: msm: support controller version 7")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/spmi/spmi-msm.c