pmdomain: core: Add GENPD_FLAG_DEV_NAME_FW flag
authorSibi Sankar <quic_sibis@quicinc.com>
Wed, 30 Oct 2024 12:55:10 +0000 (18:25 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Oct 2024 16:11:28 +0000 (17:11 +0100)
commit899f44531fe6cac4b024710fec647ecc127724b8
treee6429446162e5b6aa448704e58832d975a479a29
parent7738568885f2eaecfc10a3f530a2693e5f0ae3d0
pmdomain: core: Add GENPD_FLAG_DEV_NAME_FW flag

Introduce GENPD_FLAG_DEV_NAME_FW flag which instructs genpd to generate
an unique device name using ida. It is aimed to be used by genpd providers
which derive their names directly from FW making them susceptible to
debugfs node creation failures.

Reported-by: Johan Hovold <johan+linaro@kernel.org>
Closes: https://lore.kernel.org/lkml/ZoQjAWse2YxwyRJv@hovoldconsulting.com/
Fixes: 718072ceb211 ("PM: domains: create debugfs nodes when adding power domains")
Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Cc: stable@vger.kernel.org
Message-ID: <20241030125512.2884761-5-quic_sibis@quicinc.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/core.c
include/linux/pm_domain.h