mbox series

[0/7] PCI: Use FIELD_GET/PREP() & other reg field cleanups

Message ID 20231018113254.17616-1-ilpo.jarvinen@linux.intel.com (mailing list archive)
Headers show
Series PCI: Use FIELD_GET/PREP() & other reg field cleanups | expand

Message

Ilpo Järvinen Oct. 18, 2023, 11:32 a.m. UTC
Hi,

Here's what I think should cover most of the remaining FIELD_GET/PREP()
conversions under drivers/pci/.

The patch from Bjorn is from
  https://lore.kernel.org/linux-pci/20231010204436.1000644-7-helgaas@kernel.org/
But has been adjusted to better blend in with the other DPC changes.
I've preserved Bjorn as the main From/SoB, and added myself before his
name instead (since I modified it but my main contribution was to
remove stuff he had made to it).

Bjorn Helgaas (1):
  PCI/DPC: Use FIELD_GET()

Ilpo Järvinen (6):
  PCI: cadence: Use FIELD_GET()
  PCI: dwc: Use FIELD_GET/PREP()
  PCI: hotplug: Use FIELD_GET/PREP()
  PCI/DPC: Use defined fields with DPC_CTL register
  PCI/DPC: Use defines with DPC reason fields
  PCI/MSI: Use FIELD_GET/PREP()

 .../pci/controller/cadence/pcie-cadence-ep.c  |  9 ++--
 .../pci/controller/dwc/pcie-designware-ep.c   |  7 ++--
 drivers/pci/controller/dwc/pcie-tegra194.c    |  5 +--
 drivers/pci/hotplug/pciehp_core.c             |  3 +-
 drivers/pci/hotplug/pciehp_hpc.c              |  5 ++-
 drivers/pci/hotplug/pnv_php.c                 |  3 +-
 drivers/pci/msi/msi.c                         | 10 +++--
 drivers/pci/pcie/dpc.c                        | 42 ++++++++++++-------
 drivers/pci/quirks.c                          |  2 +-
 include/uapi/linux/pci_regs.h                 |  9 ++++
 10 files changed, 61 insertions(+), 34 deletions(-)

Comments

Bjorn Helgaas Oct. 18, 2023, 4:23 p.m. UTC | #1
On Wed, Oct 18, 2023 at 02:32:47PM +0300, Ilpo Järvinen wrote:
> Hi,
> 
> Here's what I think should cover most of the remaining FIELD_GET/PREP()
> conversions under drivers/pci/.
> 
> The patch from Bjorn is from
>   https://lore.kernel.org/linux-pci/20231010204436.1000644-7-helgaas@kernel.org/
> But has been adjusted to better blend in with the other DPC changes.
> I've preserved Bjorn as the main From/SoB, and added myself before his
> name instead (since I modified it but my main contribution was to
> remove stuff he had made to it).
> 
> Bjorn Helgaas (1):
>   PCI/DPC: Use FIELD_GET()
> 
> Ilpo Järvinen (6):
>   PCI: cadence: Use FIELD_GET()
>   PCI: dwc: Use FIELD_GET/PREP()
>   PCI: hotplug: Use FIELD_GET/PREP()
>   PCI/DPC: Use defined fields with DPC_CTL register
>   PCI/DPC: Use defines with DPC reason fields
>   PCI/MSI: Use FIELD_GET/PREP()
> 
>  .../pci/controller/cadence/pcie-cadence-ep.c  |  9 ++--
>  .../pci/controller/dwc/pcie-designware-ep.c   |  7 ++--
>  drivers/pci/controller/dwc/pcie-tegra194.c    |  5 +--
>  drivers/pci/hotplug/pciehp_core.c             |  3 +-
>  drivers/pci/hotplug/pciehp_hpc.c              |  5 ++-
>  drivers/pci/hotplug/pnv_php.c                 |  3 +-
>  drivers/pci/msi/msi.c                         | 10 +++--
>  drivers/pci/pcie/dpc.c                        | 42 ++++++++++++-------
>  drivers/pci/quirks.c                          |  2 +-
>  include/uapi/linux/pci_regs.h                 |  9 ++++
>  10 files changed, 61 insertions(+), 34 deletions(-)

Applied to pci/field-get for v6.7, thanks, Ilpo!