linux/drivers/pci/pcie
Naveen Naidu aa66ea10ba PCI/PME: Use PCI_POSSIBLE_ERROR() to check config reads
When config pci_ops.read() can detect failed PCI transactions, the data
returned to the CPU is PCI_ERROR_RESPONSE (~0 or 0xffffffff).

Obviously a successful PCI config read may *also* return that data if a
config register happens to contain ~0, so it doesn't definitively indicate
an error unless we know the register cannot contain ~0.

Use PCI_POSSIBLE_ERROR() to check the response we get when we read data
from hardware.  This unifies PCI error response checking and makes error
checks consistent and easier to find.

Compile tested only.

Link: https://lore.kernel.org/r/679ce049bccf10df3ca9ef4918ee2c3235afdaea.1637243717.git.naveennaidu479@gmail.com
Signed-off-by: Naveen Naidu <naveennaidu479@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2021-11-18 14:13:18 -06:00
..
aer_inject.c PCI/AER: Add RCEC AER error injection support 2020-12-05 15:26:02 -06:00
aer.c PCI: Correct misspelled and remove duplicated words 2021-10-08 17:14:04 -05:00
aspm.c PCI: Use kstrtobool() directly, sans strtobool() wrapper 2021-09-28 18:06:29 -05:00
dpc.c PCI/DPC: Use PCI_POSSIBLE_ERROR() to check config reads 2021-11-18 14:13:18 -06:00
edr.c PCI/EDR: Log only ACPI_NOTIFY_DISCONNECT_RECOVER events 2020-04-24 18:33:29 -05:00
err.c Revert "PCI: Use to_pci_driver() instead of pci_dev->driver" 2021-11-11 13:36:22 -06:00
Kconfig PCI/LINK: Remove bandwidth notification 2021-02-02 14:25:11 -06:00
Makefile PCI/ERR: Reduce compile time for CONFIG_PCIEAER=n 2021-10-16 09:16:59 -05:00
pme.c PCI/PME: Use PCI_POSSIBLE_ERROR() to check config reads 2021-11-18 14:13:18 -06:00
portdrv_core.c Merge branch 'pci/portdrv' 2021-11-05 11:28:45 -05:00
portdrv_pci.c PCI/portdrv: Remove unused resume err_handler 2021-10-15 14:25:08 -05:00
portdrv.h PCI/portdrv: Remove unused pcie_port_bus_{,un}register() declarations 2021-10-15 14:25:18 -05:00
ptm.c pci-v5.15-changes 2021-09-07 19:13:42 -07:00
rcec.c PCI/RCEC: Fix RCiEP device to RCEC association 2021-03-10 15:10:46 -06:00