u-boot-brain/drivers/net/phy
Sascha Hauer 44bc317487 net: phy: genphy: Allow overwriting features
of_set_phy_supported allows overwiting hardware capabilities of
a phy with values from the devicetree. This does not work with
the genphy driver though because the genphys config_init function
will overwrite all values adjusted by of_set_phy_supported. Fix
this by initialising the genphy features in the phy_driver struct
and in config_init just limit the features to the ones the hardware
can actually support. The resulting features are a subset of the
devicetree specified features and the hardware features.

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

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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:32:41 -06:00
..
aquantia.c net: phy: added aquantia PHY AQR405 support 2015-11-30 09:11:13 -08:00
atheros.c phy: atheros: Use ar8035_config for AR8031 2016-01-07 17:46:47 +01:00
broadcom.c net: phy: broadcom: Add BCM Cygnus PHY 2015-08-11 13:49:17 -05:00
cortina.c net/phy/cortina: Fix compilation warning 2015-04-23 08:55:57 -07:00
davicom.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
et1011c.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
generic_10g.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lxt.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile net: phy: Add support for Texas Instruments DP83867 2015-11-19 13:09:21 +01:00
marvell.c net: Add support for Marvell 88E1510 PHY 2015-08-11 13:29:01 -05:00
micrel.c net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF 2015-12-20 03:36:49 +01:00
miiphybb.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e61xx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e61xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mv88e6352.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
natsemi.c pengwyn: nand and ethernet fixes 2015-11-12 18:13:19 -05:00
phy.c net: phy: genphy: Allow overwriting features 2016-01-28 12:32:41 -06:00
realtek.c net/phy: set led for rtl8211f phy 2015-08-11 13:20:34 -05:00
smsc.c phy: Use general phy code for smsc lan8720a 2013-11-22 17:03:20 -06:00
teranetics.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ti.c net: phy: Add support for Texas Instruments DP83867 2015-11-19 13:09:21 +01:00
vitesse.c net: phy/vitesse: Add support for VSC8584 phy 2015-09-01 21:38:39 -05:00