summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/microchip/lan743x_main.c
diff options
context:
space:
mode:
authorPavithra Sathyanarayanan <Pavithra.Sathyanarayanan@microchip.com>2023-01-17 17:16:12 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-01-19 15:50:11 +0300
commit1c9bb44290090d438352ca3ec33c9068262d61f2 (patch)
tree61cc6cc4938b786b0a7e9ad2d3a9502db333a351 /drivers/net/ethernet/microchip/lan743x_main.c
parent3c107f36db061603bee7564fbd6388b1f1879fd3 (diff)
downloadlinux-1c9bb44290090d438352ca3ec33c9068262d61f2.tar.xz
net: lan743x: remove unwanted interface select settings
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>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan743x_main.c')
-rw-r--r--drivers/net/ethernet/microchip/lan743x_main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c
index e205edf477de..c4d16f4654b5 100644
--- a/drivers/net/ethernet/microchip/lan743x_main.c
+++ b/drivers/net/ethernet/microchip/lan743x_main.c
@@ -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_;