linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Async runtime put in __device_release_driver()
@ 2013-10-23 10:11 Tomi Valkeinen
  2013-11-05 21:29 ` Ulf Hansson
  0 siblings, 1 reply; 12+ messages in thread
From: Tomi Valkeinen @ 2013-10-23 10:11 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Kevin Hilman, Rafael J. Wysocki, Linus Walleij, Archit Taneja,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

Hi,

I was debugging why clocks were left enabled after removing omapdss
driver, and I found this commit:

fa180eb448fa263cf18dd930143b515d27d70d7b (PM / Runtime: Idle devices
asynchronously after probe|release)

I don't understand how that is supposed to work.

When a driver is removed, instead of using pm_runtime_put_sync() the
commit uses pm_runtime_put(), so the runtime_suspend call is queued. But
who is going to handle the queued suspend call, as the driver is already
removed? At least in my case, obviously nobody, as I only get
runtime_resume call in my driver, never the runtime_suspend.

Is there something I need to add to my driver to make this work, or
should that part of the patch be reverted?

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

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

end of thread, other threads:[~2013-11-07 18:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-23 10:11 Async runtime put in __device_release_driver() Tomi Valkeinen
2013-11-05 21:29 ` Ulf Hansson
2013-11-06  7:51   ` Tomi Valkeinen
2013-11-06 22:01     ` Rafael J. Wysocki
2013-11-06 22:02       ` Alan Stern
2013-11-06 22:19         ` Rafael J. Wysocki
2013-11-06 22:48           ` Ulf Hansson
2013-11-07  0:16             ` Rafael J. Wysocki
2013-11-07  0:21               ` Kevin Hilman
2013-11-07  1:05                 ` Rafael J. Wysocki
2013-11-07  8:18                   ` Ulf Hansson
2013-11-07 18:55                     ` Rafael J. Wysocki

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