From: Dullfire <dullfire@yahoo.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: "Bartosz Golaszewski" <bartosz.golaszewski@linaro.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
linux-pci@vger.kernel.org, "Bjorn Helgaas" <helgaas@kernel.org>
Subject: Re: [Bug 219513] New: PCIe drivers do not bind
Date: Tue, 19 Nov 2024 11:48:45 -0600 [thread overview]
Message-ID: <37fb3ce4-058e-4dd4-8b2d-d18ced4e1862@yahoo.com> (raw)
In-Reply-To: <20241119172704.skudguavz4nmdi4t@thinkpad>
On 11/19/24 11:27, Manivannan Sadhasivam wrote:
> On Tue, Nov 19, 2024 at 10:57:26AM -0600, Dullfire wrote:
>>
>> Bart: I attached to the bug report a dts extracted from the system.
>>
>> Just a FYI: SPARC systems (including linux) get their device tree from the
>> open firmware, which likely dynamically generates at least parts of it, so
>> there is not a discrete source for it.
>>
>
> Thanks Jonathan for the dts drop! Looks like the platform devices for the pcie
> nodes were created elsewhere for the SPARC systems. Could you please test the
> below diff and see if it fixes the issue?
>
> ```
> diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
> index 7a061cc860d5..e70f4c089cd4 100644
> --- a/drivers/pci/bus.c
> +++ b/drivers/pci/bus.c
> @@ -394,7 +394,7 @@ void pci_bus_add_device(struct pci_dev *dev)
> * PCI client drivers.
> */
> pdev = of_find_device_by_node(dn);
> - if (pdev) {
> + if (pdev && of_pci_is_supply_present(dn)) {
> if (!device_link_add(&dev->dev, &pdev->dev,
> DL_FLAG_AUTOREMOVE_CONSUMER))
> pci_err(dev, "failed to add device link between %s and %s\n",
> ```
>
> - Mani
Mani: Yup, that patch does the trick in my test case. The PCIe drivers all bound
and function.
Regards,
Jonathan Currier
next prev parent reply other threads:[~2024-11-19 18:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-219513-41252@https.bugzilla.kernel.org/>
2024-11-19 14:04 ` [Bug 219513] New: PCIe drivers do not bind Bjorn Helgaas
2024-11-19 14:16 ` Bartosz Golaszewski
2024-11-19 16:57 ` Dullfire
2024-11-19 17:27 ` Manivannan Sadhasivam
2024-11-19 17:48 ` Dullfire [this message]
2024-11-19 17:17 ` Dullfire
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=37fb3ce4-058e-4dd4-8b2d-d18ced4e1862@yahoo.com \
--to=dullfire@yahoo.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=helgaas@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.