mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
of: reserved_mem: Add missing IORESOURCE_MEM flag on resources
Commitf4fcfdda2f
('of: reserved_mem: Add functions to parse "memory-region"') failed to set IORESOURCE_MEM flag on the resources. The result is functions such as devm_ioremap_resource_wc() will fail. Add the missing flag. Fixes:f4fcfdda2f
('of: reserved_mem: Add functions to parse "memory-region"') Reported-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reported-by: Daniel Baluta <daniel.baluta@gmail.com> Tested-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20250820192805.565568-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
parent
c81f6ce167
commit
aea70964b5
@ -771,6 +771,7 @@ int of_reserved_mem_region_to_resource(const struct device_node *np,
|
||||
return -EINVAL;
|
||||
|
||||
resource_set_range(res, rmem->base, rmem->size);
|
||||
res->flags = IORESOURCE_MEM;
|
||||
res->name = rmem->name;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user