]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e: remove unnecessary reads of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:43:47 +0000 (07:43 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 2 Feb 2012 13:18:58 +0000 (21:18 +0800)
commit8c1030238e564841601c9786ba0feb1b4b59fd5a
treeadc547646ac62215ea22ab03e5b69b33334e194d
parentadd319ea2a3429306efd3cb601c0a4fa0903cb22
e1000e: remove unnecessary reads 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 353064de8af3bf46757376db66c29fa87a9fda3a)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/lib.c
drivers/net/e1000e/netdev.c