]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24cd2f76b2db6e56447d9b4123966f3825fd9854
tree5b60ffcadd6a3f8324a753cc39d49116ef3ccb19
parentf99fd78c1112eea00e75d8dec437a57d65f26d4b
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