]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: mac address fix
authorAyaz Abdulla <aabdulla@nvidia.com>
Fri, 11 Apr 2008 04:30:35 +0000 (21:30 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 12 Apr 2008 08:38:12 +0000 (04:38 -0400)
commit5d80eeb916c9e31e7a0199830bf07d3a0b380fe9
treeb00f23487d23a93fe2cce93d5ad682deb27cbad9
parent72d22de43f07d0547c31b518169465cec92b66ac
forcedeth: mac address fix

This critical patch fixes a mac address issue recently introduced.  If the
device's mac address was in correct order and the flag
NVREG_TRANSMITPOLL_MAC_ADDR_REV was set, during nv_remove the flag would get
cleared.  During next load, the mac address would get reversed because the
flag is missing.

As it has been indicated previously, the flag is cleared across a low power
transition.  Therefore, the driver should set the mac address back into the
reversed order when clearing the flag.

Also, the driver should set back the flag after a low power transition to
protect against kexec command calling nv_probe a second time.

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
Cc: "Yinghai Lu" <yhlu.kernel@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/forcedeth.c