[PATCH 2/6] PCI/pwrctrl: Enable pwrctrl for devices powered by a power domain
From: Mikko Perttunen
Date: Wed Oct 28 2026 - 23:35:35 EST
Update pci_pwrctrl_is_required to return true for devices that require a
power domain specified by the power-domains property, such as the
integrated GPU on Tegra264.
Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
---
drivers/pci/pwrctrl/core.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/pwrctrl/core.c b/drivers/pci/pwrctrl/core.c
index 0e2387cf4657..437507699beb 100644
--- a/drivers/pci/pwrctrl/core.c
+++ b/drivers/pci/pwrctrl/core.c
@@ -146,8 +146,8 @@ EXPORT_SYMBOL_GPL(devm_pci_pwrctrl_device_set_ready);
* 1. Presence of compatible property with "pci" prefix to match against the
* pwrctrl driver (AND)
* 2. At least one of the power supplies defined in the devicetree node of the
- * device (OR) in the remote endpoint parent node to indicate pwrctrl
- * requirement.
+ * device (OR) in the remote endpoint parent node (OR) a power-domains
+ * property in the device node to indicate pwrctrl requirement.
*/
static bool pci_pwrctrl_is_required(struct device_node *np)
{
@@ -165,6 +165,9 @@ static bool pci_pwrctrl_is_required(struct device_node *np)
if (of_pci_supply_present(np))
return true;
+ if (of_property_present(np, "power-domains"))
+ return true;
+
if (of_graph_is_present(np)) {
for_each_endpoint_of_node(np, endpoint) {
struct device_node *remote __free(device_node) =
--
2.55.0