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.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -486,6 +486,7 @@ struct pci_dev { · 485 unmodified lines | |||
| 486 | #ifdef CONFIG_PCI_P2PDMA | 486 | #ifdef CONFIG_PCI_P2PDMA |
| 487 | struct pci_p2pdma *p2pdma; | 487 | struct pci_p2pdma *p2pdma; |
| 488 | #endif | 488 | #endif |
| 489 | u16 acs_cap; /* ACS Capability offset */ | ||
| 489 | phys_addr_t rom; /* Physical address if not from BAR */ | 490 | phys_addr_t rom; /* Physical address if not from BAR */ |
| 490 | size_t romlen; /* Length if not from BAR */ | 491 | size_t romlen; /* Length if not from BAR */ |
| 491 | char *driver_override; /* Driver name to force a match */ | 492 | char *driver_override; /* Driver name to force a match */ |