diff options
| author | Naveen Naidu <[email protected]> | 2021-11-18 14:03:13 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2021-11-18 19:37:34 +0000 |
| commit | 9bc9310c8f641234a81f139414fdb5b20b1df8c4 (patch) | |
| tree | 933107651ac35477aea1fa9edf28554a6be6f3c2 /drivers/pci/controller/dwc/pcie-qcom-ep.c | |
| parent | PCI: Set error response data when config read fails (diff) | |
| download | kernel-9bc9310c8f641234a81f139414fdb5b20b1df8c4.tar.gz kernel-9bc9310c8f641234a81f139414fdb5b20b1df8c4.zip | |
PCI: Use PCI_SET_ERROR_RESPONSE() for disconnected devices
A config read from a PCI device that doesn't exist or doesn't respond
causes a PCI error. There's no real data to return to satisfy the CPU read,
so most hardware fabricates ~0 data.
Use PCI_SET_ERROR_RESPONSE() to set the error response when we think the
device has already been disconnected.
This helps unify PCI error response checking and make error checks
consistent and easier to find.
Link: https://lore.kernel.org/r/29db0a6874716db80757e4e3cdd03562f13eb0cb.1637243717.git.naveennaidu479@gmail.com
Signed-off-by: Naveen Naidu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
0 files changed, 0 insertions, 0 deletions
