linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / Domains: Make pm_genpd_init() available to modules
@ 2015-08-13  6:21 Rajendra Nayak
  2015-08-13 18:11 ` Stephen Boyd
  2015-08-14  7:56 ` Geert Uytterhoeven
  0 siblings, 2 replies; 5+ messages in thread
From: Rajendra Nayak @ 2015-08-13  6:21 UTC (permalink / raw)
  To: ulf.hansson, rjw; +Cc: linux-pm, linux-kernel, sboyd, geert, Rajendra Nayak

Export symbol pm_genpd_init so it can be used in loadable
kernel modules

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/base/power/domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 0ee43c1..578d121 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1952,6 +1952,7 @@ void pm_genpd_init(struct generic_pm_domain *genpd,
 	list_add(&genpd->gpd_list_node, &gpd_list);
 	mutex_unlock(&gpd_list_lock);
 }
+EXPORT_SYMBOL_GPL(pm_genpd_init);
 
 #ifdef CONFIG_PM_GENERIC_DOMAINS_OF
 /*
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


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

* Re: [PATCH] PM / Domains: Make pm_genpd_init() available to modules
  2015-08-13  6:21 [PATCH] PM / Domains: Make pm_genpd_init() available to modules Rajendra Nayak
@ 2015-08-13 18:11 ` Stephen Boyd
  2015-08-17  4:17   ` Rajendra Nayak
  2015-08-14  7:56 ` Geert Uytterhoeven
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2015-08-13 18:11 UTC (permalink / raw)
  To: Rajendra Nayak; +Cc: ulf.hansson, rjw, linux-pm, linux-kernel, geert

On 08/13, Rajendra Nayak wrote:
> Export symbol pm_genpd_init so it can be used in loadable
> kernel modules
> 
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---

I'd like to take this through the clk tree somehow so that we can
merge the rest of the GDSC series this coming cycle.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

* Re: [PATCH] PM / Domains: Make pm_genpd_init() available to modules
  2015-08-13  6:21 [PATCH] PM / Domains: Make pm_genpd_init() available to modules Rajendra Nayak
  2015-08-13 18:11 ` Stephen Boyd
@ 2015-08-14  7:56 ` Geert Uytterhoeven
  2015-08-25 18:08   ` Kevin Hilman
  1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-08-14  7:56 UTC (permalink / raw)
  To: Rajendra Nayak
  Cc: Ulf Hansson, Rafael J. Wysocki, Linux PM list, linux-kernel,
	Stephen Boyd

On Thu, Aug 13, 2015 at 8:21 AM, Rajendra Nayak <rnayak@codeaurora.org> wrote:
> Export symbol pm_genpd_init so it can be used in loadable
> kernel modules
>
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>

Assuming you're aware of the consequences:
  - Modular PM Domain drivers don't work for "critical" devices where the
    driver is started from *OF_DECLARE(),
  - This may depend on "PM / Domains: Return -EPROBE_DEFER if we fail to
    init or turn-on domain" in pm/linux-next
    https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=311fa6adf92c5110057daa439fdaff012864aa2b

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

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

* Re: [PATCH] PM / Domains: Make pm_genpd_init() available to modules
  2015-08-13 18:11 ` Stephen Boyd
@ 2015-08-17  4:17   ` Rajendra Nayak
  0 siblings, 0 replies; 5+ messages in thread
From: Rajendra Nayak @ 2015-08-17  4:17 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: ulf.hansson, rjw, linux-pm, linux-kernel, geert


On 08/13/2015 11:41 PM, Stephen Boyd wrote:
> On 08/13, Rajendra Nayak wrote:
>> Export symbol pm_genpd_init so it can be used in loadable
>> kernel modules
>>
>> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> ---
>
> I'd like to take this through the clk tree somehow so that we can
> merge the rest of the GDSC series this coming cycle.

Ulf/Rafael, if you don't have any issues with the patch, and are fine
with Stephen taking this through the clk tree, would you be able to ack
this please? thanks.

regards,
Rajendra

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

* Re: [PATCH] PM / Domains: Make pm_genpd_init() available to modules
  2015-08-14  7:56 ` Geert Uytterhoeven
@ 2015-08-25 18:08   ` Kevin Hilman
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2015-08-25 18:08 UTC (permalink / raw)
  To: Rajendra Nayak, Geert Uytterhoeven, Rafael J. Wysocki
  Cc: Ulf Hansson, Linux PM list, linux-kernel, Stephen Boyd

Geert Uytterhoeven <geert@linux-m68k.org> writes:

> On Thu, Aug 13, 2015 at 8:21 AM, Rajendra Nayak <rnayak@codeaurora.org> wrote:
>> Export symbol pm_genpd_init so it can be used in loadable
>> kernel modules
>>
>> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>
> Assuming you're aware of the consequences:
>   - Modular PM Domain drivers don't work for "critical" devices where the
>     driver is started from *OF_DECLARE(),
>   - This may depend on "PM / Domains: Return -EPROBE_DEFER if we fail to
>     init or turn-on domain" in pm/linux-next
>     https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=311fa6adf92c5110057daa439fdaff012864aa2b
>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

Right, things can get "interesting" and there are known limitations, but
we shouldn't prevent it, and also it might help us fix the above
limitations.

Acked-by: Kevin Hilman <khilman@linaro.org>

Rafael, can you pick this one up?  I think it's better to go through the
PM tree.  v4.2 would be ideal, but I realize it's probably a bit late
for that.

Kevin

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

end of thread, other threads:[~2015-08-25 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-13  6:21 [PATCH] PM / Domains: Make pm_genpd_init() available to modules Rajendra Nayak
2015-08-13 18:11 ` Stephen Boyd
2015-08-17  4:17   ` Rajendra Nayak
2015-08-14  7:56 ` Geert Uytterhoeven
2015-08-25 18:08   ` Kevin Hilman

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