mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@mailbox.org>
To: linux-pci@vger.kernel.org, Bartosz Golaszewski <brgl@kernel.org>
Cc: "Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Alex Elder" <elder@riscstar.com>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Frank Li" <Frank.Li@nxp.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Jingoo Han" <jingoohan1@gmail.com>,
	"Koichiro Den" <den@valinux.co.jp>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Randolph Lin" <randolph@andestech.com>,
	"Rob Herring" <robh@kernel.org>,
	"Sherry Sun" <sherry.sun@nxp.com>,
	"Siddharth Vadapalli" <s-vadapalli@ti.com>,
	"Vidya Sagar" <vidyas@nvidia.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Wilfred Mallawa" <wilfred.mallawa@wdc.com>,
	"Xincheng Zhang" <zhangxincheng@ultrarisc.com>,
	"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
	linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/2] PCI: dwc: rcar-gen4: Replace pe_rst GPIO PERST with GPIO reset aux driver
Date: Wed, 28 Oct 2026 18:27:36 +0100	[thread overview]
Message-ID: <18b4e960-caa1-48b0-a5aa-f3585274787d@mailbox.org> (raw)
In-Reply-To: <20261028172133.20903-1-marek.vasut+renesas@mailbox.org>

On 10/28/26 6:21 PM, Marek Vasut wrote:

[...]

> 1) Combined mandatory PCIe core resets and optional GPIO PERST#:
>     pciec@nnn {
>         compatible = "renesas,r8a779g0-pcie", "renesas,rcar-gen4-pcie";
>         ...
>         resets = <&reset 624>, <&reset 1121>;
>         reset-names = "pwr", "core";
>         reset-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; // This is GPIO PERST#
>         ...
>     };

[...]

> diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
> index 12f102f48d5d5..b09c01853d807 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.c
> +++ b/drivers/pci/controller/dwc/pcie-designware.c
> @@ -104,10 +104,6 @@ static int dw_pcie_get_resets(struct dw_pcie *pci)
>   	if (ret)
>   		return ret;
>   
> -	pci->pe_rst = devm_gpiod_get_optional(pci->dev, "reset", GPIOD_OUT_HIGH);
> -	if (IS_ERR(pci->pe_rst))
> -		return PTR_ERR(pci->pe_rst);
Bartosz, alternatively, I wonder if there is any way to request the 
reset-gpios as reset controller reset here already. That might be even 
cleaner, but I don't think there is anything like 
devm_reset_control_bulk_get_optional_exclusive_and_also_request_the_gpio_reset() 
or devm_reset_control_get_optional_exclusive_gpio_reset() . Maybe 
something like that could be added to the reset subsystem instead ?

Thank you for your help !

      parent reply	other threads:[~2026-10-28 17:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 17:21 Marek Vasut
2026-10-28 17:21 ` [PATCH 2/2] PCI: rcar-gen4: Inline rcar_gen4_pcie_host_perst_assert() again Marek Vasut
2026-10-28 17:27 ` Marek Vasut [this message]

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=18b4e960-caa1-48b0-a5aa-f3585274787d@mailbox.org \
    --to=marek.vasut@mailbox.org \
    --cc=Frank.Li@nxp.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=bhelgaas@google.com \
    --cc=brgl@kernel.org \
    --cc=den@valinux.co.jp \
    --cc=elder@riscstar.com \
    --cc=geert+renesas@glider.be \
    --cc=jingoohan1@gmail.com \
    --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=magnus.damm@gmail.com \
    --cc=mani@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=randolph@andestech.com \
    --cc=robh@kernel.org \
    --cc=s-vadapalli@ti.com \
    --cc=sherry.sun@nxp.com \
    --cc=vidyas@nvidia.com \
    --cc=vincent.guittot@linaro.org \
    --cc=wilfred.mallawa@wdc.com \
    --cc=yoshihiro.shimoda.uh@renesas.com \
    --cc=zhangxincheng@ultrarisc.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®