diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2014-11-20 15:30:34 +0530 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2014-11-20 13:31:14 +0100 |
commit | dfd5a96cbbc5b571f5c44de5a36b4dcea4166a59 (patch) | |
tree | 4c7de894d54c2191da6adb3f252492e849cf5ba1 | |
parent | 59dd33333440aa70aa2118b28fb644baba9bdf52 (diff) |
drivers/net/ethernet/freescale: fec_main: Fixed dual ethernet usagearchive/vf610-fec0-2nd-eth
On Colibri VFxx external PHY is attached on FEC1 RMII interface,
the dual ethernet board based on Colibri VFxx had an external PHY
attached on FEC0 RMII interface. Since PHY's are connected
independently bypass the code which configures the PHY's attached
on FEC0 mdio interface.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 3dca494797bd..9856156dd31b 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -1960,6 +1960,8 @@ static int fec_enet_mii_init(struct platform_device *pdev) struct device_node *node; int err = -ENXIO, i; +/* It is also possible to have PHY's attached independently instead of attaching them to the single mdio bus */ +#if 0 /* * The dual fec interfaces are not equivalent with enet-mac. * Here are the differences: @@ -1986,6 +1988,7 @@ static int fec_enet_mii_init(struct platform_device *pdev) return -ENOENT; } +#endif fep->mii_timeout = 0; /* @@ -2038,10 +2041,11 @@ static int fec_enet_mii_init(struct platform_device *pdev) mii_cnt++; +#if 0 /* save fec0 mii_bus */ if (id_entry->driver_data & FEC_QUIRK_ENET_MAC) fec0_mii_bus = fep->mii_bus; - +#endif return 0; err_out_free_mdio_irq: |