rv1126-uboot/drivers/net
Florian Fainelli bbdcaff12a net: phy: ensure Gigabit features are masked off if requested
When a Gigabit PHY device is connected to a 10/100Mbits capable Ethernet
MAC, the driver will restrict the phydev->supported modes to mask off
Gigabit. If the Gigabit PHY comes out of reset with the Gigabit features
set by default in MII_CTRL1000, it will keep advertising these feature,
so by the time we call genphy_config_advert(), the condition on
phydev->supported having the Gigabit features on is false, and we do not
update MII_CTRL1000 with updated values, and we keep advertising Gigabit
features, eventually configuring the PHY for Gigabit whilst the Ethernet
MAC does not support that.

This patches fixes the problem by ensuring that the Gigabit feature bits
are always cleared in MII_CTRL1000, if the PHY happens to be a Gigabit
PHY, and then, if Gigabit features are supported, setting those and
updating MII_CTRL1000 accordingly.

This is a copy of patch from Linux kernel, see
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5273e3a5ca94fbeb8e07d31203069220d5e682aa

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-01-28 12:31:30 -06:00
..
fm net: fm: disables unused FM1-DTSEC1 MAC node in DTS 2015-12-17 08:52:19 +08:00
fsl-mc driver: net: fsl-mc: remove MC firmware version check 2015-12-17 08:52:18 +08:00
ldpaa_eth armv8: ls2085a: Add support of LS2085A SoC 2015-11-30 09:10:47 -08:00
phy net: phy: ensure Gigabit features are masked off if requested 2016-01-28 12:31:30 -06:00
4xx_enet.c
8390.h
Kconfig net: eth_designware: select PHYLIB in Kconfig 2015-12-22 04:42:27 +01:00
Makefile
altera_tse.c altera_tse: change ioremap to map_physmem 2015-11-18 21:18:30 +08:00
altera_tse.h net: altera_tse: add mSG-DMA support 2015-11-12 08:26:59 +08:00
armada100_fec.c
armada100_fec.h
at91_emac.c
ax88180.c
ax88180.h
ax88796.c
ax88796.h
bcm-sf2-eth-gmac.c
bcm-sf2-eth-gmac.h
bcm-sf2-eth.c
bcm-sf2-eth.h
bfin_mac.c
bfin_mac.h
calxedaxgmac.c
cpsw.c drivers: net: cpsw: convert driver to adopt device driver model 2015-10-22 14:18:35 -04:00
cs8900.c
cs8900.h
davinci_emac.c net: davinci_emac: don't teardown inactive rx channel 2015-08-11 13:35:45 -05:00
davinci_emac.h
dc2114x.c
designware.c dm: pci: Add a dm_ prefix to pci_get_bdf() 2016-01-12 10:19:09 -07:00
designware.h
dm9000x.c
dm9000x.h
dnet.c
dnet.h
e1000.c dm: pci: Add a dm_ prefix to pci_get_bdf() 2016-01-12 10:19:09 -07:00
e1000.h net: e1000: Convert to driver model 2015-08-21 16:33:21 -05:00
e1000_spi.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
eepro100.c
enc28j60.c
enc28j60.h
ep93xx_eth.c
ep93xx_eth.h
ethoc.c
fec_mxc.c net: fec_mxc: unregister mdio bus on probe error 2016-01-03 15:28:06 +01:00
fec_mxc.h
fsl_mcdmafec.c
fsl_mdio.c net: tsec: fsl_mdio: Fix several cosmetic issues 2016-01-28 12:22:49 -06:00
ftgmac100.c
ftgmac100.h
ftmac100.c
ftmac100.h
ftmac110.c
ftmac110.h
greth.c sparc: Use microseconds instead of ticks for timeout 2015-12-03 13:15:49 +02:00
greth.h
keystone_net.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
ks8851_mll.c
ks8851_mll.h
lan91c96.c
lan91c96.h
lpc32xx_eth.c net: lpc32xx: eth buffers base config 2015-08-13 07:19:41 -04:00
macb.c net: macb: add gmac multi-queue support 2015-08-11 13:27:15 -05:00
macb.h net: macb: add gmac multi-queue support 2015-08-11 13:27:15 -05:00
mcffec.c
mcfmii.c
mpc5xxx_fec.c
mpc5xxx_fec.h
mpc512x_fec.c
mpc512x_fec.h
mvgbe.c
mvgbe.h
mvneta.c arm: mvebu: Enable NAND controller on MVEBU SoC's 2015-08-17 18:49:02 +02:00
natsemi.c
ne2000.c
ne2000.h
ne2000_base.c
ne2000_base.h
netconsole.c video: Drop DEV_FLAGS_SYSTEM flag 2015-11-05 08:22:21 +01:00
ns8382x.c
pch_gbe.c dm: pci: Add a dm_ prefix to pci_get_bdf() 2016-01-12 10:19:09 -07:00
pch_gbe.h net: pch_gbe: Convert to driver model 2015-09-09 07:48:03 -06:00
pcnet.c
rtl8139.c
rtl8169.c dm: net: Convert rtl8169 to use DM PCI API 2016-01-12 10:19:09 -07:00
sandbox-raw.c
sandbox.c net: Fix delay in net_retry test 2016-01-07 12:18:58 -07:00
sh_eth.c
sh_eth.h
smc911x.c
smc911x.h
smc91111.c arm: Remove xaeniax board 2015-09-11 17:14:43 -04:00
smc91111.h arm: Remove xaeniax board 2015-09-11 17:14:43 -04:00
sunxi_emac.c
tsec.c net: tsec: Use priv->tbiaddr to initialize TBI PHY address 2016-01-28 12:23:19 -06:00
tsi108_eth.c
uli526x.c
vsc7385.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
vsc9953.c drivers: net: vsc9953: Add LAG support 2016-01-28 12:22:19 -06:00
xilinx_axi_emac.c
xilinx_emaclite.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
xilinx_ll_temac.c
xilinx_ll_temac.h
xilinx_ll_temac_fifo.c
xilinx_ll_temac_fifo.h
xilinx_ll_temac_mdio.c
xilinx_ll_temac_mdio.h
xilinx_ll_temac_sdma.c
xilinx_ll_temac_sdma.h
zynq_gem.c net: gem: Add driver dependencies to PHYLIB 2015-12-18 13:15:58 +01:00