]> git.hungrycats.org Git - linux/commit
of: fix PCI bus match for PCIe slots
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Mon, 3 Feb 2014 15:31:03 +0000 (13:31 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 21:34:45 +0000 (13:34 -0800)
commitfb8ff5d6053a52f1530ee00d88a18d5d3ebe10fb
tree8de0502bc276e0d5bde36c667d84a3ee5cb741d2
parent82adc317d17c0b8606d7e8853ef44e4645d83478
of: fix PCI bus match for PCIe slots

commit 14e2abb732e485ee57d9d5b2cb8884652238e5c1 upstream.

On IBM pseries systems the device_type device-tree property of a PCIe
bridge contains the string "pciex". The of_bus_pci_match() function was
looking only for "pci" on this property, so in such cases the bus
matching code was falling back to the default bus, causing problems on
functions that should be using "assigned-addresses" for region address
translation. This patch fixes the problem by also looking for "pciex" on
the PCI bus match function.

v2: added comment

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/address.c