net: lan743x: remove unwanted interface select settings
authorPavithra Sathyanarayanan <Pavithra.Sathyanarayanan@microchip.com>
Tue, 17 Jan 2023 14:16:12 +0000 (19:46 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jan 2023 12:50:11 +0000 (13:50 +0100)
Remove the MII/RGMII Selection settings in driver as it is preset
by the EEPROM and has the required configurations before the driver
loads for LAN743x.

Signed-off-by: Pavithra Sathyanarayanan <Pavithra.Sathyanarayanan@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/lan743x_main.c

index e205edf477deafa6d87440de93e891896ffd7694..c4d16f4654b50d308c9ce36d9aa27ade944e3928 100644 (file)
@@ -1418,14 +1418,6 @@ static void lan743x_phy_link_status_change(struct net_device *netdev)
 
                data = lan743x_csr_read(adapter, MAC_CR);
 
-               /* set interface mode */
-               if (phy_interface_is_rgmii(phydev))
-                       /* RGMII */
-                       data &= ~MAC_CR_MII_EN_;
-               else
-                       /* GMII */
-                       data |= MAC_CR_MII_EN_;
-
                /* set duplex mode */
                if (phydev->duplex)
                        data |= MAC_CR_DPX_;