diff options
| author | Rajat Jain <[email protected]> | 2020-07-07 15:46:02 -0700 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2020-07-10 13:49:35 -0500 |
| commit | 52fbf5bdeeef415b28b8e6cdade1e48927927f60 (patch) | |
| tree | 006acc3c262d5b64c7bffbb790ed40805e6bc1f4 /include/linux | |
| parent | cbe420361f92a31694fb3773a6247fda9aba1db3 (diff) | |
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/[email protected]
Signed-off-by: Rajat Jain <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index c79d83304e52..a26be5332bba 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -486,6 +486,7 @@ struct pci_dev { #ifdef CONFIG_PCI_P2PDMA struct pci_p2pdma *p2pdma; #endif + u16 acs_cap; /* ACS Capability offset */ phys_addr_t rom; /* Physical address if not from BAR */ size_t romlen; /* Length if not from BAR */ char *driver_override; /* Driver name to force a match */ |