PXO fixes for ipq8064 dtsi
Subsystems (2)
cover PXO fixes for ipq8064 dtsi
This small series is a fix for a long lasting error present in ipq8064 dtsi. At times the kpss-gcc driver was defined in the dts with <&gcc PXO_SRC> a pxo clock. While PXO_SRC exist in the includes, the gcc driver never expose it and if a driver try to actually use it the result is a kernel panic even before any log is init.
To prepare for correct conversion of the different krait drivers to parent data and to reflect what is defined in the Documentation with actual driver and dts implementation, fix this error by using the now defined pxo_board fixed clock.
Ansuel Smith (2):
ARM: dts: qcom: add syscon and cxo/pxo clock to gcc node for ipq8064
ARM: dts: qcom: replace gcc PXO with pxo_board fixed clock
arch/arm/boot/dts/qcom-ipq8064.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 ARM: dts: qcom: add syscon and cxo/pxo clock to gcc node for ipq8064
Add syscon compatible required for tsens driver to correctly probe driver and access the reg. Also add cxo and pxo tag and declare them as gcc clock now requires them for the ipq8064 gcc driver that has now been modernized.
--- arch/arm/boot/dts/qcom-ipq8064.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
arch/arm/boot/dts/qcom-ipq8064.dtsi +5 -3
@@ -298,13 +298,13 @@ smem: smem@41000000 { }; clocks { - cxo_board { + cxo_board: cxo_board { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <25000000>; }; - pxo_board { + pxo_board: pxo_board { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <25000000>;
@@ -736,7 +736,9 @@ tsens_calib_backup: calib_backup@410 { }; gcc: clock-controller@900000 { - compatible = "qcom,gcc-ipq8064"; + compatible = "qcom,gcc-ipq8064", "syscon"; + clocks = <&pxo_board>, <&cxo_board>; + clock-names = "pxo", "cxo"; reg = <0x00900000 0x4000>; #clock-cells = <1>; #reset-cells = <1>;
Signature · 1 line
2.34.1
PATCH 2/2 ARM: dts: qcom: replace gcc PXO with pxo_board fixed clock
In reply to Ansuel SmithReplace gcc PXO phandle to pxo_board fixed clock declared in the dts. gcc driver doesn't provide PXO_SRC as it's a fixed-clock. This cause a kernel panic if any driver actually try to use it.
--- arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-ipq8064.dtsi +1 -1
@@ -784,7 +784,7 @@ tcsr: syscon@1a400000 { l2cc: clock-controller@2011000 { compatible = "qcom,kpss-gcc", "syscon"; reg = <0x2011000 0x1000>; - clocks = <&gcc PLL8_VOTE>, <&gcc PXO_SRC>; + clocks = <&gcc PLL8_VOTE>, <&pxo_board>; clock-names = "pll8_vote", "pxo"; clock-output-names = "acpu_l2_aux"; };
Signature · 1 line
2.34.1
Re: [PATCH 2/2] ARM: dts: qcom: replace gcc PXO with pxo_board fixed clock
Quoted 5 lines · Ansuel Smith
Replace gcc PXO phandle to
pxo_boardfixed clock declared in the dts. gcc driver doesn't providePXO_SRCas it's a fixed-clock. This cause a kernel panic if any driver actually try to use it.Signed-off-by Ansuel Smith <[email protected]>
It would be nice if you add Fixes tags to your patches in future. Fixes tags allow picking up patches for stable/LTS trees.
For these two patches I'd suggest reordering them. A fix should go first (you'll have to define pxa_board label in it). It can then be accepted into other kernel without dependency on the other patch.
The gcc patch will come next, it will define cxo_board label and use both clocks in the gcc node. It is not fixing a bug, so there is no need about backporting it.
Generic rule: fixes go first (in the patch series), so that they have minimum inter-dependencies.
Quoted 17 lines
--- arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/qcom-ipq8064.dtsi +1
-1@@ -784,7 +784,7 @@ tcsr: syscon@1a400000 { l2cc: clock-controller@2011000 { compatible = "qcom,kpss-gcc", "syscon"; reg = <0x2011000 0x1000>; - clocks = <&gcc PLL8_VOTE>, <&gcc PXO_SRC>; + clocks = <&gcc PLL8_VOTE>, <&pxo_board>; clock-names = "pll8_vote", "pxo"; clock-output-names = "acpu_l2_aux"; };
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 2/2] ARM: dts: qcom: replace gcc PXO with pxo_board fixed clock
Quoted 16 lines · Dmitry Baryshkov
Quoted 5 lines · Ansuel Smith
Replace gcc PXO phandle to
pxo_boardfixed clock declared in the dts. gcc driver doesn't providePXO_SRCas it's a fixed-clock. This cause a kernel panic if any driver actually try to use it.Signed-off-by Ansuel Smith <[email protected]>Fixes 40cf5c884a96 ("ARM: dts: qcom: add L2CC and RPM for IPQ8064")It would be nice if you add Fixes tags to your patches in future. Fixes tags allow picking up patches for stable/LTS trees.
For these two patches I'd suggest reordering them. A fix should go first (you'll have to define
pxa_boardlabel in it). It can then be accepted into other kernel without dependency on the other patch.
Quoted 7 lines
The gcc patch will come next, it will define
cxo_boardlabel and use both clocks in the gcc node. It is not fixing a bug, so there is no need about backporting it.Generic rule: fixes go first (in the patch series), so that they have minimum inter-dependencies.
Didn't know about this. Thanks for the hint! Will do the change.
Quoted 22 lines
Quoted 17 lines
--- arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/qcom-ipq8064.dtsi +1
-1@@ -784,7 +784,7 @@ tcsr: syscon@1a400000 { l2cc: clock-controller@2011000 { compatible = "qcom,kpss-gcc", "syscon"; reg = <0x2011000 0x1000>; - clocks = <&gcc PLL8_VOTE>, <&gcc PXO_SRC>; + clocks = <&gcc PLL8_VOTE>, <&pxo_board>; clock-names = "pll8_vote", "pxo"; clock-output-names = "acpu_l2_aux"; };Signature · 2 lines
With best wishes Dmitry
Signature · 1 line
Ansuel