PCI/DPC: Read RP PIO Log Size once at probe
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Jan 2018 18:49:27 +0000 (12:49 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 30 Jan 2018 21:25:33 +0000 (15:25 -0600)
commite3c44b8ddc2349b48950b3b15c3b9d74655356c7
treeaeaaca17b24a4699403b3f6791f509510e7a83b6
parentbe3039a39265a0d7208f347db95306f343ff8bc0
PCI/DPC: Read RP PIO Log Size once at probe

The RP PIO Log Size is a read-only field in the DPC Capability, so it is
constant and known at probe-time, but previously we read it every time we
processed an RP PIO error.

Read it once in dpc_probe() (if the RP Extensions for DPC are supported)
and remember the size in struct dpc_dev.  No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sinan Kaya <okaya@codeaurora.org>
drivers/pci/pcie/pcie-dpc.c