clk: rockchip: add CLK_IGNORE_UNUSED to RK3188 sclk_mac_lbtest
Subsystems (2)
PATCH 1/1 clk: rockchip: add CLK_IGNORE_UNUSED to RK3188 sclk_mac_lbtest
Since the loopbacktest clock is not exported and is not touched in the driver, it needs the CLK_IGNORE_UNUSED flag in order to get the emac working.
--- drivers/clk/rockchip/clk-rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk-rk3188.c +1 -1
@@ -354,7 +354,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { RK2928_CLKGATE_CON(2), 5, GFLAGS),MUX (SCLK_MAC ,"sclk_macref" , mux_sclk_macref_p,CLK_SET_RATE_PARENT ,RK2928_CLKSEL_CON (21 ),4 ,1 ,MFLAGS ), -GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,0 , +GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (2 ),12 ,GFLAGS ), COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0,
Signature · 1 line
2.17.1
Heiko Stübner
maintainerHi,
Am Mittwoch, 22. Juli 2020, 16:31:37 CEST schrieb Alex Bee:
Quoted 3 lines
Since the loopbacktest clock is not exported and is not touched in the driver, it needs the
CLK_IGNORE_UNUSEDflag in order to get the emac working.
could you please add it to the rk3188_critical_clocks array instead. CLK_IGNORE_UNUSED only protects it against the clock subsystem disabling it on boot, while as critical clock it also gets protected later.
Thanks
Heiko
Quoted 20 lines
Signed-off-by Alex Bee <[email protected]>--- drivers/clk/rockchip/clk-rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/rockchip/clk-rk3188.c +1
-1@@ -354,7 +354,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { RK2928_CLKGATE_CON(2), 5, GFLAGS),MUX (SCLK_MAC ,"sclk_macref" , mux_sclk_macref_p,CLK_SET_RATE_PARENT ,RK2928_CLKSEL_CON (21 ),4 ,1 ,MFLAGS ), -GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,0 , +GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (2 ),12 ,GFLAGS ), COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0,
Hi Heiko,
Am 22.07.20 um 16:37 schrieb Heiko Stübner:
Quoted 6 lines
Hi,
Am Mittwoch, 22. Juli 2020, 16:31:37 CEST schrieb Alex Bee:
Quoted 3 lines
Since the loopbacktest clock is not exported and is not touched in the driver, it needs the
CLK_IGNORE_UNUSEDflag in order to get the emac working.
Quoted 7 lines
could you please add it to the
rk3188_critical_clocksarray instead.CLK_IGNORE_UNUSEDonly protects it against the clock subsystem disabling it on boot, while as critical clock it also gets protected later.Thanks
Heiko
wasn't aware of that and changed it in v2.
Quoted 17 lines
Quoted 17 lines
Signed-off-by Alex Bee <[email protected]>--- drivers/clk/rockchip/clk-rk3188.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/rockchip/clk-rk3188.c +1
-1@@ -354,7 +354,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { RK2928_CLKGATE_CON(2), 5, GFLAGS),MUX (SCLK_MAC ,"sclk_macref" , mux_sclk_macref_p,CLK_SET_RATE_PARENT ,RK2928_CLKSEL_CON (21 ),4 ,1 ,MFLAGS ), -GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,0 , +GATE (0 ,"sclk_mac_lbtest" ,"sclk_macref" ,CLK_IGNORE_UNUSED , RK2928_CLKGATE_CON(2), 12, GFLAGS),
Quoted 5 lines
drivers/clk/rockchip/clk-rk3188.c static struct rockchip_clk_branch common_clk_branches[] __initdata = { · line 360
Quoted 2 lines
drivers/clk/rockchip/clk-rk3188.c +0
-0COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0,
Regards,
Alex