linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Preventing PM from suspending device
@ 2017-01-09 17:22 Niklas Söderlund
  2017-01-11 23:19 ` Ulf Hansson
  0 siblings, 1 reply; 10+ messages in thread
From: Niklas Söderlund @ 2017-01-09 17:22 UTC (permalink / raw)
  To: Ulf Hansson, linux-pm; +Cc: Geert Uytterhoeven

Hi Ulf and Linux PM,

I have a question regarding if a driver can signal to the PM core that 
it should not be suspended from its struct dev_pm_ops suspend callback.

My use-case is the sh_eth driver which I have added Wake-on-Lan support 
to, see [1]. In this driver I need to prevent the PM core to disable the 
module clock to the device if WoL is enabled. Currently I call 
clk_enable()/clk_disable() from the suspend/resume callbacks to modify 
the usage count of the clock to prevent the clock from being switched 
off by PM. This do not feel like the best solution to my problem.

Is there a more generic way to let PM know that I'm fine with the system 
being suspended and I have suspended as much as I can but I'm a wake up source 
so could please not switch of my clock and power domain?

1. https://marc.info/?l=linux-pm&m=148397620011501&w=2

-- 
Regards,
Niklas Söderlund

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

end of thread, other threads:[~2017-10-18 12:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 17:22 Preventing PM from suspending device Niklas Söderlund
2017-01-11 23:19 ` Ulf Hansson
2017-01-12  7:10   ` Geert Uytterhoeven
2017-01-12 17:02     ` Ulf Hansson
2017-01-13  9:38       ` Geert Uytterhoeven
2017-03-29 19:28       ` Niklas Söderlund
2017-03-30 16:44         ` Ulf Hansson
2017-03-30 20:35           ` Niklas Söderlund
2017-10-18 11:35             ` Geert Uytterhoeven
2017-10-18 12:06               ` Ulf Hansson

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).