linux-stable/arch
Andrew Jones 41cad8284d
RISC-V: Align SBI probe implementation with spec
sbi_probe_extension() is specified with "Returns 0 if the given SBI
extension ID (EID) is not available, or 1 if it is available unless
defined as any other non-zero value by the implementation."
Additionally, sbiret.value is a long. Fix the implementation to
ensure any nonzero long value is considered a success, rather
than only positive int values.

Fixes: b9dcd9e415 ("RISC-V: Add basic support for SBI v0.2")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230427163626.101042-1-ajones@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-04-29 13:04:50 -07:00
..
alpha SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
arc SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
arm SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
arm64 SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
csky SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
hexagon
ia64 SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
loongarch SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
m68k m68knommu: updates and fixes for v6.4 2023-04-28 16:37:54 -07:00
microblaze
mips SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
nios2 - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
openrisc
parisc SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
powerpc RISC-V Patches for the 6.4 Merge Window, Part 1 2023-04-28 16:55:39 -07:00
riscv RISC-V: Align SBI probe implementation with spec 2023-04-29 13:04:50 -07:00
s390 SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
sh SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
sparc SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
um ELF: fix all "Elf" typos 2023-04-08 13:45:37 -07:00
x86 SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
xtensa SMP cross-CPU function-call updates for v6.4: 2023-04-28 15:03:43 -07:00
.gitignore
Kconfig