Merge branch 'pci/sysfs'
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Aug 2026 21:40:38 +0000 (16:40 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Aug 2026 21:40:38 +0000 (16:40 -0500)
- In pci_write_legacy_io(), avoid out-of-bounds reads from the user buffer
  and fix incorrect ioport write data (1-byte writes on little-endian
  powerpc, 2- and 4-byte writes on big-endian powerpc) (Krzysztof
  Wilczyński)

- In pci_read_legacy_io(), fix incorrect ioport read data for 2- and 4-byte
  reads on big-endian powerpc (Krzysztof Wilczyński)

- Fix I/O port accessor argument order in Alpha pci_legacy_write()
  (Krzysztof Wilczyński)

- Avoid spurious runtime PM wakeup on config space accesses that are
  outside config space and fail before reaching PCI (Krzysztof Wilczyński)

- Return -EINVAL, not -ENODEV, for mmap of I/O BAR that fails because the
  arch doesn't support it, as we do for procfs (Krzysztof Wilczyński)

- Check for LOCKDOWN_PCI_ACCESS for legacy_io and legacy_mem, as we do for
  other config space accessors (Krzysztof Wilczyński)

- Tidy static resource attribute names and macros that build them
  (Krzysztof Wilczyński)

* pci/sysfs:
  PCI/sysfs: Add legacy I/O and memory attribute macros
  alpha/PCI: Make the suffix the first __pci_dev_resource_attr() parameter
  PCI/sysfs: Add pci_ prefix to static PCI resource attribute names
  PCI/sysfs: Add lockdown checks to legacy I/O and memory handlers
  PCI/sysfs: Return -EINVAL for unsupported I/O BAR mmap
  PCI/sysfs: Avoid spurious runtime PM wakeup on config space accesses
  alpha/PCI: Fix I/O port accessor argument order in pci_legacy_write()
  PCI/sysfs: Fix read byte order in pci_read_legacy_io()
  PCI/sysfs: Fix out-of-bounds read in pci_write_legacy_io()


Trivial merge