Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 332fc667 authored by Bryan Whitehead's avatar Bryan Whitehead Committed by Greg Kroah-Hartman
Browse files

lan743x: Remove MAC Reset from initialization



[ Upstream commit e0e587878f538c9e3400219b6c516b8199dc2042 ]

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.

Signed-off-by: default avatarBryan Whitehead <Bryan.Whitehead@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e1b3575c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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);