Skip to content

Commit

Permalink
PCI: of: Reduce missing non-prefetchable memory region to a warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
robherring authored and Lorenzo Pieralisi committed Jul 23, 2020
1 parent b411b2e commit 4cb18d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/pci/of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4cb18d1

Please sign in to comment.