mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
soc: rockchip: power-domain: Fix repair status
Fixes: 57db7e6ba5 ("soc: rockchip: power-domain: Add support to repair memory when power up")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id0e8c3a1da54174101626f4e722913ed2e5d5b70
This commit is contained in:
@@ -438,8 +438,8 @@ static bool rockchip_pmu_domain_is_on(struct rockchip_pm_domain *pd)
|
||||
|
||||
if (pd->info->repair_status_mask) {
|
||||
regmap_read(pmu->regmap, pmu->info->repair_status_offset, &val);
|
||||
/* 1'b0: power on, 1'b1: power off */
|
||||
return !(val & pd->info->repair_status_mask);
|
||||
/* 1'b1: power on, 1'b0: power off */
|
||||
return val & pd->info->repair_status_mask;
|
||||
}
|
||||
|
||||
/* check idle status for idle-only domains */
|
||||
|
||||
Reference in New Issue
Block a user