commit | 9b89925c0d8f7d1cc203682df4fab847a7b4b7ec | [log] [tgz] |
---|---|---|
author | Jon Mason <jdmason@kudzu.us> | Mon Jun 27 17:39:54 2011 +0000 |
committer | Roland Dreier <roland@purestorage.com> | Mon Jul 18 12:01:22 2011 -0700 |
tree | 893fd9d8e76a777a3c4cdfd2e89afdbea28b9a51 | |
parent | cdb73db0b6bf7a1bcf5c788f0c8f803facb6e517 [diff] |
IB/mthca: Remove unnecessary read of PCI_CAP_ID_EXP The PCIE capability offset is saved during PCI bus walking. It will remove an unnecessary search in the PCI configuration space if this value is referenced instead of reacquiring it. Also, pci_is_pcie is a better way of determining if the device is PCIE or not (as it uses the same saved PCIE capability offset). Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Roland Dreier <roland@purestorage.com>