]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: qcom: msm8996: Fix regmap max_register values
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Sat, 10 Dec 2022 20:03:51 +0000 (21:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:06 +0000 (08:34 +0100)
commit03c3afde285a7514a925f754c89d43fc14e2e099
tree8028caf08906ca8e6392369f9f785fa85e2e9e25
parent2aec889ee6adb3dfdebc1be8369091ff5c949378
interconnect: qcom: msm8996: Fix regmap max_register values

[ Upstream commit bd153733a87f9a2180a20ed6e5bbb6b06456338e ]

The device tree reg starts at BUS_BASE + QoS_OFFSET, but the regmap
configs in the ICC driver had values suggesting the reg started at
BUS_BASE. Shrink them down (where they haven't been already, so for
providers where QoS_OFFSET = 0) to make sure they stay within their
window.

Fixes: 16f78275f415 ("interconnect: qcom: Add MSM8996 interconnect provider driver")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> #db820c
Link: https://lore.kernel.org/r/20221210200353.418391-4-konrad.dybcio@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/interconnect/qcom/msm8996.c