linux_dsm_epyc7002/drivers/net/ethernet/realtek
Chun-Hao Lin f51d4a10ac r8169: fix nic may not work after changing mac address.
When there is no AC power, NIC may not work after changing mac address.
Please refer to following link.
http://www.spinics.net/lists/netdev/msg356572.html

This issue is caused by runtime power management. When there is no AC
power, if we put NIC down (ifconfig down), the driver will be in runtime
suspend state and hardware will be put into D3 state. During this time,
driver cannot access hardware regisers. So if you set new mac address
during this time, it will not be set to hardware. After resume, NIC will
keep using the old mac address and the network will not work normally.

In this patch I add detecting runtime pm status when setting mac address.
If driver is in runtime suspend state, it will skip setting mac address, keep
the new mac address, and set the new mac address during runtime resume.

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-31 20:34:05 -07:00
..
8139cp.c 8139cp: Fix GSO MSS handling 2015-09-26 22:38:34 -07:00
8139too.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
atp.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
atp.h net: ethernet: realtek: atp: checkpatch errors and warnings corrected 2014-10-29 14:52:06 -04:00
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile
r8169.c r8169: fix nic may not work after changing mac address. 2016-07-31 20:34:05 -07:00