kernel_optimize_test/drivers/net/phy
Trent Piepho 51e2a3846e PHY: Avoid unnecessary aneg restarts
The PHY's aneg is configured and restarted whenever the link is brought up,
e.g. when DHCP is started after the kernel has booted.  This can take the
link down for several seconds while auto-negotiation is redone.

If the advertised features haven't changed, then it shouldn't be necessary
to bring down the link and start auto-negotiation over again.

genphy_config_advert() is enhanced to return 0 when the advertised features
haven't been changed and >0 when they have been.

genphy_config_aneg() then uses this information to not call
genphy_restart_aneg() if there has been no change.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-08 15:43:54 -07:00
..
broadcom.c PHYLIB: Add 1000Base-X support for Broadcom bcm5482 2008-05-22 06:34:31 -04:00
cicada.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
davicom.c dm9161: add configuration for MII/RMII 2008-03-05 06:26:56 -05:00
fixed.c phy: Change mii_bus id field to a string 2008-04-16 20:09:35 -04:00
icplus.c phylib: add the ICPlus IP175C PHY driver 2007-07-08 22:16:38 -04:00
Kconfig net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
lxt.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
Makefile net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
marvell.c net/phy: Fix 88e1111 copper/fiber selection in RGMII mode 2008-07-22 17:59:12 -04:00
mdio_bus.c phylib: allow incremental scanning of an mii bus 2008-09-19 05:13:54 +02:00
mdio-bitbang.c Fix missing exports for net/phy/mdio-bitbang.c 2008-07-11 01:20:34 -04:00
mdio-ofgpio.c net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
phy_device.c PHY: Avoid unnecessary aneg restarts 2008-10-08 15:43:54 -07:00
phy.c phylib: phy_mii_ioctl() fixes 2008-10-08 15:24:56 -07:00
qsemi.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
realtek.c phylib: Add Realtek 821x eth PHY support 2008-02-03 04:28:42 -08:00
smsc.c Add support for SMSC LAN8187 and LAN8700 PHYs 2008-04-29 01:55:59 -04:00
vitesse.c Fix error checking in Vitesse IRQ config 2007-07-24 16:28:41 -04:00