From: Marek Vasut <marek.vasut@mailbox.org>
To: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: linux-pci@vger.kernel.org,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Magnus Damm" <magnus.damm@gmail.com>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] PCI: rcar-gen4: Isolate 256B MRRS limit only to R-Car Gen4 SoC PCIe controller
Date: Wed, 4 Nov 2026 05:58:52 +0100 [thread overview]
Message-ID: <0128eea9-c193-4c09-8271-32307c464016@mailbox.org> (raw)
In-Reply-To: <179334040211.5551.2573230628622674128.b4-reply@b4>
On 10/30/26 7:06 AM, Manivannan Sadhasivam wrote:
Hello Manivannan,
>> diff --git a/drivers/pci/controller/dwc/pcie-rcar-gen4.c b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
>> index 9a64a9f4ab0d1..1e4405181eef3 100644
>> --- a/drivers/pci/controller/dwc/pcie-rcar-gen4.c
>> +++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
>> @@ -99,6 +99,7 @@ struct rcar_gen4_pcie_drvdata {
>> int (*ltssm_control)(struct rcar_gen4_pcie *rcar, bool enable);
>> int (*speed_control)(struct rcar_gen4_pcie *rcar);
>> enum dw_pcie_device_mode mode;
>> + bool mrrs_256b_limit;
>> };
>>
>> struct rcar_gen4_pcie {
>> @@ -663,7 +664,7 @@ static int rcar_gen4_pcie_host_init(struct dw_pcie_rp *pp)
>> if (ret)
>> return ret;
>>
>> - if (pp->bridge)
>> + if (rcar->drvdata->mrrs_256b_limit && pp->bridge)
>> pp->bridge->enable_device = rcar_gen4_pcie_enable_device;
>
> I'd suggest moving this check inside enable_device() callback to make it clear
> where exactly the skipping happens.
If we do that, we would end up with assigning a callback which always
does nothing on R-Car Gen5 (SoC with rcar->drvdata->mrrs_256b_limit =
false), that is not good. I think it is better to simply not assign the
callback on R-Car Gen5 at all. Hence this here.
--
Best regards,
Marek Vasut
prev parent reply other threads:[~2026-11-04 5:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 17:21 Marek Vasut
2026-10-30 6:06 ` Manivannan Sadhasivam
2026-11-04 4:58 ` 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=0128eea9-c193-4c09-8271-32307c464016@mailbox.org \
--to=marek.vasut@mailbox.org \
--cc=bhelgaas@google.com \
--cc=geert+renesas@glider.be \
--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=manivannan.sadhasivam@oss.qualcomm.com \
--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®