mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 02:21:38 +00:00
include: sbi_utils/mailbox/rpmi_msgprot: Fix warm reboot failure
When sbi_system_reset() is invoked with SBI_SRST_RESET_TYPE_WARM_REBOOT,
the RPMI system reset driver reports warm reboot as unsupported.
The driver was checking the wrong bit in the FLAGS field returned
by rpmi_sysreset_get_attributes().
To fix this, check the correct bit to detect warm reboot support.
Fixes: 6a26726e08 (lib/utils: reset: Add RPMI System Reset driver)
Signed-off-by: Prajwal N <prajwal.n@oss.qualcomm.com>
Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20261001084412.1383854-1-prajwal.n@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
97bf679708
commit
fde5dfe96f
1 file changed
+1
-1
@@ -392,7 +392,7 @@ enum rpmi_sysrst_reset_type {
|
||||
RPMI_SYSRST_TYPE_MAX,
|
||||
};
|
||||
|
||||
#define RPMI_SYSRST_ATTRS_FLAGS_RESETTYPE_POS (1)
|
||||
#define RPMI_SYSRST_ATTRS_FLAGS_RESETTYPE_POS (0)
|
||||
#define RPMI_SYSRST_ATTRS_FLAGS_RESETTYPE_MASK \
|
||||
(1U << RPMI_SYSRST_ATTRS_FLAGS_RESETTYPE_POS)
|
||||
|
||||
|
||||
Reference in new issue
Block a user