[PATCH AUTOSEL 4.19 015/123] arm64: dts: sdm845-mtp: Reserve reserved gpios

2018-12-05 Thread Sasha Levin
From: Bjorn Andersson 

[ Upstream commit 5f8d3ab136d0ccb59c4d628d8f85e0d8f2761d07 ]

With the introduction of commit 3edfb7bd76bd ("gpiolib: Show correct
direction from the beginning") the gpiolib will attempt to read the
direction of all pins, which triggers a read from protected register
regions.

The pins 0 through 3 and 81 through 84 are protected, so mark these as
reserved.

Signed-off-by: Bjorn Andersson 
Reviewed-by: Stephen Boyd 
Reviewed-by: Linus Walleij 
Signed-off-by: Andy Gross 
Signed-off-by: Sasha Levin 
---
 arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts 
b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
index 6d651f314193..6921f8dc5ebb 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
@@ -31,6 +31,10 @@
status = "okay";
 };
 
+ {
+   gpio-reserved-ranges = <0 4>, <81 4>;
+};
+
  {
status = "okay";
 };
-- 
2.17.1



[PATCH AUTOSEL 4.19 015/123] arm64: dts: sdm845-mtp: Reserve reserved gpios

2018-12-05 Thread Sasha Levin
From: Bjorn Andersson 

[ Upstream commit 5f8d3ab136d0ccb59c4d628d8f85e0d8f2761d07 ]

With the introduction of commit 3edfb7bd76bd ("gpiolib: Show correct
direction from the beginning") the gpiolib will attempt to read the
direction of all pins, which triggers a read from protected register
regions.

The pins 0 through 3 and 81 through 84 are protected, so mark these as
reserved.

Signed-off-by: Bjorn Andersson 
Reviewed-by: Stephen Boyd 
Reviewed-by: Linus Walleij 
Signed-off-by: Andy Gross 
Signed-off-by: Sasha Levin 
---
 arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts 
b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
index 6d651f314193..6921f8dc5ebb 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts
@@ -31,6 +31,10 @@
status = "okay";
 };
 
+ {
+   gpio-reserved-ranges = <0 4>, <81 4>;
+};
+
  {
status = "okay";
 };
-- 
2.17.1