net: phy: switch drivers to use dynamic feature detection
Recently genphy_read_abilities() has been added that dynamically detects clause 22 PHY abilities. I *think* this detection should work with all supported PHY's, at least for the ones with basic features sets, i.e. PHY_BASIC_FEATURES and PHY_GBIT_FEATURES. So let's remove setting these features explicitly and rely on phylib feature detection. I don't have access to most of these PHY's, therefore I'd appreciate regression testing. v2: - make the feature constant a comment so that readers know which features are supported by the respective PHY Signed-off-by:Heiner Kallweit <hkallweit1@gmail.com> Tested-by:
Andrew Lunn <andrew@lunn.ch> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/phy/amd.c 1 addition, 1 deletiondrivers/net/phy/amd.c
- drivers/net/phy/asix.c 1 addition, 1 deletiondrivers/net/phy/asix.c
- drivers/net/phy/at803x.c 3 additions, 3 deletionsdrivers/net/phy/at803x.c
- drivers/net/phy/bcm-cygnus.c 2 additions, 2 deletionsdrivers/net/phy/bcm-cygnus.c
- drivers/net/phy/bcm63xx.c 2 additions, 2 deletionsdrivers/net/phy/bcm63xx.c
- drivers/net/phy/bcm7xxx.c 3 additions, 3 deletionsdrivers/net/phy/bcm7xxx.c
- drivers/net/phy/broadcom.c 17 additions, 17 deletionsdrivers/net/phy/broadcom.c
- drivers/net/phy/cicada.c 2 additions, 2 deletionsdrivers/net/phy/cicada.c
- drivers/net/phy/davicom.c 4 additions, 4 deletionsdrivers/net/phy/davicom.c
- drivers/net/phy/dp83640.c 1 addition, 1 deletiondrivers/net/phy/dp83640.c
- drivers/net/phy/dp83822.c 1 addition, 1 deletiondrivers/net/phy/dp83822.c
- drivers/net/phy/dp83848.c 1 addition, 1 deletiondrivers/net/phy/dp83848.c
- drivers/net/phy/dp83867.c 1 addition, 1 deletiondrivers/net/phy/dp83867.c
- drivers/net/phy/dp83tc811.c 1 addition, 1 deletiondrivers/net/phy/dp83tc811.c
- drivers/net/phy/et1011c.c 1 addition, 1 deletiondrivers/net/phy/et1011c.c
- drivers/net/phy/icplus.c 3 additions, 3 deletionsdrivers/net/phy/icplus.c
- drivers/net/phy/intel-xway.c 10 additions, 10 deletionsdrivers/net/phy/intel-xway.c
- drivers/net/phy/lxt.c 4 additions, 4 deletionsdrivers/net/phy/lxt.c
- drivers/net/phy/marvell.c 14 additions, 14 deletionsdrivers/net/phy/marvell.c
- drivers/net/phy/meson-gxl.c 2 additions, 2 deletionsdrivers/net/phy/meson-gxl.c
Loading
Please register or sign in to comment