of: reserved_mem: Add missing IORESOURCE_MEM flag on resources
authorRob Herring (Arm) <robh@kernel.org>
Wed, 20 Aug 2025 19:28:04 +0000 (14:28 -0500)
committerRob Herring (Arm) <robh@kernel.org>
Thu, 21 Aug 2025 17:21:36 +0000 (12:21 -0500)
commitaea70964b5a7ca491a3701f2dde6c9d05d51878d
treebfdf5ffb64de0e4621ba06f1741c893b8c473111
parentc81f6ce16785cc07ae81f53deb07b662ed0bb3a5
of: reserved_mem: Add missing IORESOURCE_MEM flag on resources

Commit f4fcfdda2fd8 ('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: f4fcfdda2fd8 ('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>
drivers/of/of_reserved_mem.c