]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 17:39:54 +0000 (17:39 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 19:01:22 +0000 (12:01 -0700)
commita02ff4c804392b5d4d1dbd16a1b031ed89701e01
tree893fd9d8e76a777a3c4cdfd2e89afdbea28b9a51
parentd9c645e18475bae704cf4727844015e1158faf82
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>
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_reset.c