]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: generic: Fix lookup of linux,pci-probe-only property
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 4 Sep 2015 16:50:09 +0000 (17:50 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 17 Sep 2015 17:21:01 +0000 (12:21 -0500)
commita07245d14fcb0ac760bfc60fc3483b0619998867
tree82e19491d22061e72c4394be3c79c95fd2829647
parentf81c11af617ca4bad5028e9e431feae8d4166bc7
PCI: generic: Fix lookup of linux,pci-probe-only property

When pci-host-generic looks for the probe-only property, it seems to trust
the DT to be correctly written, and assumes that there is a parameter to
the property.

Unfortunately, this is not always the case, and some firmware expose this
property naked.  The driver ends up making a decision based on whatever the
property pointer points to, which is likely to be junk.

Switch to the common of_pci.c implementation that doesn't suffer from this
problem.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Will Deacon <will.deacon@arm.com>
drivers/pci/host/pci-host-generic.c