OpenCloudOS-Kernel/drivers/net/ethernet/freescale
Guenter Roeck 0ae93b2ccc gianfar: Reduce logging noise seen due to phy polling if link is down
Commit 6ce29b0e2a ("gianfar: Avoid unnecessary reg accesses in adjust_link()")
eliminates unnecessary calls to adjust_link for phy devices which don't support
interrupts and need polling. As part of that work, the 'new_state' local flag,
which was used to reduce logging noise on the console, was eliminated.

Unfortunately, that means that a 'Link is Down' log message will now be
issued continuously if a link is configured as UP, the link state is down,
and the associated phy requires polling. This occurs because priv->oldduplex
is -1 in this case, which always differs from phydev->duplex. In addition,
phydev->speed may also differ from priv->oldspeed.  gfar_update_link_state()
is therefore called each time a phy is polled, even if the link state did not
change.

Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-03 14:37:30 -05:00
..
fs_enet net: fs_enet: Implement NETIF_F_SG feature 2015-02-04 13:13:04 -08:00
Kconfig net/fsl: Add mEMAC MDIO support to XGMAC MDIO 2015-01-06 17:18:26 -05:00
Makefile gianfar: Remove sysfs stubs for FIFOCFG and stashing 2014-02-18 15:03:02 -05:00
fec.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-01-15 00:53:17 -05:00
fec_main.c net: fec: Delete unnecessary checks before the function call "kfree" 2015-02-05 00:26:04 -08:00
fec_mpc52xx.c net: ethernet: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:07 +02:00
fec_mpc52xx.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
fec_mpc52xx_phy.c net: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata() 2013-08-21 12:27:04 -07:00
fec_ptp.c net: fec: convert to timecounter adjtime. 2014-12-30 18:29:26 -05:00
fsl_pq_mdio.c net: ethernet: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:07 +02:00
gianfar.c gianfar: Reduce logging noise seen due to phy polling if link is down 2015-03-03 14:37:30 -05:00
gianfar.h net: gianfar: add missing __iomem annotation 2014-12-30 18:54:15 -05:00
gianfar_ethtool.c gianfar: correct the bad expression while writing bit-pattern 2015-02-04 13:55:24 -08:00
gianfar_ptp.c net: ethernet: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:07 +02:00
ucc_geth.c net: ethernet: freescale: drop owner assignment from platform_drivers 2014-10-20 16:21:07 +02:00
ucc_geth.h net: remove skb recycling 2012-10-07 00:40:54 -04:00
ucc_geth_ethtool.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
xgmac_mdio.c net/fsl: Replace spin_event_timeout() with arch independent in xgmac_mdio 2015-01-25 23:36:06 -08:00