All of lore.kernel.org
 help / color / mirror / Atom feed
* Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend.
@ 2011-08-26 13:01 Govindraj.R
  2011-08-26 18:36 ` [linux-pm] " Alan Stern
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Govindraj.R @ 2011-08-26 13:01 UTC (permalink / raw)
  To: Rafael J. Wysocki, Paul Walmsley, Kevin Hilman
  Cc: linux-omap, linux-pm, Vishwanath Sripathy, Partha Basak,
	Felipe Balbi, Santosh Shilimkar, Rajendra Nayak, Benoit Cousson,
	Tero Kristo, Govindraj R, Keshava Munegowda

Hello,

During system_wide_suspend pm runtime is disabled.
I.e. __pm_runtime_disable is called from __device_suspend.
Now, if a wakeup interrupt is triggered and the wakeup device irq handler
is called even before device_resume and pm_runtime_enable happens,
the device irq_handler proceeds to enable clock with runtime API to
handle wakeup event.
 
Wouldn't this result in system wide abort since the pm_runtime is not enabled
yet from dpm_resume?
As we end up accessing regs after doing runtime get_sync.
 
Looks like this scenario is not handled currently.
Or Am I missing something here?

--
Thanks,
Govindraj.R


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

end of thread, other threads:[~2011-09-08 13:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-26 13:01 Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend Govindraj.R
2011-08-26 18:36 ` [linux-pm] " Alan Stern
2011-08-27  6:30   ` Santosh
2011-08-27  6:30   ` [linux-pm] " Santosh
2011-08-27 14:01     ` Alan Stern
2011-08-27 14:49       ` Santosh
2011-08-27 19:42         ` Alan Stern
2011-09-07 15:48           ` Tero Kristo
2011-09-07 15:48           ` [linux-pm] " Tero Kristo
2011-09-07 17:59             ` Kevin Hilman
2011-09-08  4:58               ` Tero Kristo
2011-09-08  4:58               ` [linux-pm] " Tero Kristo
2011-09-08 13:51                 ` Kevin Hilman
2011-09-08 13:51                 ` Kevin Hilman
2011-09-07 17:59             ` Kevin Hilman
2011-08-27 19:42         ` Alan Stern
2011-08-27 14:49       ` Santosh
2011-08-27 14:01     ` Alan Stern
2011-08-26 18:36 ` Alan Stern
2011-08-26 20:52 ` Rafael J. Wysocki
2011-08-26 20:52 ` Rafael J. Wysocki

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.