diff options
author | Nimrod Andy <B38611@freescale.com> | 2014-05-20 13:23:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 15:03:05 -0400 |
commit | 98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a (patch) | |
tree | 14196fcbf1eb393d8140c5a21a7783d529e68de4 /drivers | |
parent | e8fcfcd5684a4165fe3f86dd24baa14f1e3fad7e (diff) | |
download | linux-98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a.tar.gz linux-98a6eeb8f5dbae8012cd4ec7b6c13efd5b5ced8a.tar.bz2 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')
-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; |