The v5 & v7 controllers has complex mapping for different Execution Environment, and v7 supports two busses within the same controller so it needs some special care when parsing the hardware map table to get the proper read & write channels.
Test are welcome, especially for v5 controllers. Tested on HDK8550, QRD8550 & QRD8650. Signed-off-by: Neil Armstrong <neil.armstr...@linaro.org> --- Neil Armstrong (4): spmi: msm: use real number of channels for v5 & v7 spmi: msm: factor out channel mapping for v5 & v7 spmi: msm: introduce SPMI_CHANNEL_VALID flag spmi: msm: correctly handle multiple mapping entries drivers/spmi/spmi-msm.c | 59 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 10 deletions(-) --- base-commit: 4adbf64ff8d8c730223fd8ae299d770bebb6fe86 change-id: 20250328-topic-sm8x50-spmi-fix-1e2b433a6ffd Best regards, -- Neil Armstrong <neil.armstr...@linaro.org>