Commit 4cb18d13 authored by Rob Herring's avatar Rob Herring Committed by Lorenzo Pieralisi

PCI: of: Reduce missing non-prefetchable memory region to a warning

The pci-rcar-gen2 controller requires only a prefetchable memory region,
and the error prevents using pci_parse_request_of_pci_ranges() for it.
Let's reduce this to just a warning message so this function can be used
for pci-rcar-gen2.

Link: https://lore.kernel.org/r/20200722022514.1283916-17-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
parent b411b2e1
......@@ -564,11 +564,10 @@ int pci_parse_request_of_pci_ranges(struct device *dev,
}
}
if (res_valid)
return 0;
if (!res_valid)
dev_warn(dev, "non-prefetchable memory resource required\n");
dev_err(dev, "non-prefetchable memory resource required\n");
err = -EINVAL;
return 0;
out_release_res:
pci_free_resource_list(resources);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment