From: Mikko Perttunen <mperttunen@nvidia.com>
To: "Bartosz Golaszewski" <brgl@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Thierry Reding" <thierry.reding@kernel.org>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,
Mikko Perttunen <mperttunen@nvidia.com>,
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Subject: [PATCH v2 1/5] PCI/pwrctrl: Enable pwrctrl for devices powered by a power domain
Date: Fri, 04 Dec 2026 12:05:13 +0900 [thread overview]
Message-ID: <20261204-b4-t264-igpu-pci-v2-1-e36cd85f4778@nvidia.com> (raw)
In-Reply-To: <20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com>
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.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
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.56.1
next prev parent reply other threads:[~2026-12-04 3:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 3:05 [PATCH v2 0/5] Tegra264 GB10B boards the bus Mikko Perttunen
2026-12-04 3:05 ` Mikko Perttunen [this message]
2026-12-04 3:05 ` [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 4/5] arm64: tegra: Add node for the GB10B GPU on Tegra264 Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 5/5] arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported Mikko Perttunen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204-b4-t264-igpu-pci-v2-1-e36cd85f4778@nvidia.com \
--to=mperttunen@nvidia.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=bhelgaas@google.com \
--cc=brgl@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=robh@kernel.org \
--cc=thierry.reding@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®