Merge branch 'pci/endpoint'
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 16 May 2024 23:14:13 +0000 (18:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 16 May 2024 23:14:13 +0000 (18:14 -0500)
commitf8891023bbf8d571b5020e73c52e69a56fed800c
treef2249ba92d1d6dd2fb4efbd0bfdbfefbf19d2d01
parent24ffb8c9188e709db57004717358d0294788e023
parent597ac0fa37b86833203c6c73ecbaa72ccc3781bd
Merge branch 'pci/endpoint'

- Simplify pci_epf_test_alloc_space() by using pci_epc_get_next_free_bar()
  as other similar iterators do (Niklas Cassel)

- Configure endpoint BARs as 64-bit if that's all the hardware supports, in
  addition to doing it if the BAR size is larger than 2GB (Niklas Cassel)

- Remove superfluous pci_epf_configure_bar(), since pci_epf_alloc_space()
  now contains that functionality (Niklas Cassel)

- Simplify pci_epf_test_set_bar() (Niklas Cassel)

- Clean up pci_epf_test_unbind() to reduce indentation level (Niklas
  Cassel)

* pci/endpoint:
  PCI: endpoint: pci-epf-test: Clean up pci_epf_test_unbind()
  PCI: endpoint: pci-epf-test: Simplify pci_epf_test_set_bar() loop
  PCI: endpoint: pci-epf-test: Remove superfluous code
  PCI: endpoint: Allocate a 64-bit BAR if that is the only option
  PCI: endpoint: pci-epf-test: Simplify pci_epf_test_alloc_space() loop
drivers/pci/endpoint/functions/pci-epf-test.c