diff options
author | Nimrod Andy <B38611@freescale.com> | 2014-05-20 07:23:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 21:03:05 +0200 |
commit | 98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a (patch) | |
tree | 14196fcbf1eb393d8140c5a21a7783d529e68de4 /drivers/net/ethernet/freescale | |
parent | net: fec: optimize the clock management to save power (diff) | |
download | linux-98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a.tar.xz linux-98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a.zip |
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | 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 99fb0dcc547b..cb5c987bee39 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; |