diff options
author | Zhang, Yanmin <yanmin_zhang@linux.intel.com> | 2009-06-16 01:34:38 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 17:30:13 -0400 |
commit | 70298c6e6c1ba68346336b4ea54bd5c0abbf73c8 (patch) | |
tree | 363d0a784d8a28688c0fda006279563a7fd3629b /include/linux/pci.h | |
parent | a6c0d5c6ebb3d988b1f18a1612b5188f3f555637 (diff) |
PCI AER: support Multiple Error Received and no error source id
Based on PCI Express AER specs, a root port might receive multiple
TLP errors while it could only save a correctable error source id
and an uncorrectable error source id at the same time. In addition,
some root port hardware might be unable to provide a correct source
id, i.e., the source id, or the bus id part of the source id provided
by root port might be equal to 0.
The patchset implements the support in kernel by searching the device
tree under the root port.
Patch 1 changes parameter cb of function pci_walk_bus to return a value.
When cb return non-zero, pci_walk_bus stops more searching on the
device tree.
Reviewed-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 6a1800ecd95d..61d9b790d21c 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -789,7 +789,7 @@ const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, | |||
789 | int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, | 789 | int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, |
790 | int pass); | 790 | int pass); |
791 | 791 | ||
792 | void pci_walk_bus(struct pci_bus *top, void (*cb)(struct pci_dev *, void *), | 792 | void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), |
793 | void *userdata); | 793 | void *userdata); |
794 | int pci_cfg_space_size_ext(struct pci_dev *dev); | 794 | int pci_cfg_space_size_ext(struct pci_dev *dev); |
795 | int pci_cfg_space_size(struct pci_dev *dev); | 795 | int pci_cfg_space_size(struct pci_dev *dev); |