]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: xlnx: Fix sram property parsing
authorTim Michals <tcmichals@yahoo.com>
Wed, 4 Feb 2026 20:27:30 +0000 (12:27 -0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 24 Feb 2026 15:31:59 +0000 (08:31 -0700)
commitd116bccf6f1c199b27c9ebdf07cc3cfe868f919c
tree447d1fe500f3ff4045d946d2e3bdbe63f55211f0
parent68b518773213e6c54542171cc12cc821460615e2
remoteproc: xlnx: Fix sram property parsing

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>
Link: https://lore.kernel.org/r/20260204202730.3729984-1-tanmay.shah@amd.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/xlnx_r5_remoteproc.c