* [PATCH v2] PCI/pwrctl: Don't show error when missing OF nodes
@ 2024-07-02 18:08 superm1
2024-07-03 9:50 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: superm1 @ 2024-07-02 18:08 UTC (permalink / raw)
To: Bjorn Helgaas, Bartosz Golaszewski
Cc: linux-pci, linux-kernel, Mario Limonciello, Amit Pundir,
Neil Armstrong, Caleb Connolly, Praveenkumar Patil
From: Mario Limonciello <mario.limonciello@amd.com>
commit 8fb18619d910 ("PCI/pwrctl: Create platform devices for child OF
nodes of the port node") introduced a new error message about populating
OF nodes. This message isn't relevant on non-OF platforms and
of_platform_populate() returns -ENODEV in this case, so don't show the
message on non-OF platforms.
Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD, SM8650-QRD & SM8650-HDK
Cc: Caleb Connolly <caleb.connolly@linaro.org> # OnePlus 8T
Reported-by: Praveenkumar Patil <PraveenKumar.Patil@amd.com>
Fixes: 8fb18619d910 ("PCI/pwrctl: Create platform devices for child OF nodes of the port node")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v1->v2:
* Catch -ENODEV case instead (Bartosz)
---
drivers/pci/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index e4735428814d..231bc796ba04 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -353,7 +353,7 @@ void pci_bus_add_device(struct pci_dev *dev)
if (pci_is_bridge(dev)) {
retval = of_platform_populate(dev->dev.of_node, NULL, NULL,
&dev->dev);
- if (retval)
+ if (retval && retval != -ENODEV)
pci_err(dev, "failed to populate child OF nodes (%d)\n",
retval);
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] PCI/pwrctl: Don't show error when missing OF nodes
2024-07-02 18:08 [PATCH v2] PCI/pwrctl: Don't show error when missing OF nodes superm1
@ 2024-07-03 9:50 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2024-07-03 9:50 UTC (permalink / raw)
To: Bjorn Helgaas, superm1
Cc: Bartosz Golaszewski, linux-pci, linux-kernel, Mario Limonciello,
Amit Pundir, Neil Armstrong, Caleb Connolly, Praveenkumar Patil
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Tue, 02 Jul 2024 13:08:39 -0500, superm1@kernel.org wrote:
> commit 8fb18619d910 ("PCI/pwrctl: Create platform devices for child OF
> nodes of the port node") introduced a new error message about populating
> OF nodes. This message isn't relevant on non-OF platforms and
> of_platform_populate() returns -ENODEV in this case, so don't show the
> message on non-OF platforms.
>
>
> [...]
Applied, thanks!
[1/1] PCI/pwrctl: Don't show error when missing OF nodes
commit: ba6294d28c428098e99a4139cde12ddb7e77bfa1
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-03 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02 18:08 [PATCH v2] PCI/pwrctl: Don't show error when missing OF nodes superm1
2024-07-03 9:50 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox