diff options
| author | Mayuresh Chitale <mchitale@ventanamicro.com> | 2025-11-14 06:58:06 +0000 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2025-11-16 10:37:27 -0700 |
| commit | 7b090e7b910cafd245f23e56f3257a151ca0a289 (patch) | |
| tree | c3566078c1f2e8782482aa8d7fef5cc06044c119 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 91f815b7073d8f1abb5f3a3a7bf6b9466a6e5e8f (diff) | |
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 <mchitale@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://patch.msgid.link/20251114065808.304430-1-mchitale@ventanamicro.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
