mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
remoteproc: xlnx: Fix sram property parsing
[ Upstream commitd116bccf6f] 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:77fcdf51b8("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1680ab072b
commit
e4bc8d3e4d
@@ -990,7 +990,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);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to get reg property\n");
|
||||
goto fail_sram_get;
|
||||
|
||||
Reference in New Issue
Block a user