diff options
| author | Mayuresh Chitale <[email protected]> | 2025-11-14 06:58:06 +0000 |
|---|---|---|
| committer | Paul Walmsley <[email protected]> | 2025-11-16 17:37:27 +0000 |
| commit | 7b090e7b910cafd245f23e56f3257a151ca0a289 (patch) | |
| tree | c3566078c1f2e8782482aa8d7fef5cc06044c119 /lib/mpi/mpi-mod.c | |
| parent | riscv: Update MIPS vendor id to 0x127 (diff) | |
| download | kernel-7b090e7b910cafd245f23e56f3257a151ca0a289.tar.gz kernel-7b090e7b910cafd245f23e56f3257a151ca0a289.zip | |
riscv: sbi: Prefer SRST shutdown over legacy
Currently, the sbi_init() always attempts to register the legacy shutdown
function as the sys-off handler which is fine when RISCV_SBI_V01 is not
enabled. However, if RISCV_SBI_V01 is enabled in the kernel and the SBI
v0.1 is not supported by the underlying SBI implementation then the
legacy shutdown fails. Fix this by not registering the legacy shutdown
when SRST shutdown is available.
Fixes: 70ddf86d76c1 ("riscv: sbi: Switch to new sys-off handler API")
Signed-off-by: Mayuresh Chitale <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
