PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
commitbbffe435248444065bd76141c41bbe65db950cc9
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Jul 2012 18:08:18 +0000 (6 12:08 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Jul 2012 01:49:24 +0000 (9 19:49 -0600)
tree84b48d12edc48040856f9feeeee70a82fe39852b
parentcfaf025112d3856637ff34a767ef785ef5cf2ca9
PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too

After 253d2e5498, we disable MEM and IO decoding for most devices while we
size 32-bit BARs.  However, we restore the original COMMAND register before
we size the upper 32 bits of 64-bit BARs, so we can still cause a conflict.

This patch waits to restore the original COMMAND register until we're
completely finished sizing the BAR.

Reference: https://lkml.org/lkml/2007/8/25/154
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c