diff options
author | Okash Khawaja <okash@google.com> | 2021-02-14 22:20:43 +0000 |
---|---|---|
committer | Okash Khawaja <okash@google.com> | 2021-02-14 22:20:43 +0000 |
commit | f9b3d860c4153ad3b8d6b715ddf6fae1c544daff (patch) | |
tree | fc18586800f0a6719dfba48709b96c70ba927bf1 | |
parent | 9f9fe69619f7bc1da514982ce49d3b35da432563 (diff) | |
download | reset-f9b3d860c4153ad3b8d6b715ddf6fae1c544daff.tar.gz |
power: reset: fix directly write to pmu_alive
we shouldn't directly write to pmu_alive regs. commit <ec3b7dd30ad9>
("power: reset: exynos-reboot: support PS_HOLD cold reboot") added a
regmap_update_bits() which directly accesses pmu_alive.
this commit fixes that.
Bug: 180202410
Signed-off-by: Okash Khawaja <okash@google.com>
Change-Id: I8ae05753861cb31eb2f5d48a9ee5d820b31bc6f1
-rw-r--r-- | exynos-reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos-reboot.c b/exynos-reboot.c index 310c052..c52dfcd 100644 --- a/exynos-reboot.c +++ b/exynos-reboot.c @@ -192,7 +192,7 @@ static int exynos_restart_handler(struct notifier_block *this, unsigned long mod } else { pr_emerg("Set PS_HOLD Low.\n"); mdelay(2); - regmap_update_bits(pmureg, cold_reboot_offset, cold_reboot_trigger, 0); + rmw_priv_reg(pmu_alive_base + cold_reboot_offset, cold_reboot_trigger, 0); } while (1) |