Skip to contentSkip to conversation

power: avs: Move drivers to the soc directories and drop avs

PATCH In review Ulf Hansson 7 participants 15 messages Oct 6, 2020 – Oct 21, 2020

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

cover power: avs: Move drivers to the soc directories and drop avs

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

Kind regards
Ulf Hansson

Ulf Hansson (4):
power: avs: qcom-cpr: Move the driver to the qcom specific drivers
power: avs: rockchip-io: Move the driver to the rockchip specific
drivers
power: avs: smartreflex Move driver to soc specific drivers
power: avs: Drop the avs directory and the corresponding Kconfig

 MAINTAINERS                                   |  6 +--
 arch/arm/plat-omap/Kconfig                    |  2 +-
 drivers/power/Kconfig                         |  1 -
 drivers/power/Makefile                        |  1 -
 drivers/power/avs/Kconfig                     | 37 -------------------
 drivers/power/avs/Makefile                    |  4 --
 drivers/soc/qcom/Kconfig                      | 16 ++++++++
 drivers/soc/qcom/Makefile                     |  1 +
 .../{power/avs/qcom-cpr.c => soc/qcom/cpr.c}  |  0
 drivers/soc/rockchip/Kconfig                  |  8 ++++
 drivers/soc/rockchip/Makefile                 |  1 +
 .../rockchip/io-domain.c}                     |  0
 drivers/soc/ti/Makefile                       |  1 +
 drivers/{power/avs => soc/ti}/smartreflex.c   |  0
 14 files changed, 31 insertions(+), 47 deletions(-)
 delete mode 100644 drivers/power/avs/Kconfig
 delete mode 100644 drivers/power/avs/Makefile
 rename drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} (100%)
 rename drivers/{power/avs/rockchip-io-domain.c => soc/rockchip/io-domain.c} (100%)
 rename drivers/{power/avs => soc/ti}/smartreflex.c (100%)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/4 power: avs: qcom-cpr: Move the driver to the qcom specific drivers

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, let's move the qcom-cpr driver to the qcom directory.

Cc Niklas Cassel <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Andy Gross <[email protected]>
---
 MAINTAINERS                                      |  2 +-
 drivers/power/avs/Kconfig                        | 16 ----------------
 drivers/power/avs/Makefile                       |  1 -
 drivers/soc/qcom/Kconfig                         | 16 ++++++++++++++++
 drivers/soc/qcom/Makefile                        |  1 +
 drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} |  0
 6 files changed, 18 insertions(+), 18 deletions(-)
 rename drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} (100%)
MAINTAINERS +1 -1
index 4f1a56f6efaa..f51dd1944fe6 100644
@@ -14337,7 +14337,7 @@ L:	[email protected]
 L:	[email protected]
 S:	Maintained
 F:	Documentation/devicetree/bindings/power/avs/qcom,cpr.txt
-F:	drivers/power/avs/qcom-cpr.c
+F:	drivers/soc/qcom/cpr.c
 
 QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096
 M:	Ilia Lin <[email protected]>
drivers/power/avs/Kconfig +0 -16
index cdb4237bfd02..089b6244b716 100644
@@ -12,22 +12,6 @@ menuconfig POWER_AVS
 
 	  Say Y here to enable Adaptive Voltage Scaling class support.
 
-config QCOM_CPR
-	tristate "QCOM Core Power Reduction (CPR) support"
-	depends on POWER_AVS && HAS_IOMEM
-	select PM_OPP
-	select REGMAP
-	help
-	  Say Y here to enable support for the CPR hardware found on Qualcomm
-	  SoCs like QCS404.
-
-	  This driver populates CPU OPPs tables and makes adjustments to the
-	  tables based on feedback from the CPR hardware. If you want to do
-	  CPUfrequency scaling say Y here.
-
-	  To compile this driver as a module, choose M here: the module will
-	  be called qcom-cpr
-
 config ROCKCHIP_IODOMAIN
 	tristate "Rockchip IO domain support"
 	depends on POWER_AVS && ARCH_ROCKCHIP && OF
drivers/power/avs/Makefile +0 -1
index 9007d05853e2..a1b8cd453f19 100644
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 obj-$(CONFIG_POWER_AVS_OMAP)		+= smartreflex.o
-obj-$(CONFIG_QCOM_CPR)			+= qcom-cpr.o
 obj-$(CONFIG_ROCKCHIP_IODOMAIN)		+= rockchip-io-domain.o
drivers/soc/qcom/Kconfig +16 -0
index 3dc3e3d61ea3..6a3b69b43ad5 100644
@@ -26,6 +26,22 @@ config QCOM_COMMAND_DB
 	  resource on a RPM-hardened platform must use this database to get
 	  SoC specific identifier and information for the shared resources.
 
+config QCOM_CPR
+	tristate "QCOM Core Power Reduction (CPR) support"
+	depends on ARCH_QCOM && HAS_IOMEM
+	select PM_OPP
+	select REGMAP
+	help
+	  Say Y here to enable support for the CPR hardware found on Qualcomm
+	  SoCs like QCS404.
+
+	  This driver populates CPU OPPs tables and makes adjustments to the
+	  tables based on feedback from the CPR hardware. If you want to do
+	  CPUfrequency scaling say Y here.
+
+	  To compile this driver as a module, choose M here: the module will
+	  be called qcom-cpr
+
 config QCOM_GENI_SE
 	tristate "QCOM GENI Serial Engine Driver"
 	depends on ARCH_QCOM || COMPILE_TEST
drivers/soc/qcom/Makefile +1 -0
index 93392d9dc7f7..ad675a6593d0 100644
@@ -3,6 +3,7 @@ CFLAGS_rpmh-rsc.o := -I$(src)
 obj-$(CONFIG_QCOM_AOSS_QMP) +=	qcom_aoss.o
 obj-$(CONFIG_QCOM_GENI_SE) +=	qcom-geni-se.o
 obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o
+obj-$(CONFIG_QCOM_CPR)		+= cpr.o
 obj-$(CONFIG_QCOM_GSBI)	+=	qcom_gsbi.o
 obj-$(CONFIG_QCOM_MDT_LOADER)	+= mdt_loader.o
 obj-$(CONFIG_QCOM_OCMEM)	+= ocmem.o
drivers/soc/qcom/cpr.c renamed from drivers/power/avs/qcom-cpr.c +0 -0
similarity index 100%
rename from drivers/power/avs/qcom-cpr.c
rename to drivers/soc/qcom/cpr.c
Signature · 1 line
2.25.1
Acked-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] power: avs: qcom-cpr: Move the driver to the qcom specific drivers

Quoted 6 lines · Ulf Hansson

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Quoted 7 lines

Therefore, let's move the qcom-cpr driver to the qcom directory.

Cc Niklas Cassel <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Andy Gross <[email protected]>

Regards,
Bjorn

Quoted 105 lines
---
 MAINTAINERS                                      |  2 +-
 drivers/power/avs/Kconfig                        | 16 ----------------
 drivers/power/avs/Makefile                       |  1 -
 drivers/soc/qcom/Kconfig                         | 16 ++++++++++++++++
 drivers/soc/qcom/Makefile                        |  1 +
 drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} |  0
 6 files changed, 18 insertions(+), 18 deletions(-)
 rename drivers/{power/avs/qcom-cpr.c => soc/qcom/cpr.c} (100%)
MAINTAINERS +1 -1
index 4f1a56f6efaa..f51dd1944fe6 100644
@@ -14337,7 +14337,7 @@ L:	[email protected]
 L:	[email protected]
 S:	Maintained
 F:	Documentation/devicetree/bindings/power/avs/qcom,cpr.txt
-F:	drivers/power/avs/qcom-cpr.c
+F:	drivers/soc/qcom/cpr.c
 
 QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096
 M:	Ilia Lin <[email protected]>
drivers/power/avs/Kconfig +0 -16
index cdb4237bfd02..089b6244b716 100644
@@ -12,22 +12,6 @@ menuconfig POWER_AVS
 
 	  Say Y here to enable Adaptive Voltage Scaling class support.
 
-config QCOM_CPR
-	tristate "QCOM Core Power Reduction (CPR) support"
-	depends on POWER_AVS && HAS_IOMEM
-	select PM_OPP
-	select REGMAP
-	help
-	  Say Y here to enable support for the CPR hardware found on Qualcomm
-	  SoCs like QCS404.
-
-	  This driver populates CPU OPPs tables and makes adjustments to the
-	  tables based on feedback from the CPR hardware. If you want to do
-	  CPUfrequency scaling say Y here.
-
-	  To compile this driver as a module, choose M here: the module will
-	  be called qcom-cpr
-
 config ROCKCHIP_IODOMAIN
 	tristate "Rockchip IO domain support"
 	depends on POWER_AVS && ARCH_ROCKCHIP && OF
drivers/power/avs/Makefile +0 -1
index 9007d05853e2..a1b8cd453f19 100644
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 obj-$(CONFIG_POWER_AVS_OMAP)		+= smartreflex.o
-obj-$(CONFIG_QCOM_CPR)			+= qcom-cpr.o
 obj-$(CONFIG_ROCKCHIP_IODOMAIN)		+= rockchip-io-domain.o
drivers/soc/qcom/Kconfig +16 -0
index 3dc3e3d61ea3..6a3b69b43ad5 100644
@@ -26,6 +26,22 @@ config QCOM_COMMAND_DB
 	  resource on a RPM-hardened platform must use this database to get
 	  SoC specific identifier and information for the shared resources.
 
+config QCOM_CPR
+	tristate "QCOM Core Power Reduction (CPR) support"
+	depends on ARCH_QCOM && HAS_IOMEM
+	select PM_OPP
+	select REGMAP
+	help
+	  Say Y here to enable support for the CPR hardware found on Qualcomm
+	  SoCs like QCS404.
+
+	  This driver populates CPU OPPs tables and makes adjustments to the
+	  tables based on feedback from the CPR hardware. If you want to do
+	  CPUfrequency scaling say Y here.
+
+	  To compile this driver as a module, choose M here: the module will
+	  be called qcom-cpr
+
 config QCOM_GENI_SE
 	tristate "QCOM GENI Serial Engine Driver"
 	depends on ARCH_QCOM || COMPILE_TEST
drivers/soc/qcom/Makefile +1 -0
index 93392d9dc7f7..ad675a6593d0 100644
@@ -3,6 +3,7 @@ CFLAGS_rpmh-rsc.o := -I$(src)
 obj-$(CONFIG_QCOM_AOSS_QMP) +=	qcom_aoss.o
 obj-$(CONFIG_QCOM_GENI_SE) +=	qcom-geni-se.o
 obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o
+obj-$(CONFIG_QCOM_CPR)		+= cpr.o
 obj-$(CONFIG_QCOM_GSBI)	+=	qcom_gsbi.o
 obj-$(CONFIG_QCOM_MDT_LOADER)	+= mdt_loader.o
 obj-$(CONFIG_QCOM_OCMEM)	+= ocmem.o
drivers/soc/qcom/cpr.c renamed from drivers/power/avs/qcom-cpr.c +0 -0
similarity index 100%
rename from drivers/power/avs/qcom-cpr.c
rename to drivers/soc/qcom/cpr.c
Signature · 1 line
2.25.1
Acked-by on v1 1/4
#3 lore raw

Re: [PATCH 1/4] power: avs: qcom-cpr: Move the driver to the qcom specific drivers

In reply to Ulf Hansson
Quoted 6 lines · Ulf Hansson

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Quoted 8 lines

Therefore, let's move the qcom-cpr driver to the qcom directory.

Cc Niklas Cassel <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Andy Gross <[email protected]>

---

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

PATCH 2/4 power: avs: rockchip-io: Move the driver to the rockchip specific drivers

In reply to Ulf Hansson

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, let's move the rockchip-io driver to the rockchip directory.

---
 drivers/power/avs/Kconfig                                 | 8 --------
 drivers/power/avs/Makefile                                | 1 -
 drivers/soc/rockchip/Kconfig                              | 8 ++++++++
 drivers/soc/rockchip/Makefile                             | 1 +
 .../avs/rockchip-io-domain.c => soc/rockchip/io-domain.c} | 0
 5 files changed, 9 insertions(+), 9 deletions(-)
 rename drivers/{power/avs/rockchip-io-domain.c => soc/rockchip/io-domain.c} (100%)
drivers/power/avs/Kconfig +0 -8
index 089b6244b716..9dde5a7e75c9 100644
@@ -11,11 +11,3 @@ menuconfig POWER_AVS
 	  AVS is also called SmartReflex on OMAP devices.
 
 	  Say Y here to enable Adaptive Voltage Scaling class support.
-
-config ROCKCHIP_IODOMAIN
-	tristate "Rockchip IO domain support"
-	depends on POWER_AVS && ARCH_ROCKCHIP && OF
-	help
-	  Say y here to enable support io domains on Rockchip SoCs. It is
-	  necessary for the io domain setting of the SoC to match the
-	  voltage supplied by the regulators.
drivers/power/avs/Makefile +0 -1
index a1b8cd453f19..d541d436f01d 100644
@@ -1,3 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
 obj-$(CONFIG_POWER_AVS_OMAP)		+= smartreflex.o
-obj-$(CONFIG_ROCKCHIP_IODOMAIN)		+= rockchip-io-domain.o
drivers/soc/rockchip/Kconfig +8 -0
index b71b73bf5fc5..2c13bf4dd5db 100644
@@ -14,6 +14,14 @@ config ROCKCHIP_GRF
 	  In a lot of cases there also need to be default settings initialized
 	  to make some of them conform to expectations of the kernel.
 
+config ROCKCHIP_IODOMAIN
+	tristate "Rockchip IO domain support"
+	depends on OF
+	help
+	  Say y here to enable support io domains on Rockchip SoCs. It is
+	  necessary for the io domain setting of the SoC to match the
+	  voltage supplied by the regulators.
+
 config ROCKCHIP_PM_DOMAINS
         bool "Rockchip generic power domain"
         depends on PM
drivers/soc/rockchip/Makefile +1 -0
index afca0a4c4b72..875032f7344e 100644
@@ -3,4 +3,5 @@
 # Rockchip Soc drivers
 #
 obj-$(CONFIG_ROCKCHIP_GRF) += grf.o
+obj-$(CONFIG_ROCKCHIP_IODOMAIN) += io-domain.o
 obj-$(CONFIG_ROCKCHIP_PM_DOMAINS) += pm_domains.o
drivers/soc/rockchip/io-domain.c renamed from drivers/power/avs/rockchip-io-domain.c +0 -0
similarity index 100%
rename from drivers/power/avs/rockchip-io-domain.c
rename to drivers/soc/rockchip/io-domain.c
Signature · 1 line
2.25.1
maintainer Acked-by on v1 2/4
#5 lore raw

Re: [PATCH 2/4] power: avs: rockchip-io: Move the driver to the rockchip specific drivers

Am Dienstag, 6. Oktober 2020, 18:05:14 CEST schrieb Ulf Hansson:

Quoted 11 lines

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, let's move the rockchip-io driver to the rockchip directory.

#6 lore raw

PATCH 3/4 power: avs: smartreflex Move driver to soc specific drivers

In reply to Ulf Hansson

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, let's move the smartreflex driver for OMAP to the ti directory.

Cc Nishanth Menon <[email protected]>
Cc Aaro Koskinen <[email protected]>
Cc Tony Lindgren <[email protected]>
---
 MAINTAINERS                                 |  4 ++--
 arch/arm/plat-omap/Kconfig                  |  2 +-
 drivers/power/avs/Kconfig                   | 12 ------------
 drivers/power/avs/Makefile                  |  1 -
 drivers/soc/ti/Makefile                     |  1 +
 drivers/{power/avs => soc/ti}/smartreflex.c |  0
 6 files changed, 4 insertions(+), 16 deletions(-)
 rename drivers/{power/avs => soc/ti}/smartreflex.c (100%)
MAINTAINERS +2 -2
index f51dd1944fe6..040f0506d1c6 100644
@@ -5379,11 +5379,11 @@ F:	include/linux/debugfs.h
 F:	include/linux/kobj*
 F:	lib/kobj*
 
-DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS)
+DRIVERS FOR OMAP ADAPTIVE VOLTAGE SCALING (AVS)
 M:	Nishanth Menon <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	drivers/power/avs/
+F:	drivers/soc/ti/smartreflex.c
 F:	include/linux/power/smartreflex.h
 
 DRM DRIVER FOR ALLWINNER DE2 AND DE3 ENGINE
arch/arm/plat-omap/Kconfig +1 -1
index 93fd7fc537cf..272670ef1e92 100644
@@ -23,7 +23,7 @@ config OMAP_DEBUG_LEDS
 
 config POWER_AVS_OMAP
 	bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2"
-	depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM
+	depends on (ARCH_OMAP3 || ARCH_OMAP4) && PM
 	select POWER_SUPPLY
 	help
 	  Say Y to enable AVS(Adaptive Voltage Scaling)
drivers/power/avs/Kconfig +0 -12
index 9dde5a7e75c9..a4e40e534e6a 100644
@@ -1,13 +1 @@
 # SPDX-License-Identifier: GPL-2.0-only
-menuconfig POWER_AVS
-	bool "Adaptive Voltage Scaling class support"
-	help
-	  AVS is a power management technique which finely controls the
-	  operating voltage of a device in order to optimize (i.e. reduce)
-	  its power consumption.
-	  At a given operating point the voltage is adapted depending on
-	  static factors (chip manufacturing process) and dynamic factors
-	  (temperature depending performance).
-	  AVS is also called SmartReflex on OMAP devices.
-
-	  Say Y here to enable Adaptive Voltage Scaling class support.
drivers/power/avs/Makefile +0 -1
index d541d436f01d..a4e40e534e6a 100644
@@ -1,2 +1 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_POWER_AVS_OMAP)		+= smartreflex.o
drivers/soc/ti/Makefile +1 -0
index 1110e5c98685..5463431ec96c 100644
@@ -12,3 +12,4 @@ obj-$(CONFIG_TI_SCI_PM_DOMAINS)		+= ti_sci_pm_domains.o
 obj-$(CONFIG_TI_SCI_INTA_MSI_DOMAIN)	+= ti_sci_inta_msi.o
 obj-$(CONFIG_TI_K3_RINGACC)		+= k3-ringacc.o
 obj-$(CONFIG_TI_K3_SOCINFO)		+= k3-socinfo.o
+obj-$(CONFIG_POWER_AVS_OMAP)		+= smartreflex.o
drivers/soc/ti/smartreflex.c renamed from drivers/power/avs/smartreflex.c +0 -0
similarity index 100%
rename from drivers/power/avs/smartreflex.c
rename to drivers/soc/ti/smartreflex.c
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 3/4
#7 lore raw

Re: [PATCH 3/4] power: avs: smartreflex Move driver to soc specific drivers

Quoted 13 lines · Ulf Hansson

The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, let's move the smartreflex driver for OMAP to the ti directory.

Cc Nishanth Menon <[email protected]>
Cc Aaro Koskinen <[email protected]>
Cc Tony Lindgren <[email protected]>

[...]

CCying Santosh to let him know as well.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#8 lore raw

PATCH 4/4 power: avs: Drop the avs directory and the corresponding Kconfig

In reply to Ulf Hansson

All avs drivers have now been moved to their corresponding soc specific directories. Additionally, they don't depend on the POWER_AVS Kconfig anymore. Therefore, let's simply drop the drivers/power/avs directory altogether.

Cc Nishanth Menon <[email protected]>
---
 drivers/power/Kconfig      | 1 -
 drivers/power/Makefile     | 1 -
 drivers/power/avs/Kconfig  | 1 -
 drivers/power/avs/Makefile | 1 -
 4 files changed, 4 deletions(-)
 delete mode 100644 drivers/power/avs/Kconfig
 delete mode 100644 drivers/power/avs/Makefile
drivers/power/Kconfig +0 -1
index ff0350ca3b74..696bf77a7042 100644
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
-source "drivers/power/avs/Kconfig"
 source "drivers/power/reset/Kconfig"
 source "drivers/power/supply/Kconfig"
drivers/power/Makefile +0 -1
index b7c2e372186b..effbf0377f32 100644
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_POWER_AVS)		+= avs/
 obj-$(CONFIG_POWER_RESET)	+= reset/
 obj-$(CONFIG_POWER_SUPPLY)	+= supply/
drivers/power/avs/Kconfig deleted +0 -1
deleted file mode 100644
index a4e40e534e6a..000000000000
@@ -1 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
drivers/power/avs/Makefile deleted +0 -1
deleted file mode 100644
index a4e40e534e6a..000000000000
@@ -1 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 4/4
#9 lore raw

Re: [PATCH 4/4] power: avs: Drop the avs directory and the corresponding Kconfig

Quoted 7 lines · Ulf Hansson

All avs drivers have now been moved to their corresponding soc specific directories. Additionally, they don't depend on the POWER_AVS Kconfig anymore. Therefore, let's simply drop the drivers/power/avs directory altogether.

Cc Nishanth Menon <[email protected]>
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#10 lore raw
In reply to Ulf Hansson
Quoted 7 lines · Ulf Hansson

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Quoted 6 lines

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

That's fine by me.

I'd like to get an ACK from the arm-soc side on this, though.

Cheers!

#11 lore raw

+ Arnd

Quoted 12 lines · Rafael J. Wysocki
Quoted 10 lines · Ulf Hansson

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

Quoted 7 lines
Quoted 3 lines

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

That's fine by me.

I'd like to get an ACK from the arm-soc side on this, though.

I have looped in Arnd, to get his opinion on this.

Although, I think the people on cc already send pull requests to the arm-soc maintainers (or perhaps it was these people you were referring to), so just awaiting their acks should be fine, I guess.

Kind regards
Uffe

#12 lore raw
Quoted 22 lines · Ulf Hansson

+ Arnd

Quoted 18 lines · Rafael J. Wysocki
Quoted 7 lines · Ulf Hansson

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Quoted 6 lines

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

That's fine by me.

Quoted 7 lines
Quoted 1 line

I'd like to get an ACK from the arm-soc side on this, though.

I have looped in Arnd, to get his opinion on this.

Although, I think the people on cc already send pull requests to the arm-soc maintainers (or perhaps it was these people you were referring to), so just awaiting their acks should be fine, I guess.

OK

For now, I've taken patches [2-3/4] that have been ACKed.

When the [1/4] is ACKed, I'll take it too and apply the last one.

Thanks!

#13 lore raw
Quoted 32 lines · Rafael J. Wysocki
Quoted 22 lines · Ulf Hansson

+ Arnd

Quoted 18 lines · Rafael J. Wysocki
Quoted 7 lines · Ulf Hansson

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Quoted 6 lines

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

That's fine by me.

Quoted 7 lines
Quoted 1 line

I'd like to get an ACK from the arm-soc side on this, though.

I have looped in Arnd, to get his opinion on this.

Although, I think the people on cc already send pull requests to the arm-soc maintainers (or perhaps it was these people you were referring to), so just awaiting their acks should be fine, I guess.

Quoted 5 lines

OK

For now, I've taken patches [2-3/4] that have been ACKed.

When the [1/4] is ACKed, I'll take it too and apply the last one.

Patch 1/4 has been acked now as well, so I think the remaining part of this series is ready to go.

However, I noticed that Stephen Rothwell reported some merge conflicts for arm-soc in linux-next. Quite trivial to resolve, though. Perhaps an option to consider is to send this as material for v5.10-rc1 (or maybe rc2) to avoid further conflicts during this release cycle? Just an idea..

Kind regards
Uffe

#14 lore raw
Quoted 33 lines · CEST Ulf Hansson
Quoted 32 lines · Rafael J. Wysocki
Quoted 29 lines · Ulf Hansson

+ Arnd

Quoted 12 lines · Rafael J. Wysocki
Quoted 10 lines · Ulf Hansson

The avs drivers in drivers/power/avs/* are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories.

Therefore, this series moves the drivers, one by one - and in the end, it deletes the empty avs directory.

Quoted 7 lines
Quoted 3 lines

It seems best to me, if this can be funneled via Rafael's linux-pm tree. Then when going forward, each driver should be managed through the SoC maintainer's trees.

That's fine by me.

I'd like to get an ACK from the arm-soc side on this, though.

I have looped in Arnd, to get his opinion on this.

Although, I think the people on cc already send pull requests to the arm-soc maintainers (or perhaps it was these people you were referring to), so just awaiting their acks should be fine, I guess.

Quoted 8 lines
Quoted 5 lines

OK

For now, I've taken patches [2-3/4] that have been ACKed.

When the [1/4] is ACKed, I'll take it too and apply the last one.

Patch 1/4 has been acked now as well, so I think the remaining part of this series is ready to go.

Agreed, I'm going to apply the remaining two patches from it tomorrow.

Quoted 5 lines

However, I noticed that Stephen Rothwell reported some merge conflicts for arm-soc in linux-next. Quite trivial to resolve, though. Perhaps an option to consider is to send this as material for v5.10-rc1 (or maybe rc2) to avoid further conflicts during this release cycle? Just an idea..

Yes, I'm going to do that.

Thanks!