Skip to contentSkip to conversation

lan743x: Remove MAC Reset from initialization

PATCH Applied Bryan Whitehead 2 participants 2 messages Dec 19, 2018

Subsystems (3)
lore
Share & tools
lore

Bryan Whitehead

author maintainer
#0 lore raw

PATCH 1/1 lan743x: Remove MAC Reset from initialization

The MAC Reset was noticed to erase important EEPROM settings. It is also unnecessary since a chip wide reset was done earlier in initialization, and that reset preserves EEPROM settings.

There for this patch removes the unnecessary MAC specific reset.

---
 drivers/net/ethernet/microchip/lan743x_main.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/ethernet/microchip/lan743x_main.c +0 -6
index 1ba8ea0..20c9377 100644
@@ -802,14 +802,8 @@ static int lan743x_mac_init(struct lan743x_adapter *adapter)
 	u32 mac_addr_hi = 0;
 	u32 mac_addr_lo = 0;
 	u32 data;
-	int ret;
 
 	netdev = adapter->netdev;
-	lan743x_csr_write(adapter, MAC_CR, MAC_CR_RST_);
-	ret = lan743x_csr_wait_for_bit(adapter, MAC_CR, MAC_CR_RST_,
-				       0, 1000, 20000, 100);
-	if (ret)
-		return ret;
 
 	/* setup auto duplex, and speed detection */
 	data = lan743x_csr_read(adapter, MAC_CR);
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw

From: Bryan Whitehead <[email protected]>
Date: Wed, 19 Dec 2018 16:55:15 -0500

Quoted 7 lines

The MAC Reset was noticed to erase important EEPROM settings. It is also unnecessary since a chip wide reset was done earlier in initialization, and that reset preserves EEPROM settings.

There for this patch removes the unnecessary MAC specific reset.

Applied.