From: Mathieu Poirier <mathieu.poirier@linaro.org>
To: Tanmay Shah <tanmay.shah@amd.com>
Cc: andersson@kernel.org, linux-remoteproc@vger.kernel.org,
linux-kernel@vger.kernel.org, Tim Michals <tcmichals@yahoo.com>
Subject: Re: [PATCH] remoteproc: xlnx: fix sram property parsing
Date: Fri, 6 Feb 2026 09:01:19 -0700 [thread overview]
Message-ID: <aYYQT7OGEuGeOP9G@p14s> (raw)
In-Reply-To: <20260204202730.3729984-1-tanmay.shah@amd.com>
On Wed, Feb 04, 2026 at 12:27:30PM -0800, Tanmay Shah wrote:
> From: Tim Michals <tcmichals@yahoo.com>
>
> As per sram bindings, "sram" property can be list of phandles.
> When more than one sram phandles are listed, driver can't parse second
> phandle's address correctly. Because, phandle index is passed to the API
> instead of offset of address from reg property which is always 0 as per
> sram.yaml bindings. Fix it by passing 0 to the API instead of sram
> phandle index.
>
> Fixes: 77fcdf51b8ca ("remoteproc: xlnx: Add sram support")
>
> Signed-off-by: Tim Michals <tcmichals@yahoo.com>
> Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
> ---
> drivers/remoteproc/xlnx_r5_remoteproc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/xlnx_r5_remoteproc.c
> index bd619a6c42aa..970a9ef97945 100644
> --- a/drivers/remoteproc/xlnx_r5_remoteproc.c
> +++ b/drivers/remoteproc/xlnx_r5_remoteproc.c
> @@ -1005,7 +1005,7 @@ static int zynqmp_r5_get_sram_banks(struct zynqmp_r5_core *r5_core)
> }
>
> /* Get SRAM device address */
> - ret = of_property_read_reg(sram_np, i, &abs_addr, &size);
> + ret = of_property_read_reg(sram_np, 0, &abs_addr, &size);
I'll pick this up in two weeks when 6.20-rc1 comes out.
On a separate note, it would help if an example that includes an "sram" was part
of the xlnx_r5 bindings.
Thanks,
Mathieu
> if (ret) {
> dev_err(dev, "failed to get reg property\n");
> goto fail_sram_get;
>
> base-commit: 85ab651885e1b542ee0bb9ec4642ef0b11716997
> --
> 2.34.1
>
>
next prev parent reply other threads:[~2026-02-06 16:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 20:27 Tanmay Shah
2026-02-06 16:01 ` Mathieu Poirier [this message]
2026-02-06 16:38 ` Shah, Tanmay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aYYQT7OGEuGeOP9G@p14s \
--to=mathieu.poirier@linaro.org \
--cc=andersson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=tanmay.shah@amd.com \
--cc=tcmichals@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®