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>
This commit is contained in:

committed by
David S. Miller

parent
b6ed55cb72
commit
dcdecdcfe1
@@ -81,7 +81,7 @@ static struct phy_driver ste10xp_pdriver[] = {
|
||||
.phy_id = STE101P_PHY_ID,
|
||||
.phy_id_mask = 0xfffffff0,
|
||||
.name = "STe101p",
|
||||
.features = PHY_BASIC_FEATURES,
|
||||
/* PHY_BASIC_FEATURES */
|
||||
.config_init = ste10Xp_config_init,
|
||||
.ack_interrupt = ste10Xp_ack_interrupt,
|
||||
.config_intr = ste10Xp_config_intr,
|
||||
@@ -91,7 +91,7 @@ static struct phy_driver ste10xp_pdriver[] = {
|
||||
.phy_id = STE100P_PHY_ID,
|
||||
.phy_id_mask = 0xffffffff,
|
||||
.name = "STe100p",
|
||||
.features = PHY_BASIC_FEATURES,
|
||||
/* PHY_BASIC_FEATURES */
|
||||
.config_init = ste10Xp_config_init,
|
||||
.ack_interrupt = ste10Xp_ack_interrupt,
|
||||
.config_intr = ste10Xp_config_intr,
|
||||
|
Reference in New Issue
Block a user