From: Bjorn Helgaas Date: Wed, 26 Feb 2014 18:26:00 +0000 (-0700) Subject: PCI: Don't enable decoding if BAR hasn't been assigned an address X-Git-Tag: v3.15-rc1~143^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cedcc3621289d41bd21c5dbe0b886d57c83a1ea;p=pandora-kernel.git PCI: Don't enable decoding if BAR hasn't been assigned an address Don't enable memory or I/O decoding if we haven't assigned or claimed the BAR's resource. If we enable decoding for a BAR that hasn't been assigned an address, we'll likely cause bus conflicts. This declines to enable decoding for resources with IORESOURCE_UNSET. Note that drivers can use pci_enable_device_io() or pci_enable_device_mem() if they only care about specific types of BARs. In that case, we don't bother checking whether the corresponding resources are assigned or claimed. Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed