Skip to contentSkip to conversation

PM / Domains: Make pm_genpd_init() available to modules

PATCH In review Rajendra Nayak 4 participants 5 messages Aug 13, 2015 – Aug 25, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / Domains: Make pm_genpd_init() available to modules

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

---
 drivers/base/power/domain.c | 1 +
 1 file changed, 1 insertion(+)
drivers/base/power/domain.c +1 -0
index 0ee43c1..578d121 100644
@@ -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
 /*
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#1 lore raw
Quoted 6 lines · Rajendra Nayak

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

---

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.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
#2 lore raw
Quoted 10 lines · Stephen Boyd
Quoted 6 lines · Rajendra Nayak

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

---

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

Acked-by on v1 1/1
#3 lore raw
In reply to Rajendra Nayak
Quoted 5 lines · Rajendra Nayak

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

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

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

Acked-by
#4 lore raw
Quoted 7 lines · Geert Uytterhoeven
Quoted 5 lines · Rajendra Nayak

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

Quoted 8 lines

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

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.

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