The value of the csr-mask of the SATA PHY clock DTS node has a
wrong value resulting a kernel panic as the clock/reset is not
proper for the PHY of the SATA host controller 1. This patch
fixes the correct csr-mask value of the SATA PHY clock DTS node
for the SATA Host controller 1.

As the 'ok' is the default status of a device tree node, this patch
removes the status of the PHY clock node of SATA Host Controller 1.
The status of the clock node is handled from the firmware based on
the controller enabled/disabled by the user.

Signed-off-by: Loc Ho <l...@apm.com>
Signed-off-by: Suman Tripathi <stripa...@apm.com>
---
 arch/arm64/boot/dts/apm-storm.dtsi | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/apm-storm.dtsi 
b/arch/arm64/boot/dts/apm-storm.dtsi
index 40aa96c..1bdaeda 100644
--- a/arch/arm64/boot/dts/apm-storm.dtsi
+++ b/arch/arm64/boot/dts/apm-storm.dtsi
@@ -184,9 +184,8 @@
                                reg = <0x0 0x1f21c000 0x0 0x1000>;
                                reg-names = "csr-reg";
                                clock-output-names = "sataphy1clk";
-                               status = "disabled";
                                csr-offset = <0x4>;
-                               csr-mask = <0x00>;
+                               csr-mask = <0x3a>;
                                enable-offset = <0x0>;
                                enable-mask = <0x06>;
                        };
@@ -198,7 +197,6 @@
                                reg = <0x0 0x1f22c000 0x0 0x1000>;
                                reg-names = "csr-reg";
                                clock-output-names = "sataphy2clk";
-                               status = "ok";
                                csr-offset = <0x4>;
                                csr-mask = <0x3a>;
                                enable-offset = <0x0>;
@@ -212,7 +210,6 @@
                                reg = <0x0 0x1f23c000 0x0 0x1000>;
                                reg-names = "csr-reg";
                                clock-output-names = "sataphy3clk";
-                               status = "ok";
                                csr-offset = <0x4>;
                                csr-mask = <0x3a>;
                                enable-offset = <0x0>;
--
1.8.2.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to