Skip to content

Commit 98a6eeb

Browse files
Nimrod Andydavem330
authored andcommitted
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 <[email protected]> Acked-by: Frank Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e8fcfcd commit 98a6eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ static int fec_enet_mii_init(struct platform_device *pdev)
14071407
* Reference Manual has an error on this, and gets fixed on i.MX6Q
14081408
* document.
14091409
*/
1410-
fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ahb), 5000000);
1410+
fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000);
14111411
if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
14121412
fep->phy_speed--;
14131413
fep->phy_speed <<= 1;

0 commit comments

Comments
 (0)