Re: [PATCH v3 1/2] PCI: Initialize RCB from pci_configure_device
From: Bjorn Helgaas
Date: Wed Jan 28 2026 - 12:21:06 EST
On Wed, Jan 28, 2026 at 05:08:23PM +0000, Haakon Bugge wrote:
> > On Thu, Jan 22, 2026 at 02:09:53PM +0100, Håkon Bugge wrote:
> >> Commit e42010d8207f ("PCI: Set Read Completion Boundary to 128 iff
> >> Root Port supports it (_HPX)") fixed a bogus _HPX type 2 record, which
> >> instructed program_hpx_type2() to set the RCB in an endpoint,
> >> although it's RC did not have the RCB bit set.
> >> ...
> For this and the other commit, is it OK that I add
> you as a co-developer? Aka:
>
> Co-developed-by: Bjorn Helgaas <helgaas@xxxxxxxxxx>
> Signed-off-by: Bjorn Helgaas <helgaas@xxxxxxxxxx>
> Signed-off-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
No need for co-developed-by, IMO this is just part of normal patch
iteration. And I'll add my Signed-off-by when merging the patches.
> > + pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL,
> > + PCI_EXP_LNKCTL_RCB,
> > + (rp_lnkctl & PCI_EXP_LNKCTL_RCB) ?
> > + PCI_EXP_LNKCTL_RCB : 0);
>
> Looks good to me! This will enforce the locked flavour of
> pcie_capability_clear_and_set_word(). Is that an overkill?
Probably no need for locking in this instance, but it's a per-device
lock so there won't be any contention anyway.
Bjorn