PCI: Cache PCIe Device Capabilities register
[ Upstream commit 69139244 ] Add a new member called devcap in struct pci_dev for caching the PCIe Device Capabilities register to avoid reading PCI_EXP_DEVCAP multiple times. Refactor pcie_has_flr() to use cached device capabilities. Link: https://lore.kernel.org/r/20210817180500.1253-2-ameynarkhede03@gmail.com Signed-off-by:Amey Narkhede <ameynarkhede03@gmail.com> Signed-off-by:
Bjorn Helgaas <bhelgaas@google.com> Reviewed-by:
Raphael Norwitz <raphael.norwitz@nutanix.com> Stable-dep-of: 627c6db2 ("PCI/DPC: Quirk PIO log size for Intel Raptor Lake Root Ports") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading