linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] PM / Domains: Handle errors from ->attach_dev() callback
@ 2014-10-28 14:38 Ulf Hansson
  2014-10-28 14:38 ` [PATCH 1/4] PM / Domains: Remove reference counting for the generic_pm_domain_data Ulf Hansson
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Ulf Hansson @ 2014-10-28 14:38 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset enabled the recently added ->attach_dev() callback to return an
error code.

Typically these callbacks will fetch some PM resourses, like clocks through a
clk_get() which may fail. To be able to handle the errors we need to return an
error code.

Do note, the buses which invokes dev_pm_domain_attach() are already handling
-EPROBE_DEFER, which means the ->attach_dev() callbacks may also return this
if needed.


Ulf Hansson (4):
  PM / Domains: Remove reference counting for the generic_pm_domain_data
  PM / Domains: Don't allow an existing generic PM domain data
  PM / Domains: Improve error handling while adding/removing devices
  PM / Domains: Let the ->attach_dev() callback return an error code

 drivers/base/power/domain.c | 143 +++++++++++++++++++++++---------------------
 include/linux/pm_domain.h   |   3 +-
 2 files changed, 77 insertions(+), 69 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2014-11-05  8:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 14:38 [PATCH 0/4] PM / Domains: Handle errors from ->attach_dev() callback Ulf Hansson
2014-10-28 14:38 ` [PATCH 1/4] PM / Domains: Remove reference counting for the generic_pm_domain_data Ulf Hansson
2014-10-29 20:44   ` Kevin Hilman
2014-10-28 14:38 ` [PATCH 2/4] PM / Domains: Don't allow an existing generic PM domain data Ulf Hansson
2014-10-29 22:28   ` Kevin Hilman
2014-10-28 14:38 ` [PATCH 3/4] PM / Domains: Improve error handling while adding/removing devices Ulf Hansson
2014-10-29 23:53   ` Kevin Hilman
2014-10-30 11:27     ` Ulf Hansson
2014-10-29 23:57   ` Kevin Hilman
2014-10-30 11:25     ` Ulf Hansson
2014-11-05  7:47   ` Geert Uytterhoeven
2014-11-05  8:03     ` Ulf Hansson
2014-10-28 14:38 ` [PATCH 4/4] PM / Domains: Let the ->attach_dev() callback return an error code Ulf Hansson
2014-10-28 20:31   ` Geert Uytterhoeven
2014-10-29  9:26     ` Ulf Hansson
2014-10-29  9:32       ` Geert Uytterhoeven
2014-10-29 10:14         ` Ulf Hansson
2014-10-29 10:28           ` Geert Uytterhoeven
2014-10-29 21:10     ` Kevin Hilman
2014-10-29 21:18       ` Geert Uytterhoeven
2014-10-30 11:34       ` 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).