Re: [PATCH v3 0/8] PCI/treewide: PCIe capability access cleanups

From: Leon Romanovsky
Date: Wed Sep 20 2023 - 03:32:21 EST


On Tue, Sep 19, 2023 at 03:56:40PM +0300, Ilpo Järvinen wrote:
> Instead of custom code to extract the PCIe capabilities, make the code
> more obvious using FIELD_GET/PREP().
>
> Also cleanup some duplicated defines in e1000e.
>
> This is just a step into the right direction, there's plenty of places
> still to cleanup which will have to wait for another patch series.
>
> v3:
> - Remove applied patches (scsi)
> - Use pci_pcie_cap() and tweak local variable (e1000e)
> - Use the correct prefix for RDMA/hfi1
>
> v2:
> - Remove extract_width() and use FIELD_GET() directly (IB/hfi1)
> - Convert other fields beside Link Width ones
> - Remove useless u8 casts (scsi: esas2r)
> - e1000e:
> - Remove defines that duplicate pci_regs.h ones
> - Convert to pcie_capability_read_word()
>
>
> Ilpo Järvinen (8):
> RDMA/hfi1: Use FIELD_GET() to extract Link Width

Applied this patch to RDMA tree.

Thanks