lkml.org 
[lkml]   [2005]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] forcedeth: Write back the misordered mac address
From
Date

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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-07-29 21:08    [W:0.175 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site