Thread (23 messages) 23 messages, 8 authors, 2014-09-26

Re: [PATCH v5 04/11] PM / Domains: Add APIs to attach/detach a PM domain for a device

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2014-09-22 11:12:16
Also in: linux-acpi, linux-arm-kernel, linux-pm

On Fri, Sep 19, 2014 at 8:27 PM, Ulf Hansson [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/base/power/common.c
+++ b/drivers/base/power/common.c
quoted hunk ↗ jump to hunk
@@ -82,3 +84,53 @@ int dev_pm_put_subsys_data(struct device *dev)
        return ret;
 }
 EXPORT_SYMBOL_GPL(dev_pm_put_subsys_data);
+
+/**
+ * dev_pm_domain_attach - Attach a device to its PM domain.
+ * @dev: Device to attach.
+ * @power_on: Used to indicate whether we should power on the device.
+ *
+ * The @dev may only be attached to a single PM domain. By iterating through
+ * the available alternatives we try to find a valid PM domain for the device.
+ * As attachement succeeds, the ->detach() callback in the struct dev_pm_domain
attachment
+ * should be assigned by the corresponding attach function.
Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help