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)
commita376e79c6079c2ba6c5fadb0e85a3bb7e465ad89
treeb00f23487d23a93fe2cce93d5ad682deb27cbad9
parent72cfe92266540d8510946921a599f140a3d4aaa8
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