Skip to contentSkip to conversation

forcedeth: Write back the misordered mac address

PATCH New Eric W. Biederman 1 participant 1 message Jul 29, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 forcedeth: Write back the misordered mac address

This keeps the forcedepth driver from loosing it's mac address over a kexec reboot. Other kinds of reboot may benefit as well.

---

 drivers/net/forcedeth.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

67de481a8bcb2912201ad61e637db1980d1a4d1b

drivers/net/forcedeth.c +6 -0
@@ -1942,6 +1942,12 @@ static int nv_close(struct net_device *d
 	if (np->wolenabled)
 		nv_start_rx(dev);
 
+	/* special op: write back the misordered MAC address - otherwise
+	 * the next nv_probe would see a wrong address.
+	 */
+	writel(np->orig_mac[0], base + NvRegMacAddrA);
+	writel(np->orig_mac[1], base + NvRegMacAddrB);
+
 	/* FIXME: power down nic */
 
 	return 0;