mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Siddharth Vadapalli <s-vadapalli@ti.com>
To: Takuma Fujiwara <t-fujiwara1@ti.com>
Cc: <linux-pci@vger.kernel.org>, <bhelgaas@google.com>,
	<lpieralisi@kernel.org>, <kwilczynski@kernel.org>,
	<mani@kernel.org>, <vigneshr@ti.com>,
	<linux-omap@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <s-vadapalli@ti.com>
Subject: Re: [PATCH] PCI: j721e: Fix incorrect max_lanes for J7200
Date: Wed, 22 Jul 2026 10:15:10 +0530	[thread overview]
Message-ID: <fa22b4e3-4df5-4088-b867-fa4f0030d1cf@ti.com> (raw)
In-Reply-To: <20260721155743.3347659-1-t-fujiwara1@ti.com>

On 21/07/26 21:27, Takuma Fujiwara wrote:
> The PCIe Controller in the J7200 SoC supports a 4-lane configuration.
> However, j7200_pcie_rc_data and j7200_pcie_ep_data incorrectly set
> .max_lanes = 2, limiting operation to fewer lanes than the hardware
> supports.
> 
> Set .max_lanes = 4 for both j7200_pcie_rc_data and j7200_pcie_ep_data to
> match the hardware capability.
> 
> See J7200 Technical Reference Manual (SPRUIU1D), section 12.2.3.1.1
> for further details: https://www.ti.com/lit/pdf/spruiu1d

Thank you for identifying and fixing this.

> 
> Fixes: 3ac7f14084f5 ("PCI: j721e: Add per platform maximum lane settings")
> Signed-off-by: Takuma Fujiwara <t-fujiwara1@ti.com>

Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>

> ---
>   drivers/pci/controller/cadence/pci-j721e.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c
> index b29a35fbfb5f9..a029c4e9c05f6 100644
> --- a/drivers/pci/controller/cadence/pci-j721e.c
> +++ b/drivers/pci/controller/cadence/pci-j721e.c
> @@ -381,7 +381,7 @@ static const struct j721e_pcie_data j7200_pcie_rc_data = {
>   	.quirk_detect_quiet_flag = true,
>   	.linkdown_irq_regfield = J7200_LINK_DOWN,
>   	.byte_access_allowed = true,
> -	.max_lanes = 2,
> +	.max_lanes = 4,
>   };
>   
>   static const struct j721e_pcie_data j7200_pcie_ep_data = {
> @@ -389,7 +389,7 @@ static const struct j721e_pcie_data j7200_pcie_ep_data = {
>   	.quirk_detect_quiet_flag = true,
>   	.linkdown_irq_regfield = J7200_LINK_DOWN,
>   	.quirk_disable_flr = true,
> -	.max_lanes = 2,
> +	.max_lanes = 4,
>   };
>   
>   static const struct j721e_pcie_data am64_pcie_rc_data = {

Regards,
Siddharth.


  reply	other threads:[~2026-07-22  4:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-21 15:57 Takuma Fujiwara
2026-07-22  4:45 ` Siddharth Vadapalli [this message]
2026-07-22  7:27 ` Manivannan Sadhasivam

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=fa22b4e3-4df5-4088-b867-fa4f0030d1cf@ti.com \
    --to=s-vadapalli@ti.com \
    --cc=bhelgaas@google.com \
    --cc=kwilczynski@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=t-fujiwara1@ti.com \
    --cc=vigneshr@ti.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®