@@ -282,29 +282,6 @@ static struct phy_device *__fixed_phy_register(unsigned int irq,
phy->mdio.dev.of_node = np;
phy->is_pseudo_fixed_link = true;
- switch (status->speed) {
- case SPEED_1000:
- linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
- phy->supported);
- linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
- phy->supported);
- /* fall through */
- case SPEED_100:
- linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Half_BIT,
- phy->supported);
- linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT,
- phy->supported);
- /* fall through */
- case SPEED_10:
- default:
- linkmode_set_bit(ETHTOOL_LINK_MODE_10baseT_Half_BIT,
- phy->supported);
- linkmode_set_bit(ETHTOOL_LINK_MODE_10baseT_Full_BIT,
- phy->supported);
- }
-
- phy_advertise_supported(phy);
-
ret = phy_device_register(phy);
if (ret) {
phy_device_free(phy);
A fixed phy as special swphy binds to the genphy driver that calls genphy_read_abilities(). This function populates the supported and advertised modes, so we don't have to do it manually. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- drivers/net/phy/fixed_phy.c | 23 ----------------------- 1 file changed, 23 deletions(-)