From: Marek Vasut <marek.vasut@mailbox.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: linux-pci@vger.kernel.org,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Conor Dooley" <conor+dt@kernel.org>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 4/5] PCI: dwc: rcar-gen4: Handle PERST via reset subsystem
Date: Mon, 20 Jul 2026 03:15:17 +0200 [thread overview]
Message-ID: <b30cbfc4-9135-4acb-8117-aa9129c46824@mailbox.org> (raw)
In-Reply-To: <CAMuHMdUVqw-gqydVg5N7WiMj04rVAPuLjJjzgrk+eEgJpbzS2g@mail.gmail.com>
On 7/14/26 5:07 PM, Geert Uytterhoeven wrote:
Hello Geert,
>> +++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
>
>> @@ -299,10 +300,27 @@ static void rcar_gen4_pcie_unprepare(struct rcar_gen4_pcie *rcar)
>>
>> static int rcar_gen4_pcie_get_resources(struct rcar_gen4_pcie *rcar)
>> {
>> + struct device *dev = rcar->dw.dev;
>> + struct reset_control *perst;
>> +
>> rcar->phy_base = devm_platform_ioremap_resource_byname(rcar->pdev, "phy");
>> if (IS_ERR(rcar->phy_base))
>> return PTR_ERR(rcar->phy_base);
>>
>> + rcar->perst = NULL;
>> + for_each_available_child_of_node_scoped(dev->of_node, of_port) {
>> + perst = of_reset_control_get(of_port, "perst");
>> + if (IS_ERR(perst)) {
>> + if (PTR_ERR(perst) != -EPROBE_DEFER)
>> + dev_err(dev, "Failed to get PERST#\n");
>> + return PTR_ERR(perst);
>
> return dev_err_probe(...)?
>
> This error condition is triggered on Sparrow Hawk and White Hawk,
> as their DTS does not have perst:
>
> pcie-rcar-gen4 e65d0000.pcie: Failed to get PERST#
> pcie-rcar-gen4 e65d0000.pcie: probe with driver pcie-rcar-gen4
> failed with error -2
I switched to of_reset_control_get_optional_exclusive() and cleaned the
reset handling further in V2.
next prev parent reply other threads:[~2026-07-20 2:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-04 20:24 [PATCH 0/5] PCI: dwc: rcar-gen4: Add support for R-Car X5H PCIe4 Marek Vasut
2026-07-04 20:25 ` [PATCH 1/5] dt-bindings: PCI: rcar-gen4-pci-host: Add R-Car X5H PCIe4 compatible Marek Vasut
2026-07-08 8:34 ` Krzysztof Kozlowski
2026-07-04 20:25 ` [PATCH 2/5] PCI: dwc: rcar-gen4: Return error code from .additional_common_init Marek Vasut
2026-07-15 14:22 ` Manivannan Sadhasivam
2026-07-20 1:14 ` Marek Vasut
2026-07-04 20:25 ` [PATCH 3/5] PCI: dwc: rcar-gen4: Split .start_link into ltssm_control and speed_control Marek Vasut
2026-07-04 20:25 ` [PATCH 4/5] PCI: dwc: rcar-gen4: Handle PERST via reset subsystem Marek Vasut
2026-07-14 15:07 ` Geert Uytterhoeven
2026-07-20 1:15 ` Marek Vasut [this message]
2026-07-15 14:36 ` Manivannan Sadhasivam
2026-07-20 1:16 ` Marek Vasut
2026-07-04 20:25 ` [PATCH 5/5] PCI: dwc: rcar-gen4: Add support for R-Car X5H PCIe4 Marek Vasut
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=b30cbfc4-9135-4acb-8117-aa9129c46824@mailbox.org \
--to=marek.vasut@mailbox.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=robh@kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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®