Skip to content

Commit

Permalink
ARM: kirkwood: of_serial: fix clock gating by removing clock-frequency
Browse files Browse the repository at this point in the history
When DT support for kirkwood was first introduced, there was no clock
infrastructure.  As a result, we had to manually pass the
clock-frequency to the driver from the device node.

Unfortunately, on kirkwood, with minimal config or all module configs,
clock-frequency breaks booting because of_serial doesn't consume the
gate_clk when clock-frequency is defined.

The end result on kirkwood is that runit gets gated, and then the boot
fails when the kernel tries to write to the serial port.

Fix the issue by removing the clock-frequency parameter from all
kirkwood dts files.

Booted on dreamplug without earlyprintk and successfully logged in via
ttyS0.

Reported-by: Simon Baatz <gmbnomis@gmail.com>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Jason Cooper committed Mar 8, 2013
1 parent 6dbe51c commit 93fff4c
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions arch/arm/boot/dts/kirkwood-dns320.dts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@

ocp@f1000000 {
serial@12000 {
clock-frequency = <166666667>;
status = "okay";
};

serial@12100 {
clock-frequency = <166666667>;
status = "okay";
};
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-dns325.dts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "okay";
};
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-dockstar.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-dreamplug.dts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-goflexnet.dts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-ib62x0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "okay";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-iconnect.dts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
};

serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-km_kirkwood.dts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
};

serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-lschlv2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

ocp@f1000000 {
serial@12000 {
clock-frequency = <166666667>;
status = "okay";
};
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-lsxhl.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

ocp@f1000000 {
serial@12000 {
clock-frequency = <200000000>;
status = "okay";
};
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-mplcec4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
};

serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-ns2-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
};

serial@12000 {
clock-frequency = <166666667>;
status = "okay";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-nsa310.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
};

serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
2 changes: 0 additions & 2 deletions arch/arm/boot/dts/kirkwood-openblocks_a6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

ocp@f1000000 {
serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

serial@12100 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/kirkwood-topkick.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
};

serial@12000 {
clock-frequency = <200000000>;
status = "ok";
};

Expand Down
2 changes: 0 additions & 2 deletions arch/arm/boot/dts/kirkwood.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
reg-shift = <2>;
interrupts = <33>;
clocks = <&gate_clk 7>;
/* set clock-frequency in board dts */
status = "disabled";
};

Expand All @@ -67,7 +66,6 @@
reg-shift = <2>;
interrupts = <34>;
clocks = <&gate_clk 7>;
/* set clock-frequency in board dts */
status = "disabled";
};

Expand Down

0 comments on commit 93fff4c

Please sign in to comment.