]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Jul 2012 18:08:18 +0000 (12:08 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Jul 2012 01:49:24 +0000 (19:49 -0600)
commit921fb8f9b51c4140f6bad739990b110de3b7d5f2
tree84b48d12edc48040856f9feeeee70a82fe39852b
parent1140ece4e43893bef14a33125746b2aef4180b90
PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too

After c9f6f8ee8d, 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