Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Christian Marangi <ansuelsmth@gmail.com>
Cc: "Bjorn Helgaas" <bhelgaas@google.com>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Ryder Lee" <ryder.lee@mediatek.com>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Brian Masney" <bmasney@redhat.com>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Jianjun Wang" <jianjun.wang@mediatek.com>,
	linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 4/4] PCI: mediatek-gen3: Add 2-lanes mode support for Airoha AN7581
Date: Thu, 23 Jul 2026 14:49:41 -0500	[thread overview]
Message-ID: <20260723194941.GA850329@bhelgaas> (raw)
In-Reply-To: <6a626006.4d70c427.b2b96.c939@mx.google.com>

On Thu, Jul 23, 2026 at 08:40:03PM +0200, Christian Marangi wrote:
> On Wed, Jul 22, 2026 at 12:40:10PM -0500, Bjorn Helgaas wrote:
> > On Tue, Jul 14, 2026 at 01:58:46PM +0200, Christian Marangi wrote:
> > > The Airoha AN7581 SoC supports configuring the first PCIe0 lane to 2-lanes
> > > mode (2x link) by bonding it with the second PCIe lane (PCIe1). This is
> > > done by configuring the PCIe MUX in the SCU register.
> ...

> > > -	 * Airoha EN7581 performs PCIe reset via clk callbacks since it has a
> > > -	 * hw issue with PCIE_PE_RSTB signal. Add wait for the time needed to
> > > -	 * complete the PCIe reset.
> > > +	 * Old Airoha EN7581 clock driver performed PCIe reset via
> > > +	 * clk callbacks since it has a hw issue with PCIE_PE_RSTB signal.
> > > +	 * This is now handled by dedicated PERSTOUT resets with clk
> > > +	 * driver only enabling the refclk.
> > 
> > This reference to the "old Airoha EN7581 clock driver" makes me think
> > there's a dependency between a EN7581 clock driver change and this
> > PERSTOUT change.  If so, please mention the commit SHA1 for the EN7581
> > clock driver change so they're connected and people backporting to
> > older kernels know to be careful to get both of them.
> > 
> > It sounds like this PERSTOUT change might be independent of the x2
> > configuration support.  If so, it should be done in a separate patch.
> 
> thanks for the review. The clock change can go on a separate patch but
> since the hash will change when it will get merged what should I use as
> reference? Also any hint on the tag to use or the format?

Where is the clock change?  Is it the one in this series ([PATCH v4
2/4] clk: en7523: add support for dedicated PCIe PERSTOUT reset)?

If so, perhaps this PERSTOUT change and the clk-en7523.c PERSTOUT
change could be in the same patch?  It would just require an ack from
the clk folks and then we could merge it via PCI.


      reply	other threads:[~2026-07-23 19:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 11:58 [PATCH v4 0/4] PCI: mediatek-gen3: Add 2-lanes mode support + clock Christian Marangi
2026-07-14 11:58 ` [PATCH v4 1/4] dt-bindings: clock: airoha: Add additional reset for PCIe PERSTOUT Christian Marangi
2026-07-14 11:58 ` [PATCH v4 2/4] clk: en7523: add support for dedicated PCIe PERSTOUT reset Christian Marangi
2026-07-16 18:48   ` Brian Masney
2026-07-14 11:58 ` [PATCH v4 3/4] dt-bindings: PCI: mediatek-gen3: Split Airoha schema and document 2-lanes Christian Marangi
2026-07-22 16:52   ` Rob Herring (Arm)
2026-07-14 11:58 ` [PATCH v4 4/4] PCI: mediatek-gen3: Add 2-lanes mode support for Airoha AN7581 Christian Marangi
2026-07-22 17:40   ` Bjorn Helgaas
2026-07-23 18:40     ` Christian Marangi
2026-07-23 19:49       ` Bjorn Helgaas [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=20260723194941.GA850329@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=ansuelsmth@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=bmasney@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jianjun.wang@mediatek.com \
    --cc=krzk+dt@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mturquette@baylibre.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=ryder.lee@mediatek.com \
    --cc=sboyd@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