Counters are updated whenever we go down, therefore move the call to
rtl8169_down().
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
phy_stop(tp->phydev);
+ rtl8169_update_counters(tp);
+
rtl8169_cleanup(tp, true);
rtl_pll_power_down(tp);
pm_runtime_get_sync(&pdev->dev);
- /* Update counters before going down */
- rtl8169_update_counters(tp);
-
netif_stop_queue(dev);
rtl8169_down(tp);
rtl8169_rx_clear(tp);
rtl8169_net_suspend(tp);
- /* Update counters before going runtime suspend */
- rtl8169_update_counters(tp);
-
return 0;
}