OMAP3: clock3xxx_data: change EMAC clocks aliases
PATCH 1/1 OMAP3: clock3xxx_data: change EMAC clocks aliases
Rename EMAC clocks to match driver expectations: both davinci_emac and davinci_mdio drivers call clk_get(dev, NULL) so we have to provide ("davinci_emac", NULL) and ("davinci_mdio.0", NULL) clocks instead of ("davinci_emac", "emac_clk") and ("davinci_emac", "phy_clk") resp.
--- arch/arm/mach-omap2/clock3xxx_data.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/clock3xxx_data.c +2 -2
@@ -3465,8 +3465,8 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"ipss_ick" , &ipss_ick,CK_AM35XX ),CLK (NULL ,"rmii_ck" , &rmii_ck,CK_AM35XX ),CLK (NULL ,"pclk_ck" , &pclk_ck,CK_AM35XX ), -CLK ("davinci_emac" ,"emac_clk" , &emac_ick,CK_AM35XX ), -CLK ("davinci_emac" ,"phy_clk" , &emac_fck,CK_AM35XX ), +CLK ("davinci_emac" ,NULL , &emac_ick,CK_AM35XX ), +CLK ("davinci_mdio.0" ,NULL , &emac_fck,CK_AM35XX ),CLK ("vpfe-capture" ,"master" , &vpfe_ick,CK_AM35XX ),CLK ("vpfe-capture" ,"slave" , &vpfe_fck,CK_AM35XX ), CLK("musb-am35x", "ick", &hsotgusb_ick_am35xx, CK_AM35XX),
Signature · 1 line
1.7.6.4
Am 21.12.2011 00:27, schrieb Ilya Yanok:
Quoted 16 lines
Rename EMAC clocks to match driver expectations: both
davinci_emacanddavinci_mdiodrivers callclk_get(dev, NULL)so we have to provide ("davinci_emac", NULL) and ("davinci_mdio.0", NULL) clocks instead of ("davinci_emac", "emac_clk") and ("davinci_emac", "phy_clk") resp.CC Paul Walmsley <[email protected]>Signed-off-by Ilya Yanok <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-omap2/clock3xxx_data.c +0
-0
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3472
Quoted 10 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-2@@ -3465,8 +3465,8 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"ipss_ick" , &ipss_ick,CK_AM35XX ),CLK (NULL ,"rmii_ck" , &rmii_ck,CK_AM35XX ),CLK (NULL ,"pclk_ck" , &pclk_ck,CK_AM35XX ), -CLK ("davinci_emac" ,"emac_clk" , &emac_ick,CK_AM35XX ), -CLK ("davinci_emac" ,"phy_clk" , &emac_fck,CK_AM35XX ), +CLK ("davinci_emac" ,NULL , &emac_ick,CK_AM35XX ), +CLK ("davinci_mdio.0" ,NULL , &emac_fck,CK_AM35XX ),CLK ("vpfe-capture" ,"master" , &vpfe_ick,CK_AM35XX ),CLK ("vpfe-capture" ,"slave" , &vpfe_fck,CK_AM35XX ), CLK("musb-am35x", "ick", &hsotgusb_ick_am35xx, CK_AM35XX),
Matt Porter
Tested-byQuoted 21 lines · Yegor Yefremov
Am 21.12.2011 00:27, schrieb Ilya Yanok:
Quoted 20 lines
Rename EMAC clocks to match driver expectations: both
davinci_emacanddavinci_mdiodrivers callclk_get(dev, NULL)so we have to provide ("davinci_emac", NULL) and ("davinci_mdio.0", NULL) clocks instead of ("davinci_emac", "emac_clk") and ("davinci_emac", "phy_clk") resp.CC Paul Walmsley <[email protected]>Signed-off-by Ilya Yanok <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-omap2/clock3xxx_data.c +0
-1@@ -3465,8 +3465,8 @@ static struct omap_clk omap3xxx_clks[] = {CLK (NULL ,"ipss_ick" , &ipss_ick,CK_AM35XX ),CLK (NULL ,"rmii_ck" , &rmii_ck,CK_AM35XX ), CLK(NULL, "pclk_ck", &pclk_ck, CK_AM35XX), - CLK("davinci_emac", "emac_clk", &emac_ick, CK_AM35XX),
Quoted 8 lines
arch/arm/mach-omap2/clock3xxx_data.c static struct omap_clk omap3xxx_clks[] = { · line 3472
Quoted 6 lines
arch/arm/mach-omap2/clock3xxx_data.c +2
-1-CLK ("davinci_emac" ,"phy_clk" , &emac_fck,CK_AM35XX ), +CLK ("davinci_emac" ,NULL , &emac_ick,CK_AM35XX ), +CLK ("davinci_mdio.0" ,NULL , &emac_fck,CK_AM35XX ),CLK ("vpfe-capture" ,"master" , &vpfe_ick,CK_AM35XX ),CLK ("vpfe-capture" ,"slave" , &vpfe_fck,CK_AM35XX ), CLK("musb-am35x", "ick", &hsotgusb_ick_am35xx, CK_AM35XX),Tested-by Yegor Yefremov <[email protected]>
Also passing my nightly tests on an AM3517 EVM.
-Matt
Paul Walmsley
maintainerQuoted 13 lines · Matt Porter
Quoted 12 lines · Yegor Yefremov
Am 21.12.2011 00:27, schrieb Ilya Yanok:
Quoted 11 lines
Rename EMAC clocks to match driver expectations: both
davinci_emacanddavinci_mdiodrivers callclk_get(dev, NULL)so we have to provide ("davinci_emac", NULL) and ("davinci_mdio.0", NULL) clocks instead of ("davinci_emac", "emac_clk") and ("davinci_emac", "phy_clk") resp.CC Paul Walmsley <[email protected]>Signed-off-by Ilya Yanok <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Quoted 5 lines
Quoted 1 line
Tested-by Yegor Yefremov <[email protected]>Tested-by Matt Porter <[email protected]>Also passing my nightly tests on an AM3517 EVM.
Thanks Matt, Yegor, Ilya; queued for 3.4.
- Paul
Quoted 15 lines · Paul Walmsley
Quoted 13 lines · Matt Porter
Quoted 12 lines · Yegor Yefremov
Am 21.12.2011 00:27, schrieb Ilya Yanok:
Quoted 11 lines
Rename EMAC clocks to match driver expectations: both
davinci_emacanddavinci_mdiodrivers callclk_get(dev, NULL)so we have to provide ("davinci_emac", NULL) and ("davinci_mdio.0", NULL) clocks instead of ("davinci_emac", "emac_clk") and ("davinci_emac", "phy_clk") resp.CC Paul Walmsley <[email protected]>Signed-off-by Ilya Yanok <[email protected]>--- arch/arm/mach-omap2/clock3xxx_data.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Tested-by Yegor Yefremov <[email protected]>Tested-by Matt Porter <[email protected]>Also passing my nightly tests on an AM3517 EVM.
Thanks Matt, Yegor, Ilya; queued for 3.4.
Thanks Paul.
Any chance we can see it in 3.3 fixes? It's the only thing preventing the emac and thus nfsroot from working in 3.3 for these systems.
-Matt
Paul Walmsley
maintainerHi Matt
Quoted 4 lines · Matt Porter
Thanks Paul.
Any chance we can see it in 3.3 fixes? It's the only thing preventing the emac and thus nfsroot from working in 3.3 for these systems.
Did EMAC work on previous versions of Linux for those systems? i.e., does this patch fix a regression?
- Paul
Quoted 11 lines · Paul Walmsley
Hi Matt
Quoted 4 lines · Matt Porter
Thanks Paul.
Any chance we can see it in 3.3 fixes? It's the only thing preventing the emac and thus nfsroot from working in 3.3 for these systems.
Did EMAC work on previous versions of Linux for those systems? i.e., does this patch fix a regression?
It's been broken since at least 2.6.37 (predating my time working with these parts) when the MDIO driver was split out from the EMAC driver. As it was so long ago, I won't try to classify this as fixing a regression since most likely something else was broken in that timeframe. :) Thanks for the clarification.
-Matt