mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] forcedeth: Write back the misordered mac address
@ 2005-07-29 18:58 Eric W. Biederman
  0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2005-07-29 18:58 UTC (permalink / raw)
  To: Manfred Spraul; +Cc: Andrew Morton, linux-kernel


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

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---

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

67de481a8bcb2912201ad61e637db1980d1a4d1b
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-29 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 18:58 [PATCH] forcedeth: Write back the misordered mac address Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®