]> git.proxmox.com Git - mirror_ubuntu-disco-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commitf82aa7875c8d9a25cdac0d37a9a994828d1d9e10
tree94af2bd0aa6dc1e1e450f1f7a0bab942083db747
parent97a6456da91b6448ac42ca09ef0c1613cf5b9e0a
r8169: fix MAC address being lost in PCI D3

BugLink: https://bugs.launchpad.net/bugs/1837518
[ Upstream commit 59715171fbd0172a579576f46821031800a63bc5 ]

(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: 0f07bd850d36 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/realtek/r8169.c