PCI: Add pcie_flags_reg to cache PCIe capabilities register
authorYijing Wang <wangyijing@huawei.com>
Tue, 24 Jul 2012 09:20:02 +0000 (17:20 +0800)
committerJiang Liu <liuj97@gmail.com>
Mon, 20 Aug 2012 14:32:20 +0000 (22:32 +0800)
commit786e22885d9959fda0473ace5a61cb11620fba9b
treebfd70885b7d52deaef338ee212bf66ac682f8e42
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
PCI: Add pcie_flags_reg to cache PCIe capabilities register

Since PCI Express Capabilities Register is read only, cache its value
into struct pci_dev to avoid repeatedly calling pci_read_config_*().

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
include/linux/pci.h