* [PATCH 2/2] net: fec: correct the MDIO clock source
@ 2014-05-20 5:23 Fugang Duan
2014-05-20 13:13 ` Frank.Li
2014-05-22 19:03 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Fugang Duan @ 2014-05-20 5:23 UTC (permalink / raw)
To: b20596, davem; +Cc: netdev, b38611, bhutchings, stephen
Since imx serials FEC/ENET MDIO clock source is internal ipg clock,
and "ahb" clock is defined as FEC/ENET bus clock, so the patch just
correct the fec driver MDIO clock source.
Signed-off-by: Fugang Duan <B38611@freescale.com>
---
drivers/net/ethernet/freescale/fec_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 99fb0dc..cb5c987 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1407,7 +1407,7 @@ static int fec_enet_mii_init(struct platform_device *pdev)
* Reference Manual has an error on this, and gets fixed on i.MX6Q
* document.
*/
- fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ahb), 5000000);
+ fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000);
if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
fep->phy_speed--;
fep->phy_speed <<= 1;
--
1.7.8
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH 2/2] net: fec: correct the MDIO clock source
2014-05-20 5:23 [PATCH 2/2] net: fec: correct the MDIO clock source Fugang Duan
@ 2014-05-20 13:13 ` Frank.Li
2014-05-22 19:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Frank.Li @ 2014-05-20 13:13 UTC (permalink / raw)
To: fugang.duan@freescale.com, davem@davemloft.net
Cc: netdev@vger.kernel.org, fugang.duan@freescale.com,
bhutchings@solarflare.com, stephen@networkplumber.org
> -----Original Message-----
> From: Fugang Duan [mailto:b38611@freescale.com]
> Sent: Tuesday, May 20, 2014 12:23 AM
> To: Li Frank-B20596; davem@davemloft.net
> Cc: netdev@vger.kernel.org; Duan Fugang-B38611; bhutchings@solarflare.com;
> stephen@networkplumber.org
> Subject: [PATCH 2/2] net: fec: correct the MDIO clock source
>
> Since imx serials FEC/ENET MDIO clock source is internal ipg clock, and
> "ahb" clock is defined as FEC/ENET bus clock, so the patch just correct
> the fec driver MDIO clock source.
>
> Signed-off-by: Fugang Duan <B38611@freescale.com>
Acked-by: Frank Li <frank.li@freescale.com>
> ---
> drivers/net/ethernet/freescale/fec_main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/freescale/fec_main.c
> b/drivers/net/ethernet/freescale/fec_main.c
> index 99fb0dc..cb5c987 100644
> --- a/drivers/net/ethernet/freescale/fec_main.c
> +++ b/drivers/net/ethernet/freescale/fec_main.c
> @@ -1407,7 +1407,7 @@ static int fec_enet_mii_init(struct platform_device
> *pdev)
> * Reference Manual has an error on this, and gets fixed on i.MX6Q
> * document.
> */
> - fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ahb), 5000000);
> + fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000);
> if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
> fep->phy_speed--;
> fep->phy_speed <<= 1;
> --
> 1.7.8
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] net: fec: correct the MDIO clock source
2014-05-20 5:23 [PATCH 2/2] net: fec: correct the MDIO clock source Fugang Duan
2014-05-20 13:13 ` Frank.Li
@ 2014-05-22 19:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-05-22 19:03 UTC (permalink / raw)
To: b38611; +Cc: b20596, netdev, bhutchings, stephen
From: Fugang Duan <b38611@freescale.com>
Date: Tue, 20 May 2014 13:23:09 +0800
> Since imx serials FEC/ENET MDIO clock source is internal ipg clock,
> and "ahb" clock is defined as FEC/ENET bus clock, so the patch just
> correct the fec driver MDIO clock source.
>
> Signed-off-by: Fugang Duan <B38611@freescale.com>
Applied to net-next.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-22 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 5:23 [PATCH 2/2] net: fec: correct the MDIO clock source Fugang Duan
2014-05-20 13:13 ` Frank.Li
2014-05-22 19:03 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).