All of lore.kernel.org
 help / color / mirror / Atom feed
* netif_device_present() and Runtime PM / PCI D3
@ 2020-05-31 12:07 Heiner Kallweit
  2020-05-31 15:05 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Heiner Kallweit @ 2020-05-31 12:07 UTC (permalink / raw)
  To: netdev, Russell King - ARM Linux, Andrew Lunn, Florian Fainelli

I just wonder about the semantics of netif_device_present().
If a device is in PCI D3 (e.g. being runtime-suspended), then it's
not accessible. So is it present or not?
The description of the function just mentions the obvious case that
the device has been removed from the system.

Related is the following regarding ethtool:
dev_ethtool() returns an error if device isn't marked as present.
If device is runtime-suspended and in PCI D3, then the driver
may still be able to provide quite some (cached) info about the
device. Same applies for settings: Even if device is sleeping,
the driver may store new settings and apply them once the device
is awake again.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-02  5:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31 12:07 netif_device_present() and Runtime PM / PCI D3 Heiner Kallweit
2020-05-31 15:05 ` Andrew Lunn
2020-06-02  5:58   ` Heiner Kallweit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.