diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-26 19:26:00 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-03-19 22:00:14 +0100 |
commit | 3cedcc3621289d41bd21c5dbe0b886d57c83a1ea (patch) | |
tree | a746035791d4abbd0b9135e8e4bf46890799f6f1 /drivers/regulator/max14577.c | |
parent | PCI: Mark 64-bit resource as IORESOURCE_UNSET if we only support 32-bit (diff) | |
download | linux-3cedcc3621289d41bd21c5dbe0b886d57c83a1ea.tar.xz linux-3cedcc3621289d41bd21c5dbe0b886d57c83a1ea.zip |
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 <bhelgaas@google.com>
Diffstat (limited to 'drivers/regulator/max14577.c')
0 files changed, 0 insertions, 0 deletions