]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: remove unnecessary read of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:45:12 +0000 (07:45 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 07:21:07 +0000 (15:21 +0800)
commit155644a3ece3a1f7e61d4b19f7a4c259ffb265ac
treecc7d7a5371402cfe7b587ce4c0433bc236eca5a1
parent4d874556f63974c891a2f8f9f0ab4fd9c9db05ab
bnx2x: 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).

(cherry picked from commit 77c98e6a7a3ab76340b315d31fe1edded17cba15)
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_main.c