summaryrefslogtreecommitdiff
path: root/drivers/pci/of.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-07-21 20:25:11 -0600
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-07-23 17:13:13 +0100
commit4cb18d13b01142d54a5fab66a2e9f562c08bc23b (patch)
tree1e2dc71cee4d15a75d1bb7f0e29d6624c5769636 /drivers/pci/of.c
parentb411b2e1adb9aa81d75799272dd484c8045f0b88 (diff)
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.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/of.c')
-rw-r--r--drivers/pci/of.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pci/of.c b/drivers/pci/of.c
index 27839cd2459f..cfb940c8b399 100644
--- a/drivers/pci/of.c
+++ b/drivers/pci/of.c
@@ -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);