|
@@ -6194,6 +6194,9 @@ static void rtl_shutdown(struct pci_dev *pdev)
|
|
|
{
|
|
|
struct net_device *dev = pci_get_drvdata(pdev);
|
|
|
struct rtl8169_private *tp = netdev_priv(dev);
|
|
|
+ struct device *d = &pdev->dev;
|
|
|
+
|
|
|
+ pm_runtime_get_sync(d);
|
|
|
|
|
|
rtl8169_net_suspend(dev);
|
|
|
|
|
@@ -6215,6 +6218,8 @@ static void rtl_shutdown(struct pci_dev *pdev)
|
|
|
pci_wake_from_d3(pdev, true);
|
|
|
pci_set_power_state(pdev, PCI_D3hot);
|
|
|
}
|
|
|
+
|
|
|
+ pm_runtime_put_noidle(d);
|
|
|
}
|
|
|
|
|
|
static struct pci_driver rtl8169_pci_driver = {
|