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 <[EMAIL PROTECTED]>
---

 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to