On Tue, Mar 27, 2018 at 12:18:40AM +0200, Francois Romieu wrote: > Andrew Lunn <and...@lunn.ch> : > [...] > > How about rtl8169_get_wol() and rtl8169_set_wol(). And > > rtl8169_get_ethtool_stats(). > > rtl8169_get_wol does not depend on dev->driver_data. Neither does > rtl8169_set_wol() nor rtl8169_get_ethtool_stats().
I don't know runtime pm very well, but these functions call pm_runtime_get_noresume and pm_runtime_put_noidle. If they can result in calls to any of the rtl8169_runtime_* functions, pci_get_drvdata() is going to get called. Andrew