git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6637775
)
LoongArch: Enable PG when wakeup from suspend
author
Huacai Chen
<chenhuacai@loongson.cn>
Tue, 18 Apr 2023 11:38:58 +0000
(19:38 +0800)
committer
Huacai Chen
<chenhuacai@loongson.cn>
Tue, 18 Apr 2023 11:38:58 +0000
(19:38 +0800)
Some firmwares don't enable PG when wakeup from suspend, so do it in
kernel. This can improve code compatibility for boot kernel.
Signed-off-by: Baoqi Zhang <zhangbaoqi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/power/suspend_asm.S
patch
|
blob
|
history
diff --git
a/arch/loongarch/power/suspend_asm.S
b/arch/loongarch/power/suspend_asm.S
index 90da899c06a194989ee4c0044f7cc908131090e7..e2fc3b4e31f0019164f57de05c05324cc2bb391d 100644
(file)
--- a/
arch/loongarch/power/suspend_asm.S
+++ b/
arch/loongarch/power/suspend_asm.S
@@
-80,6
+80,10
@@
SYM_INNER_LABEL(loongarch_wakeup_start, SYM_L_GLOBAL)
JUMP_VIRT_ADDR t0, t1
+ /* Enable PG */
+ li.w t0, 0xb0 # PLV=0, IE=0, PG=1
+ csrwr t0, LOONGARCH_CSR_CRMD
+
la.pcrel t0, acpi_saved_sp
ld.d sp, t0, 0
SETUP_WAKEUP