[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250612212612.GA930681@bhelgaas>
Date: Thu, 12 Jun 2025 16:26:12 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Geraldo Nascimento <geraldogabriel@...il.com>
Cc: linux-rockchip@...ts.infradead.org,
Shawn Lin <shawn.lin@...k-chips.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Rob Herring <robh@...nel.org>, Bjorn Helgaas <bhelgaas@...gle.com>,
Heiko Stuebner <heiko@...ech.de>, Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
linux-phy@...ts.infradead.org, linux-pci@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH v2 1/4] PCI: pcie-rockchip: add Link Control and
Status Register 2
On Thu, Jun 12, 2025 at 05:49:57PM -0300, Geraldo Nascimento wrote:
> On Wed, Jun 11, 2025 at 02:42:59PM -0500, Bjorn Helgaas wrote:
> > I would do a pure conversion patch of the existing #defines. Then I
> > suspect you wouldn't need a patch to add the Link 2 registers at all
> > because you could just use the #defines from pci_regs.h.
>
> Hi Bjorn,
>
> I've hit roadblock, maybe you can help?
>
> PCIE_RC_CONFIG_DCR_CSPL_LIMIT is defined as 0xff...
>
> I'd like to kill that define too, since it will be
> orphaned.
>
> But hardcoding 0xff seems like illegible solution.
>
> Perhaps there is another standard define that
> maps to 0xff that I can use? Anyone comes
> to your mind?
Maybe FIELD_MAX(PCI_EXP_DEVCAP_PWR_VAL)?
Powered by blists - more mailing lists