PCI: Disable decoding for BAR sizing only when it was actually enabled
authorZoltan Kiss <zoltan.kiss@citrix.com>
Thu, 22 Aug 2013 22:19:18 +0000 (23:19 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Aug 2013 15:21:19 +0000 (09:21 -0600)
We disable BARs while sizing them so we don't cause conflicts with other
devices (see 253d2e5498 and bbffe43524).  But if device decoding is already
disabled before we size the BAR, we don't need to disable it again.

[bhelgaas: changelog, add PCI_COMMAND_DECODING_ENABLE for readability]
Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

No differences found