Linux PCI subsystem development
 help / color / mirror / Atom feed
* how to trigger pcieport runtime suspend?
@ 2014-03-23 18:16 Andreas Noever
  2014-03-24 17:11 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Noever @ 2014-03-23 18:16 UTC (permalink / raw)
  To: linux-pci@vger.kernel.org

The pcieport driver defines runtime_suspend and runtime_resume methods
(pcie_port_runtime_suspend/resume in portdrv_pci.c). I am trying to
trigger that code. But I cannot get power/runtime_usage to drop to
zero.

Initially power/runtime_usage is set to 2. The 2 comes (imho) from:
pci_pm_init -> pm_runtime_forbid
local_pci_probe -> pm_runtime_get_sync

The pm_runtime_forbid can be undone with echo auto > power/control,
but the second one seems to never go away. local_pci_probe spots the
following comment:
"If the driver supports runtime PM, it should call
pm_runtime_put_noidle() in its probe routine and
pm_runtime_get_noresume() in its remove routine." I cannot find any
such calls in the pcieport driver (or in the port service drivers).

What am I missing?

Thanks,
Andreas

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

end of thread, other threads:[~2014-03-25 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23 18:16 how to trigger pcieport runtime suspend? Andreas Noever
2014-03-24 17:11 ` Bjorn Helgaas
2014-03-24 17:19   ` Alan Stern
2014-03-25 18:39     ` Rafael J. Wysocki
2014-03-25 19:18     ` Andreas Noever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox