[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <38c470ee-0961-4197-a64f-e25bbbfc08ba@nxp.com>
Date: Thu, 21 Aug 2025 09:39:44 +0300
From: Iuliana Prodan <iuliana.prodan@....com>
To: "Rob Herring (Arm)" <robh@...nel.org>,
Patrice CHOTARD <patrice.chotard@...s.st.com>,
Saravana Kannan <saravanak@...gle.com>,
Arnaud Pouliquen <arnaud.pouliquen@...s.st.com>,
Daniel Baluta <daniel.baluta@....com>
Cc: Daniel Baluta <daniel.baluta@...il.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] of: reserved_mem: Add missing IORESOURCE_MEM flag on
resources
On 8/20/2025 10:28 PM, Rob Herring (Arm) wrote:
> 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@....com>
> Reported-by: Daniel Baluta <daniel.baluta@...il.com>
> Signed-off-by: Rob Herring (Arm) <robh@...nel.org>
Tested-by: Iuliana Prodan <iuliana.prodan@....com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@....com>
Thanks,
Iulia
> ---
> drivers/of/of_reserved_mem.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c
> index 77016c0cc296..d3b7c4ae429c 100644
> --- a/drivers/of/of_reserved_mem.c
> +++ b/drivers/of/of_reserved_mem.c
> @@ -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;
> }
Powered by blists - more mailing lists