linux/drivers/net/phy
Trent Piepho de339c2aa7 phylib: Fix auto-negotiation restart avoidance
A previous patch, 51e2a3846e, made
genphy_config_aneg() not restart aneg by calling genphy_restart_aneg() if
the advertisement hadn't changed.

But, genphy_restart_aneg() doesn't just restart aneg, it may also *enable*
aneg or un-isolate the PHY from the MII (those functions are controlled by
the same register).  The code to avoid calling genphy_restart_aneg() didn't
consider this.

So, modify genphy_config_aneg() to also check if the PHY needs to have aneg
enabled or be un-isolated before deciding not to restart aneg.

This caused a problem with certain Davicom PHYs, as that driver isolates
the PHY (why?) before calling genphy_config_aneg() and expects the PHY to
be un-isolated by that function.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Reported-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-19 15:52:41 -08:00
..
Kconfig net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
Makefile net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
broadcom.c
cicada.c
davicom.c
fixed.c phylib: two dynamic mii_bus allocation fallout fixes 2008-10-09 09:45:04 -07:00
icplus.c
lxt.c
marvell.c phy: Add support for Marvell 88E1118 PHY 2008-11-15 14:04:27 -08:00
mdio-bitbang.c phylib: move to dynamic allocation of struct mii_bus 2008-10-08 16:29:57 -07:00
mdio-ofgpio.c phylib: move to dynamic allocation of struct mii_bus 2008-10-08 16:29:57 -07:00
mdio_bus.c phylib: fix premature freeing of struct mii_bus 2008-11-14 18:19:40 -05:00
phy.c phylib: add mdiobus_{read,write} 2008-10-08 16:38:41 -07:00
phy_device.c phylib: Fix auto-negotiation restart avoidance 2008-11-19 15:52:41 -08:00
qsemi.c
realtek.c
smsc.c
vitesse.c