clk: imx8mq: Mark AHB clock as critical
Subsystems (3)
PATCH 1/1 clk: imx8mq: Mark AHB clock as critical
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mq.c +1 -1
@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 ); clks[IMX8MQ_CLK_AUDIO_AHB ] =imx8m_clk_composite ("audio_ahb" , imx8mq_audio_ahb_sels, base +0x9100 );/* IPG */
Signature · 1 line
2.7.4
Stephen Boyd
maintainerQuoting Abel Vesa (2019-06-25 02:01:56)
Quoted 13 lines
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
Signed-off-by Abel Vesa <[email protected]>--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/imx/clk-imx8mq.c +0
-0
drivers/clk/imx/clk-imx8mq.c static int imx8mq_clocks_probe(struct platform_device *pdev) · line 401
Quoted 5 lines
drivers/clk/imx/clk-imx8mq.c +1
-1@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 );
Please add a comment into the code why it's critical.
Quoted 6 lines
drivers/clk/imx/clk-imx8mq.c +0
-0clks[IMX8MQ_CLK_AUDIO_AHB ] =imx8m_clk_composite ("audio_ahb" , imx8mq_audio_ahb_sels, base +0x9100 );/* IPG */ Signature · 1 line
2.7.4
Quoted 16 lines · Stephen Boyd
Quoting Abel Vesa (2019-06-25 02:01:56)
Quoted 15 lines
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
Signed-off-by Abel Vesa <[email protected]>--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/imx/clk-imx8mq.c +0
-0@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );
Quoted 5 lines
drivers/clk/imx/clk-imx8mq.c static int imx8mq_clocks_probe(struct platform_device *pdev) · line 401
Quoted 3 lines
drivers/clk/imx/clk-imx8mq.c +1
-1/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 );Please add a comment into the code why it's critical.
Comment explaining why the AHB bus clock is critical ? Isn't that self-explanatory ?
Quoted 7 lines
Quoted 7 lines
drivers/clk/imx/clk-imx8mq.c +0
-0clks[IMX8MQ_CLK_AUDIO_AHB ] =imx8m_clk_composite ("audio_ahb" , imx8mq_audio_ahb_sels, base +0x9100 );/* IPG */ Signature · 1 line
2.7.4
Stephen Boyd
maintainerQuoting Abel Vesa (2019-07-05 01:52:19)
Quoted 17 lines · Stephen Boyd
Quoted 16 lines
Quoting Abel Vesa (2019-06-25 02:01:56)
Quoted 15 lines
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
Signed-off-by Abel Vesa <[email protected]>--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/imx/clk-imx8mq.c +0
-0@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );
Quoted 8 lines
Quoted 5 lines
drivers/clk/imx/clk-imx8mq.c static int imx8mq_clocks_probe(struct platform_device *pdev) · line 401
Quoted 3 lines
drivers/clk/imx/clk-imx8mq.c +1
-1/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 );Please add a comment into the code why it's critical.
Comment explaining why the AHB bus clock is critical ? Isn't that self-explanatory ?
Nope, it isn't self-explanatory, because nothing on this line says "bus" and it could be that someone reading this code isn't well versed in the concepts of ARM world AHB to connect the two.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/clk/imx/clk-imx8mq.c +0
-0clks[IMX8MQ_CLK_AUDIO_AHB ] =imx8m_clk_composite ("audio_ahb" , imx8mq_audio_ahb_sels, base +0x9100 );
Daniel Baluta
Tested-byQuoted 25 lines · Stephen Boyd
Quoting Abel Vesa (2019-07-05 01:52:19)
Quoted 23 lines · Stephen Boyd
Quoted 21 lines
Quoting Abel Vesa (2019-06-25 02:01:56)
Quoted 13 lines
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
Signed-off-by Abel Vesa <[email protected]>--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/imx/clk-imx8mq.c +0
-0drivers/clk/imx/clk-imx8mq.c static int imx8mq_clocks_probe(struct platform_device *pdev) · line 401
Quoted 5 lines
drivers/clk/imx/clk-imx8mq.c +1
-1@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 );Please add a comment into the code why it's critical.
Quoted 6 lines
Quoted 2 lines
Comment explaining why the AHB bus clock is critical ? Isn't that self-explanatory ?
Nope, it isn't self-explanatory, because nothing on this line says "bus" and it could be that someone reading this code isn't well versed in the concepts of ARM world AHB to connect the two.
Agree with Stephen. Commit message should try to give as much details as possible
also maybe educate the readers who might not have that much knowledge.
Abel, I understand that for someone who works daily with this part of the kernel this change might look trivial.
Also, without this patch linux-next hangs on imx8mq.
With the explanation added you can add my:
thanks,
Daniel.
Quoted 33 lines · Daniel Baluta
Quoted 25 lines · Stephen Boyd
Quoting Abel Vesa (2019-07-05 01:52:19)
Quoted 23 lines · Stephen Boyd
Quoted 21 lines
Quoting Abel Vesa (2019-06-25 02:01:56)
Quoted 13 lines
Keep the AHB clock always on since there is no driver to control it and all the other clocks that use it as parent rely on it being always enabled.
Signed-off-by Abel Vesa <[email protected]>--- drivers/clk/imx/clk-imx8mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/imx/clk-imx8mq.c +0
-0drivers/clk/imx/clk-imx8mq.c static int imx8mq_clocks_probe(struct platform_device *pdev) · line 401
Quoted 5 lines
drivers/clk/imx/clk-imx8mq.c +1
-1@@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_CLK_NOC_APB ] =imx8m_clk_composite_critical ("noc_apb" , imx8mq_noc_apb_sels, base +0x8d80 );/* AHB */ - clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite ("ahb" , imx8mq_ahb_sels, base +0x9000 ); + clks[IMX8MQ_CLK_AHB ] =imx8m_clk_composite_critical ("ahb" , imx8mq_ahb_sels, base +0x9000 );Please add a comment into the code why it's critical.
Quoted 6 lines
Quoted 2 lines
Comment explaining why the AHB bus clock is critical ? Isn't that self-explanatory ?
Nope, it isn't self-explanatory, because nothing on this line says "bus" and it could be that someone reading this code isn't well versed in the concepts of ARM world AHB to connect the two.
Quoted 8 lines
Agree with Stephen. Commit message should try to give as much details as possible
also maybe educate the readers who might not have that much knowledge.Abel, I understand that for someone who works daily with this part of the kernel this change might look trivial.
Also, without this patch linux-next hangs on imx8mq.
How does that happen? Mainline is fine there?
Shawn
Quoted 3 lines · Shawn Guo
Quoted 1 line
Also, without this patch linux-next hangs on imx8mq.
How does that happen? Mainline is fine there?
Okay, understood it by reading more threads.
Shawn