mirror-linux/drivers
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
..
accel Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
accessibility
acpi Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
amba
android
ata Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
atm
auxdisplay
base - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
bcma
block - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
bluetooth Bluetooth: btusb: Add WCN6855 devcoredump support 2023-04-23 22:07:27 -07:00
bus modules-6.4-rc1 2023-04-27 16:36:55 -07:00
cdrom
cdx cdx: fix build failure due to sysfs 'bus_type' argument needing to be const 2023-04-27 16:21:32 -07:00
char Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
clk modules-6.4-rc1 2023-04-27 16:36:55 -07:00
clocksource hyperv-next for v6.4 2023-04-27 17:17:12 -07:00
comedi
connector
counter
cpufreq Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
cpuidle RISC-V: Align SBI probe implementation with spec 2023-04-29 13:04:50 -07:00
crypto - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
cxl Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
dax
dca Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
devfreq Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
dio
dma modules-6.4-rc1 2023-04-27 16:36:55 -07:00
dma-buf - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
edac Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
eisa
extcon
firewire firewire updates for 6.4-rc1 2023-04-27 11:27:48 -07:00
firmware modules-6.4-rc1 2023-04-27 16:36:55 -07:00
fpga Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
fsi
gnss
gpio Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
gpu powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
greybus
hid Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
hsi
hte Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
hv hyperv-next for v6.4 2023-04-27 17:17:12 -07:00
hwmon Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
hwspinlock
hwtracing
i2c Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
i3c
idle
iio Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
infiniband modules-6.4-rc1 2023-04-27 16:36:55 -07:00
input Thermal control updates for 6.4-rc1 2023-04-25 18:32:43 -07:00
interconnect modules-6.4-rc1 2023-04-27 16:36:55 -07:00
iommu Add support for new Linear Address Masking CPU feature. This is similar 2023-04-28 09:43:49 -07:00
ipack
irqchip - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
isdn Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
leds
macintosh powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
mailbox modules-6.4-rc1 2023-04-27 16:36:55 -07:00
mcb mcb-lpc: Reallocate memory region to avoid memory overlapping 2023-04-20 14:24:01 +02:00
md - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
media Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
memory ARM: SoC drivers for v6.4 2023-04-25 12:02:16 -07:00
memstick
message Objtool changes for v6.4: 2023-04-28 14:02:54 -07:00
mfd modules-6.4-rc1 2023-04-27 16:36:55 -07:00
misc Objtool changes for v6.4: 2023-04-28 14:02:54 -07:00
mmc TTY/Serial changes for 6.4-rc1 2023-04-27 11:46:26 -07:00
most
mtd Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
mux
net - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
nfc drivers: nfc: nfcsim: remove return value check of `dev_dir` 2023-04-24 18:12:42 -07:00
ntb
nubus
nvdimm
nvme Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
nvmem modules-6.4-rc1 2023-04-27 16:36:55 -07:00
of RISC-V Patches for the 6.4 Merge Window, Part 1 2023-04-28 16:55:39 -07:00
opp Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
parisc
parport
pci hyperv-next for v6.4 2023-04-27 17:17:12 -07:00
pcmcia
peci
perf RISC-V: Align SBI probe implementation with spec 2023-04-29 13:04:50 -07:00
phy modules-6.4-rc1 2023-04-27 16:36:55 -07:00
pinctrl modules-6.4-rc1 2023-04-27 16:36:55 -07:00
platform modules-6.4-rc1 2023-04-27 16:36:55 -07:00
pnp
power modules-6.4-rc1 2023-04-27 16:36:55 -07:00
powercap
pps
ps3
ptp Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
pwm Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
rapidio Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
ras
regulator modules-6.4-rc1 2023-04-27 16:36:55 -07:00
remoteproc Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
reset
rpmsg Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
rtc
s390 virtio,vhost,vdpa: features, fixes, cleanups 2023-04-27 17:05:34 -07:00
sbus Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
scsi sysctl-6.4-rc1 2023-04-27 16:52:33 -07:00
sh
siox
slimbus
soc modules-6.4-rc1 2023-04-27 16:36:55 -07:00
soundwire
spi Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
spmi spmi: Add a check for remove callback when removing a SPMI driver 2023-04-20 14:16:39 +02:00
ssb
staging modules-6.4-rc1 2023-04-27 16:36:55 -07:00
target
tc
tee Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
thermal Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
thunderbolt
tty Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
ufs SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
uio
usb Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
vdpa virtio,vhost,vdpa: features, fixes, cleanups 2023-04-27 17:05:34 -07:00
vfio powerpc updates for 6.4 2023-04-28 16:24:32 -07:00
vhost Scheduler changes for v6.4: 2023-04-28 14:53:30 -07:00
video - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
virt Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
virtio - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
vlynq
w1 Char/Misc drivers for 6.4-rc1 2023-04-27 12:07:50 -07:00
watchdog
xen xen: branch for v6.4-rc1 2023-04-27 17:27:06 -07:00
zorro
Kconfig
Makefile