Skip to contentSkip to conversation

ARM: dts: imx7d: fix LCDIF clock assignment

PATCH Applied Stefan Agner 5 participants 8 messages Nov 23, 2016 – Dec 8, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx7d: fix LCDIF clock assignment

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for the AXI bus clock (clock-name "axi") makes sure the gate gets enabled when accessing registers.

There seem to be no separate AXI display clock, and the clock is optional. Hence remove the dummy clock.

This fixes kernel freezes when starting the X-Server (which disables/re-enables the display controller).

---
 arch/arm/boot/dts/imx7s.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx7s.dtsi +2 -3
index 0d7d5ac..2b6cb05 100644
@@ -643,9 +643,8 @@
 				reg = <0x30730000 0x10000>;
 				interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>,
-					<&clks IMX7D_CLK_DUMMY>,
-					<&clks IMX7D_CLK_DUMMY>;
-				clock-names = "pix", "axi", "disp_axi";
+					<&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>;
+				clock-names = "pix", "axi";
 				status = "disabled";
 			};
 		};
Signature · 1 line
2.10.2
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Stefan Agner

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for the AXI bus clock (clock-name "axi") makes sure the gate gets enabled when accessing registers.

Quoted 7 lines

There seem to be no separate AXI display clock, and the clock is optional. Hence remove the dummy clock.

This fixes kernel freezes when starting the X-Server (which disables/re-enables the display controller).

#2 lore raw

Hi Shawn

Quoted 17 lines · Fabio Estevam
Quoted 16 lines · Stefan Agner

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for the AXI bus clock (clock-name "axi") makes sure the gate gets enabled when accessing registers.

There seem to be no separate AXI display clock, and the clock is optional. Hence remove the dummy clock.

Quoted 6 lines
Quoted 4 lines

This fixes kernel freezes when starting the X-Server (which disables/re-enables the display controller).

Since this fixes a kernel freeze, is there a chance to get this still in 4.9?

--
Stefan

Acked-by
#3 lore raw

Hi Arnd, Olof,

Quoted 23 lines · Stefan Agner

Hi Shawn

Quoted 20 lines · Fabio Estevam
Quoted 19 lines · Stefan Agner

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for the AXI bus clock (clock-name "axi") makes sure the gate gets enabled when accessing registers.

There seem to be no separate AXI display clock, and the clock is optional. Hence remove the dummy clock.

This fixes kernel freezes when starting the X-Server (which disables/re-enables the display controller).

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Since this fixes a kernel freeze, is there a chance to get this still in 4.9?

Since we get one more week to the final 4.9, is it possible for you to send this fix for 4.9 inclusion? Thanks.

For the patch,

Shawn

#4 lore raw
Quoted 33 lines · Shawn Guo

Hi Arnd, Olof,

Quoted 23 lines · Stefan Agner

Hi Shawn

Quoted 20 lines · Fabio Estevam
Quoted 19 lines · Stefan Agner

The eLCDIF IP of the i.MX 7 SoC knows multiple clocks and lists them separately:

Clock      Clock Root              Description
apb_clk    MAIN_AXI_CLK_ROOT       AXI clock
pix_clk    LCDIF_PIXEL_CLK_ROOT    Pixel clock
ipg_clk_s  MAIN_AXI_CLK_ROOT       Peripheral access clock

All of them are switched by a single gate, which is part of the IMX7D_LCDIF_PIXEL_ROOT_CLK clock. Hence using that clock also for the AXI bus clock (clock-name "axi") makes sure the gate gets enabled when accessing registers.

There seem to be no separate AXI display clock, and the clock is optional. Hence remove the dummy clock.

This fixes kernel freezes when starting the X-Server (which disables/re-enables the display controller).

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Since this fixes a kernel freeze, is there a chance to get this still in 4.9?

Quoted 6 lines

Since we get one more week to the final 4.9, is it possible for you to send this fix for 4.9 inclusion? Thanks.

For the patch,

Applied, with the fixes line. In the future, please email arm at kernel.org too, it's easier to make sure we don't miss it that way.

-Olof

#5 lore raw
Quoted 2 lines · Olof Johansson

Applied, with the fixes line. In the future, please email arm at kernel.org too, it's easier to make sure we don't miss it that way.

Noted. Thanks, Olof.

Shawn

#6 lore raw
In reply to Stefan Agner

Hello Stefan,

Quoted 2 lines · Stefan Agner

Since this fixes a kernel freeze, is there a chance to get this still in 4.9?

a Fixes:-Line would be nice then.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#7 lore raw
Quoted 7 lines · Uwe Kleine-K?nig

Hello Stefan,

Quoted 2 lines · Stefan Agner

Since this fixes a kernel freeze, is there a chance to get this still in 4.9?

a Fixes:-Line would be nice then.

Good point.

Fixes e8ed73f691bd ("ARM: dts: imx7d: add lcdif support")

--
Stefan