提交 f134f251 编写于 作者: P Pavel Fedin 提交者: Rob Herring

PCI: of: Ignore resources with failed translation

This patch allows PCI host controller to function even if part of resources
is unusable for some reason. An example is non-LPAE kernel on a machine
which has some 64-bit resources. Unusable resources will be just skipped
instead of a complete failure.
Signed-off-by: NPavel Fedin <p.fedin@samsung.com>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 4af97106
......@@ -223,8 +223,10 @@ int of_pci_get_host_bridge_resources(struct device_node *dev,
}
err = of_pci_range_to_resource(&range, dev, res);
if (err)
goto conversion_failed;
if (err) {
kfree(res);
continue;
}
if (resource_type(res) == IORESOURCE_IO) {
if (!io_base) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册