]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 17:40:38 +0000 (17:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 18:57:52 +0000 (11:57 -0700)
commitd7487a7286e3e7b143e4b137f0c46500fe6a6dda
treee6e1648a6df5da07662a9496776baf6dcac765e6
parentd8c61f2a0556e2e87af7c95b48c59745840b7e6f
IB/qib: 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.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_pcie.c