Skip to content

Commit 6131690

Browse files
committed
firmware: tegra: Do not warn on missing memory-region property
The IPC shared memory can reside in system memory or SRAM. In the latter case the memory-region property is expected not to be present, so do not warn about it. Reported-by: Jonathan Hunter <[email protected]> Fixes: dbe4efe ("firmware: tegra: bpmp: Use of_reserved_mem_region_to_resource() for "memory-region"") Signed-off-by: Thierry Reding <[email protected]>
1 parent 8f5ae30 commit 6131690

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/firmware/tegra/bpmp-tegra186.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ static int tegra186_bpmp_dram_init(struct tegra_bpmp *bpmp)
198198

199199
err = of_reserved_mem_region_to_resource(bpmp->dev->of_node, 0, &res);
200200
if (err < 0) {
201-
dev_warn(bpmp->dev, "failed to parse memory region: %d\n", err);
201+
if (err != -ENODEV)
202+
dev_warn(bpmp->dev,
203+
"failed to parse memory region: %d\n", err);
204+
202205
return err;
203206
}
204207

0 commit comments

Comments
 (0)