diff options
author | Naveen Naidu <[email protected]> | 2021-11-18 19:33:12 +0530 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-11-18 13:36:55 -0600 |
commit | f4f7eb43c5238fd2636a8e310394ed9920627ab3 (patch) | |
tree | f4c217546186901a72dc93feb6ea060041d48344 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 57bdeef4716689d9b0e3571034d65cf420f6efcd (diff) |
PCI: Set error response data when config read fails
When a PCI config read fails, most PCI host bridges fabricate ~0 data to
complete the CPU read. But some host bridges do not; their drivers may
only return an error from the pci_ops.read() method.
In PCI_OP_READ() and PCI_USER_READ_CONFIG(), use PCI_SET_ERROR_RESPONSE()
to set the data value to indicate an error when pci_ops.read() fails.
This means the host bridge driver no longer needs to fabricate error data
when they detect errors.
This makes error response fabrication consistent and helps in removal of a
lot of repeated code.
Suggested-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/4188fc5465631ce0d472d1423de3d9fb2f09b8ff.1637243717.git.naveennaidu479@gmail.com
Signed-off-by: Naveen Naidu <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions