]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8866a6def3e3617c72a31ee38f36fe521b28f6b
tree5fa899594290d93f7b0a9d72d1ab94e88b84ef70
parent0524d2ece073de368fd6fcf862f2de851dfb4c9a
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