linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Query] Enabling parent device clock from resume_noirq
@ 2017-04-18  6:07 Kishon Vijay Abraham I
  2017-04-18 20:05 ` Grygorii Strashko
  0 siblings, 1 reply; 3+ messages in thread
From: Kishon Vijay Abraham I @ 2017-04-18  6:07 UTC (permalink / raw)
  To: linux-kernel, linux-pci, linux-omap, linux-arm-kernel, khilman,
	rnayak, Paul Walmsley, Bjorn Helgaas, Grygorii Strashko, Nori,
	Sekhar, Kristo, Tero

Hi,

resume_noirq callbacks are used in PCIe core to restore PCI state (this
accesses PCI module). So the clocks of PCI module has to be enabled before
resume_noirq.

The clocks for the PCI module in DRA7xx is provided by PIPE3 PHY device which
in turn gets it's clock from OCP2SCP device. During resume_noirq callbacks,
pm_runtime is disabled, so pm_runtime_get_sync is ineffective. However
pm_runtime can be enabled using pm_runtime_force_resume. Now the problem is
adding pm_runtime_force_resume() in resume_noirq callback of pci-dra7xx driver
will enable only the pm_runtime of PCI device but not PIPE3 PHY or OCP2SCP.
Adding pm_runtime_force_resume() in resume_noirq callback of PIPE3 PHY driver
or OCP2SCP driver will not help if the resume_noirq callbacks in PIP3PHY driver
and OCP2SCP driver are invoked after the resume_noirq of pci-dra7xx driver.

How to enable the pm_runtime of parent devices in resume_noirq callback? Does
existing pm_runtime framework has support for that?

Thanks
Kishon

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

end of thread, other threads:[~2017-04-19 11:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18  6:07 [Query] Enabling parent device clock from resume_noirq Kishon Vijay Abraham I
2017-04-18 20:05 ` Grygorii Strashko
2017-04-19 11:10   ` Kishon Vijay Abraham I

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).