]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: dts: qcom: sm8550: Fix SPMI channels size
authorAbel Vesa <abel.vesa@linaro.org>
Wed, 21 Feb 2024 13:04:25 +0000 (15:04 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:36 +0000 (18:19 -0400)
commitf91a731ffc3b9eed7e3091d59620b292c448e9c1
tree056bfb6051018cd05553c84903bcc954528d6eba
parent5e6013ae2c8d420faea553d363935f65badd32c3
arm64: dts: qcom: sm8550: Fix SPMI channels size

[ Upstream commit 77dd1e50ffcba33c3195ae4fc78f354368ddacb2 ]

The actual size of the channels registers region is 4MB, according to the
documentation. This issue was not caught until now because the driver was
supposed to allow same regions being mapped multiple times for supporting
multiple buses. Thie driver is using platform_get_resource_byname() and
devm_ioremap() towards that purpose, which intentionally avoids
devm_request_mem_region() altogether.

Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD
Link: https://lore.kernel.org/r/20240221-dts-qcom-sm8550-fix-spmi-chnls-size-v2-1-72b5efd9dc4f@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sm8550.dtsi