Skip to content

Commit

Permalink
net: lan743x: remove unwanted interface select settings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavithra Sathyanarayanan authored and Paolo Abeni committed Jan 19, 2023
1 parent 3c107f3 commit 1c9bb44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/net/ethernet/microchip/lan743x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit 1c9bb44

Please sign in to comment.