]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix MAC address being lost in PCI D3
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 29 May 2019 05:44:01 +0000 (07:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:52:15 +0000 (11:52 -0700)
commit7eec216c6a228e507abf3d99441bc6eb1c6b43ea
tree921c826782375882b53be3dff0e05095f8247d2b
parent7ae79a53390fe21e24c70fce00da20a432aa6a49
r8169: fix MAC address being lost in PCI D3

(At least) RTL8168e forgets its MAC address in PCI D3. To fix this set
the MAC address when resuming. For resuming from runtime-suspend we
had this in place already, for resuming from S3/S5 it was missing.

The commit referenced as being fixed isn't wrong, it's just the first
one where the patch applies cleanly.

Fixes: 26341efb9abf ("r8169: use dev_get_drvdata where possible")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reported-by: Albert Astals Cid <aacid@kde.org>
Tested-by: Albert Astals Cid <aacid@kde.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c