r8169: mark device as not present when in PCI D3
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 20 Jun 2020 20:36:26 +0000 (22:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:26:01 +0000 (16:26 -0700)
commit476c4f5de3689a39a097ad20120ca5653a52dad4
tree5b60ffcadd6a3f8324a753cc39d49116ef3ccb19
parentbd869245a3dcca1c8a77dfade7d3dc69a68365df
r8169: mark device as not present when in PCI D3

Mark the netdevice as detached whenever we go into PCI D3hot.
This allows to remove some checks e.g. from ethtool ops because
dev_ethtool() checks for netif_device_present() in the beginning.

In this context move waking up the queue out of rtl_reset_work()
because in cases where netif_device_attach() is called afterwards
the queue should be woken up by the latter function only.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c