Skip to contentSkip to conversation

PM: domains: Move genpd and its governor to the pmdomain subsystem

PATCH In review Ulf Hansson 3 participants 3 messages Dec 13, 2023 – Jan 3, 2024

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

PATCH 2/2 PM: domains: Move genpd and its governor to the pmdomain subsystem

It seems reasonable to collect the core parts for the generic PM domain, along with its corresponding provider drivers. Therefore let's move the files from drivers/base/power/ to drivers/pmdomain/ and while at it, let's also rename the files accordingly.

Moreover, let's also update MAINTAINERS to reflect the update.

---
 MAINTAINERS                                            | 10 +---------
 drivers/base/power/Makefile                            |  1 -
 drivers/pmdomain/Makefile                              |  1 +
 drivers/{base/power/domain.c => pmdomain/core.c}       |  0
 .../power/domain_governor.c => pmdomain/governor.c}    |  0
 5 files changed, 2 insertions(+), 10 deletions(-)
 rename drivers/{base/power/domain.c => pmdomain/core.c} (100%)
 rename drivers/{base/power/domain_governor.c => pmdomain/governor.c} (100%)
MAINTAINERS +1 -9
index ea790149af79..ab4b0aed34f9 100644
@@ -8878,21 +8878,13 @@ F:	Documentation/devicetree/bindings/i2c/i2c-demux-pinctrl.yaml
 F:	drivers/i2c/muxes/i2c-demux-pinctrl.c
 
 GENERIC PM DOMAINS
-M:	"Rafael J. Wysocki" <[email protected]>
-M:	Kevin Hilman <[email protected]>
 M:	Ulf Hansson <[email protected]>
 L:	[email protected]
 S:	Supported
 F:	Documentation/devicetree/bindings/power/power?domain*
-F:	drivers/base/power/domain*.c
-F:	include/linux/pm_domain.h
-
-GENERIC PM DOMAIN PROVIDERS
-M:	Ulf Hansson <[email protected]>
-L:	[email protected]
-S:	Supported
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git
 F:	drivers/pmdomain/
+F:	include/linux/pm_domain.h
 
 GENERIC RADIX TREE
 M:	Kent Overstreet <[email protected]>
drivers/base/power/Makefile +0 -1
index 8fdd0073eeeb..01f11629d241 100644
@@ -2,7 +2,6 @@
 obj-$(CONFIG_PM)	+= sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o
 obj-$(CONFIG_PM_SLEEP)	+= main.o wakeup.o wakeup_stats.o
 obj-$(CONFIG_PM_TRACE_RTC)	+= trace.o
-obj-$(CONFIG_PM_GENERIC_DOMAINS)	+=  domain.o domain_governor.o
 obj-$(CONFIG_HAVE_CLK)	+= clock_ops.o
 obj-$(CONFIG_PM_QOS_KUNIT_TEST) += qos-test.o
 
drivers/pmdomain/Makefile +1 -0
index f0326b27b30b..a68ece2f4c68 100644
@@ -16,3 +16,4 @@ obj-y					+= sunxi/
 obj-y					+= tegra/
 obj-y					+= ti/
 obj-y					+= xilinx/
+obj-y					+= core.o governor.o
drivers/pmdomain/core.c renamed from drivers/base/power/domain.c +0 -0
similarity index 100%
rename from drivers/base/power/domain.c
rename to drivers/pmdomain/core.c
drivers/pmdomain/governor.c renamed from drivers/base/power/domain_governor.c +0 -0
similarity index 100%
rename from drivers/base/power/domain_governor.c
rename to drivers/pmdomain/governor.c
Signature · 1 line
2.34.1
maintainer Acked-by on v1 2/2
#1 lore raw
Quoted 10 lines · Ulf Hansson

It seems reasonable to collect the core parts for the generic PM domain, along with its corresponding provider drivers. Therefore let's move the files from drivers/base/power/ to drivers/pmdomain/ and while at it, let's also rename the files accordingly.

Moreover, let's also update MAINTAINERS to reflect the update.

for both patches in the series.

Thanks!

Quoted 69 lines
---
 MAINTAINERS                                            | 10 +---------
 drivers/base/power/Makefile                            |  1 -
 drivers/pmdomain/Makefile                              |  1 +
 drivers/{base/power/domain.c => pmdomain/core.c}       |  0
 .../power/domain_governor.c => pmdomain/governor.c}    |  0
 5 files changed, 2 insertions(+), 10 deletions(-)
 rename drivers/{base/power/domain.c => pmdomain/core.c} (100%)
 rename drivers/{base/power/domain_governor.c => pmdomain/governor.c} (100%)
MAINTAINERS +1 -9
index ea790149af79..ab4b0aed34f9 100644
@@ -8878,21 +8878,13 @@ F:      Documentation/devicetree/bindings/i2c/i2c-demux-pinctrl.yaml
 F:     drivers/i2c/muxes/i2c-demux-pinctrl.c
 
 GENERIC PM DOMAINS
-M:     "Rafael J. Wysocki" <[email protected]>
-M:     Kevin Hilman <[email protected]>
 M:     Ulf Hansson <[email protected]>
 L:     [email protected]
 S:     Supported
 F:     Documentation/devicetree/bindings/power/power?domain*
-F:     drivers/base/power/domain*.c
-F:     include/linux/pm_domain.h
-
-GENERIC PM DOMAIN PROVIDERS
-M:     Ulf Hansson <[email protected]>
-L:     [email protected]
-S:     Supported
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm.git
 F:     drivers/pmdomain/
+F:     include/linux/pm_domain.h
 
 GENERIC RADIX TREE
 M:     Kent Overstreet <[email protected]>
drivers/base/power/Makefile +0 -1
index 8fdd0073eeeb..01f11629d241 100644
@@ -2,7 +2,6 @@
 obj-$(CONFIG_PM)       += sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o
 obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o wakeup_stats.o
 obj-$(CONFIG_PM_TRACE_RTC)     += trace.o
-obj-$(CONFIG_PM_GENERIC_DOMAINS)       +=  domain.o domain_governor.o
 obj-$(CONFIG_HAVE_CLK) += clock_ops.o
 obj-$(CONFIG_PM_QOS_KUNIT_TEST) += qos-test.o
 
drivers/pmdomain/Makefile +1 -0
index f0326b27b30b..a68ece2f4c68 100644
@@ -16,3 +16,4 @@ obj-y                                 += sunxi/
 obj-y                                  += tegra/
 obj-y                                  += ti/
 obj-y                                  += xilinx/
+obj-y                                  += core.o governor.o
drivers/pmdomain/core.c renamed from drivers/base/power/domain.c +0 -0
similarity index 100%
rename from drivers/base/power/domain.c
rename to drivers/pmdomain/core.c
drivers/pmdomain/governor.c renamed from drivers/base/power/domain_governor.c +0 -1
similarity index 100%
rename from drivers/base/power/domain_governor.c
rename to drivers/pmdomain/governor.c
--

2.34.1

Acked-by on v1 2/2
#2 lore raw
In reply to Ulf Hansson
Quoted 6 lines · Ulf Hansson

It seems reasonable to collect the core parts for the generic PM domain, along with its corresponding provider drivers. Therefore let's move the files from drivers/base/power/ to drivers/pmdomain/ and while at it, let's also rename the files accordingly.

Moreover, let's also update MAINTAINERS to reflect the update.

Kevin