r8169: restore mac addr in rtl8169_remove_one and rtl_shutdown
authorIvan Vecera <ivecera@redhat.com>
Mon, 30 Nov 2009 07:12:52 +0000 (23:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2009 07:12:52 +0000 (23:12 -0800)
commitcc098dc705895f6b0109b7e8e026ac2b8ae1c0a1
tree5fa899594290d93f7b0a9d72d1ab94e88b84ef70
parentbbf31bf18d34caa87dd01f08bf713635593697f2
r8169: restore mac addr in rtl8169_remove_one and rtl_shutdown

The newer chipsets (all PCI-E) are known that they need full power cycle
(AC or battery removal) to reset MAC address to a  hardwired one. Previous
patch to address this problem loads the original MAC address from EEPROM.
But it brought other problem for which it is necessary to introduce a new
module parameter.
However, it might suffice to restore the initial MAC address before
shutdown/reboot/kexec and when removing the module.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c