RISC-V: Use the minor version mask while computing sbi version
authorAtish Patra <atishp@rivosinc.com>
Sat, 20 Apr 2024 15:17:23 +0000 (08:17 -0700)
committerAnup Patel <anup@brainfault.org>
Mon, 22 Apr 2024 05:43:54 +0000 (11:13 +0530)
commitb737fc24a12ceb6c393d9d68def6a6608fdf11cc
tree24d96fa5f0357b6b75bd39a55cfd4cd03362f488
parent3ddb6d4df67dad5a8501ffe3133eb31e0717acf4
RISC-V: Use the minor version mask while computing sbi version

As per the SBI specification, minor version is encoded in the
lower 24 bits only. Make sure that the SBI version is computed
with the appropriate mask.

Currently, there is no minor version in use. Thus, it doesn't
change anything functionality but it is good to be compliant with
the specification.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-8-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/sbi.h