public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias
@ 2018-06-23 11:09 Adam Ford
  2018-06-23 14:38 ` Derald D. Woods
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Ford @ 2018-06-23 11:09 UTC (permalink / raw)
  To: t-kristo, linux-clk, sboyd, mturquette
  Cc: linux-omap, tony, Adam Ford, stable

A previous patch removed OMAP clock aliases that were perceived
to be unnecessary.  Unfortunately, it broke the ethernet on the
am3517-evm.  This patch renables the MDIO clock.

Fixes: 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")
Cc: stable@vger.kernel.org #4.16+

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
index 8aa5f5793835..f84734bd0aa7 100644
--- a/drivers/clk/ti/clk-3xxx.c
+++ b/drivers/clk/ti/clk-3xxx.c
@@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
 };
 
 static struct ti_dt_clk am35xx_clks[] = {
+	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
+	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
 	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
 	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
 	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias
  2018-06-23 11:09 [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias Adam Ford
@ 2018-06-23 14:38 ` Derald D. Woods
  2018-06-25  6:26   ` Tero Kristo
  0 siblings, 1 reply; 4+ messages in thread
From: Derald D. Woods @ 2018-06-23 14:38 UTC (permalink / raw)
  To: Adam Ford
  Cc: t-kristo, linux-clk, sboyd, mturquette, linux-omap, tony, stable

On Sat, Jun 23, 2018 at 06:09:12AM -0500, Adam Ford wrote:
> A previous patch removed OMAP clock aliases that were perceived
> to be unnecessary.  Unfortunately, it broke the ethernet on the
> am3517-evm.  This patch renables the MDIO clock.
> 
> Fixes: 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")
> Cc: stable@vger.kernel.org #4.16+
> 

On AM3517-EVM, you can add:

Tested-by: Derald D. Woods <woods.technical@gmail.com>

> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
> index 8aa5f5793835..f84734bd0aa7 100644
> --- a/drivers/clk/ti/clk-3xxx.c
> +++ b/drivers/clk/ti/clk-3xxx.c
> @@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
>  };
>  
>  static struct ti_dt_clk am35xx_clks[] = {
> +	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
> +	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
>  	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
>  	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
>  	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
> -- 
> 2.17.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias
  2018-06-23 14:38 ` Derald D. Woods
@ 2018-06-25  6:26   ` Tero Kristo
  2018-06-25 10:46     ` Adam Ford
  0 siblings, 1 reply; 4+ messages in thread
From: Tero Kristo @ 2018-06-25  6:26 UTC (permalink / raw)
  To: Derald D. Woods, Adam Ford
  Cc: linux-clk, sboyd, mturquette, linux-omap, tony, stable

On 23/06/18 17:38, Derald D. Woods wrote:
> On Sat, Jun 23, 2018 at 06:09:12AM -0500, Adam Ford wrote:
>> A previous patch removed OMAP clock aliases that were perceived
>> to be unnecessary.  Unfortunately, it broke the ethernet on the
>> am3517-evm.  This patch renables the MDIO clock.
>>
>> Fixes: 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")
>> Cc: stable@vger.kernel.org #4.16+
>>
> 
> On AM3517-EVM, you can add:
> 
> Tested-by: Derald D. Woods <woods.technical@gmail.com>
> 
>> Signed-off-by: Adam Ford <aford173@gmail.com>

Can you try adding the alternative solution with the DT change I just 
proposed?

clocks = <&emac_fck>;
clock-names = "fck";

... under the mdio node?

The target is to get rid of the clock aliases under the driver files.

-Tero

>>
>> diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
>> index 8aa5f5793835..f84734bd0aa7 100644
>> --- a/drivers/clk/ti/clk-3xxx.c
>> +++ b/drivers/clk/ti/clk-3xxx.c
>> @@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
>>   };
>>   
>>   static struct ti_dt_clk am35xx_clks[] = {
>> +	DT_CLK("davinci_emac.0", NULL, "emac_ick"),
>> +	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
>>   	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
>>   	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
>>   	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
>> -- 
>> 2.17.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias
  2018-06-25  6:26   ` Tero Kristo
@ 2018-06-25 10:46     ` Adam Ford
  0 siblings, 0 replies; 4+ messages in thread
From: Adam Ford @ 2018-06-25 10:46 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Derald Woods, linux-clk, Stephen Boyd, Michael Turquette,
	linux-omap, Tony Lindgren, stable

On Mon, Jun 25, 2018 at 1:27 AM Tero Kristo <t-kristo@ti.com> wrote:
>
> On 23/06/18 17:38, Derald D. Woods wrote:
> > On Sat, Jun 23, 2018 at 06:09:12AM -0500, Adam Ford wrote:
> >> A previous patch removed OMAP clock aliases that were perceived
> >> to be unnecessary.  Unfortunately, it broke the ethernet on the
> >> am3517-evm.  This patch renables the MDIO clock.
> >>
> >> Fixes: 0ed266d7ae5e ("clk: ti: omap3: cleanup unnecessary clock aliases")
> >> Cc: stable@vger.kernel.org #4.16+
> >>
> >
> > On AM3517-EVM, you can add:
> >
> > Tested-by: Derald D. Woods <woods.technical@gmail.com>
> >
> >> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> Can you try adding the alternative solution with the DT change I just
> proposed?
>
> clocks = <&emac_fck>;
> clock-names = "fck";
>
> ... under the mdio node?
>

By itself, that wasn't enough, but I was able to do that and also add

clocks = <&emac_ick>;
clock-names = "ick";

under the emac node and together that fixed the issue.

I'll update my patch and re-submit as V2.

adam
> The target is to get rid of the clock aliases under the driver files.
>
> -Tero
>
> >>
> >> diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
> >> index 8aa5f5793835..f84734bd0aa7 100644
> >> --- a/drivers/clk/ti/clk-3xxx.c
> >> +++ b/drivers/clk/ti/clk-3xxx.c
> >> @@ -254,6 +254,8 @@ static struct ti_dt_clk omap36xx_am35xx_omap3430es2plus_clks[] = {
> >>   };
> >>
> >>   static struct ti_dt_clk am35xx_clks[] = {
> >> +    DT_CLK("davinci_emac.0", NULL, "emac_ick"),
> >> +    DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
> >>      DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
> >>      DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
> >>      DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),
> >> --
> >> 2.17.1
> >>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-25 10:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-23 11:09 [PATCH] clk: ti: omap3: Fix am3517 mdio clock alias Adam Ford
2018-06-23 14:38 ` Derald D. Woods
2018-06-25  6:26   ` Tero Kristo
2018-06-25 10:46     ` Adam Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox