PCI: Cache ACS capability offset in device
authorRajat Jain <rajatja@google.com>
Tue, 7 Jul 2020 22:46:02 +0000 (15:46 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 10 Jul 2020 18:49:35 +0000 (13:49 -0500)
commit52fbf5bdeeef415b28b8e6cdade1e48927927f60
tree006acc3c262d5b64c7bffbb790ed40805e6bc1f4
parentcbe420361f92a31694fb3773a6247fda9aba1db3
PCI: Cache ACS capability offset in device

Currently the ACS capability is being looked up at a number of places. Read
and store it once at enumeration so that it can be used by all later.  No
functional change intended.

Link: https://lore.kernel.org/r/20200707224604.3737893-2-rajatja@google.com
Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/p2pdma.c
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/probe.c
drivers/pci/quirks.c
include/linux/pci.h