lib: sbi: Save context for all non-retentive suspend types
authorAnup Patel <anup.patel@wdc.com>
Mon, 11 Oct 2021 05:31:09 +0000 (11:01 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 18 Oct 2021 10:37:16 +0000 (16:07 +0530)
commitc38973e0879e719d2b3ce1304802ea6b995d0d7e
tree4c2b32b01155d24891de407c8a2b3809a8725470
parent9283d503bd260a972f7e7ac2d895f7cfb152ef77
lib: sbi: Save context for all non-retentive suspend types

Instead of saving context only for default non-retentive suspend,
we should save context for all non-retentive suspend types.

Fixes: 74756891cc35 ("lib: sbi: Implement SBI HSM suspend function")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_hsm.c