]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: core: Add a bus and a driver for genpd providers
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 1 Jul 2025 11:47:07 +0000 (13:47 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2025 11:28:48 +0000 (13:28 +0200)
commit31cb75077003acb81b34b8d204a8997138536a55
tree1990cd08de2ca46f774e379bd1f6b6b86bf9b5ac
parent60fe1ca5bc6ca1971c23e26078e33366de84d53e
pmdomain: core: Add a bus and a driver for genpd providers

When we create a genpd via pm_genpd_init() we are initializing a
corresponding struct device for it, but we don't add the device to any
bus_type. It has not really been needed as the device is used as cookie to
help us manage OPP tables.

However, to prepare to make better use of the device, let's add a new genpd
provider bus_type and a corresponding genpd provider driver. Subsequent
changes will make use of this.

Suggested-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Tested-by: Hiago De Franco <hiago.franco@toradex.com> # Colibri iMX8X
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> # TI AM62A,Xilinx ZynqMP ZCU106
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250701114733.636510-6-ulf.hansson@linaro.org
drivers/pmdomain/core.c