[PATCH 0/12] Avoid unnecessary PCIe capability search in PCI config space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Now that we have 'pcie_cap' field in struct pci_dev that holds a PCIe
capability offset, we don't need to search it from PCI configuration
space by using pci_find_capability() for most of the case. This set of
patches introduces pci_pcie_cap() API that returns saved PCIe
capability offset, and changes the codes under drivers/pci/ to use it
instead of pci_find_capability().

Since 'pcie_cap != 0' means that the device is PCI express, we no
longer need 'is_pcie' field. But before removing it, we need to change
the users of 'is_pcie'. This set of patches also introduces a
pci_is_pcie() API that returns true if the devices is PCIe, false
otherwise, and changes the codes under drivers/pci/ to use it instead
of checking 'is_pcie' field in struct pci_dev.

Users of pci_find_capability() and 'is_pcie' field still exists
outside drivers/pci/ directory. I'll try to change those codes after
changes for under drivers/pci are completed.

Patches are:

 - [PATCH  1/12] PCI: introduce pci_pcie_cap()
 - [PATCH  2/12] PCI: use pci_pcie_cap() in pci core
 - [PATCH  3/12] PCIe AER: use pci_pcie_cap()
 - [PATCH  4/12] PCIe port bus: use pci_pcie_cap()
 - [PATCH  5/12] PCIe ASPM: use pci_pcie_cap()
 - [PATCH  6/12] PCI hotplug: use pci_pcie_cap()
 - [PATCH  7/12] pciehp: use pci_pcie_cap()
 - [PATCH  8/12] PCI: introduce pci_is_pcie()
 - [PATCH  9/12] PCI: use pci_is_pcie() in pci core
 - [PATCH 10/12] PCIe ASPM: use pci_is_pcie()
 - [PATCH 11/12] PCIe AER: use pci_is_pcie()
 - [PATCH 12/12] PCI hotplug: use pci_is_pcie()

Thanks,
Kenji Kaneshige


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux