Searched hist:b3d25dca86ad438423e2554b0c72ea8e429c30fb (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/plat/xilinx/common/pm_service/ |
| H A D | pm_api_sys.c | b3d25dca86ad438423e2554b0c72ea8e429c30fb Tue Mar 04 06:50:01 UTC 2025 Madhav Bhatt <madhav.bhatt@amd.com> fix(xilinx): avoid unexpected variable update
The commit 50ab13577fd5 ("fix(xilinx): typecast expression to match data type") introduced a change where the isenabler1 variable is modified within the loop iterating over GICD_ISENABLER registers. Instead of computing the offset from the base address for each register, the offset is accumulated incorrectly, leading to an incorrect register read.
As a result, some GIC enablers, including the RTC device were missed, so pm_set_wakeup_source was not called for them and the suspend-resume use case was failed because of that.
Fix the logic to ensure the correct offset calculation for each iteration, preserving the intended behavior.
Fixes: 50ab13577fd5 fix(xilinx): typecast expression to match data type Change-Id: Iec5bafcbde21078545a37259b2cf0353585ef1fa Signed-off-by: Madhav Bhatt <madhav.bhatt@amd.com> Signed-off-by: Ronak Jain <ronak.jain@amd.com>
|