]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
forcedeth: call restore mac addr in nv_shutdown path
authorYinghai Lu <yhlu.kernel@gmail.com>
Sat, 13 Sep 2008 20:10:31 +0000 (13:10 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 19 Sep 2008 01:38:44 +0000 (21:38 -0400)
commitf55c21fd9a92a444e55ad1ca4e4732d56661bf2e
treea3dbca7a83588a3a89a0c88f28ae4bcd38964430
parent27ed9ddfde8d2967076c51815e4ce297c4a18139
forcedeth: call restore mac addr in nv_shutdown path

after

| commit f735a2a1a4f2a0f5cd823ce323e82675990469e2
| Author: Tobias Diedrich <ranma+kernel@tdiedrich.de>
| Date:   Sun May 18 15:02:37 2008 +0200
|
|    [netdrvr] forcedeth: setup wake-on-lan before shutting down
|
|    When hibernating in 'shutdown' mode, after saving the image the suspend hook
|    is not called again.
|    However, if the device is in promiscous mode, wake-on-lan will not work.
|    This adds a shutdown hook to setup wake-on-lan before the final shutdown.
|
|    Signed-off-by: Tobias Diedrich <ranma+kernel@tdiedrich.de>
|    Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

my servers with nvidia ck804 and mcp55 will reverse mac address with kexec.

it turns out that we need to restore the mac addr in nv_shutdown().

[akpm@linux-foundation.org: fix typo in printk]
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Tobias Diedrich <ranma+kernel@tdiedrich.de>
Cc: Ayaz Abdulla <aabdulla@nvidia.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/forcedeth.c