summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorMyron Stowe <myron.stowe@redhat.com>2014-10-30 11:54:43 -0600
committerBjorn Helgaas <bhelgaas@google.com>2014-11-10 20:28:17 -0700
commitf795d86aaa578501551a2d1b463eac4bbea84db2 (patch)
tree797faaa59809689b0b688f6bff10b016c35ad329 /drivers/pci/pci.c
parent36e8164882ca6d3c41cb91e6f09a3ed236841f80 (diff)
downloadlinux-f795d86aaa578501551a2d1b463eac4bbea84db2.tar.bz2
PCI: Shrink decoding-disabled window while sizing BARs
__pci_read_base() disables decoding while sizing device BARs. We can't print while decoding is disabled, which leads to some rather messy exit logic. Coalesce the sizing logic to minimize the time decoding is disabled. This lets us print errors where they're detected. The refactoring also takes advantage of the symmetry of obtaining the BAR's extent (pci_size) and storing the result as the 'region' for both the 32-bit and 64-bit BARs, consolidating both cases. No functional change intended. [bhelgaas: move pci_size() up, per Thomas Petazzoni, Thierry Reding, Kevin Hilman] Signed-off-by: Myron Stowe <myron.stowe@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions