forcedeth: Write back the misordered mac address
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.
Signed-off-by Eric W. Biederman <[email protected]>
---
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 *dif (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 ;