android_kernel_xiaomi_sm8450/drivers/pci
Amey Narkhede 619013d797 PCI: Cache PCIe Device Capabilities register
[ Upstream commit 69139244806537f9d51364f37fe146bb2ee88a05 ]

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: 627c6db20703 ("PCI/DPC: Quirk PIO log size for Intel Raptor Lake Root Ports")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 12:58:22 +02:00
..
controller PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq() 2024-02-23 08:42:33 +01:00
endpoint PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled 2023-01-14 10:15:47 +01:00
hotplug Revert "PCI: acpiphp: Reassign resources on bridge if necessary" 2023-12-20 15:44:30 +01:00
pcie PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities() 2024-04-13 12:58:22 +02:00
switch PCI: switchtec: Fix an error handling path in switchtec_pci_probe() 2024-03-26 18:21:56 -04:00
access.c
ats.c
bus.c
ecam.c
host-bridge.c
iov.c
irq.c PCI: Check for alloc failure in pci_request_irq() 2023-01-14 10:15:50 +01:00
Kconfig
Makefile
mmap.c
msi.c PCI/MSI: Prevent MSI hardware interrupt number truncation 2024-03-01 13:16:48 +01:00
of.c
p2pdma.c
pci-acpi.c PCI/sysfs: Protect driver's D3cold preference from user space 2023-11-28 16:54:56 +00:00
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c PCI/PM: Drain runtime-idle callbacks before driver removal 2024-04-13 12:58:22 +02:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c PCI/sysfs: Protect driver's D3cold preference from user space 2023-11-28 16:54:56 +00:00
pci.c PCI: Cache PCIe Device Capabilities register 2024-04-13 12:58:22 +02:00
pci.h PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities() 2024-04-13 12:58:22 +02:00
probe.c PCI: Cache PCIe Device Capabilities register 2024-04-13 12:58:22 +02:00
proc.c
quirks.c PCI: Mark 3ware-9650SE Root Port Extended Tags as broken 2024-03-26 18:21:58 -04:00
remove.c
rom.c
search.c
setup-bus.c PCI: Take other bus devices into account when distributing resources 2023-03-11 16:40:18 +01:00
setup-irq.c
setup-res.c PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridge 2022-10-26 13:25:11 +02:00
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c