Skip to content

Commit 089558a

Browse files
committed
Virtio SPI Linux driver
Merge series from Haixu Cui <[email protected]>: This is the 10th version of the virtio SPI Linux driver patch series which is intended to be compliant with the upcoming virtio specification version 1.4. The specification can be found in repository: https://github.com/oasis-tcs/virtio-spec.git branch virtio-1.4.
2 parents 7ea79f5 + f98cabe commit 089558a

6 files changed

Lines changed: 632 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26803,6 +26803,13 @@ S: Maintained
2680326803
F: include/uapi/linux/virtio_snd.h
2680426804
F: sound/virtio/*
2680526805

26806+
VIRTIO SPI DRIVER
26807+
M: Haixu Cui <[email protected]>
26808+
26809+
S: Maintained
26810+
F: drivers/spi/spi-virtio.c
26811+
F: include/uapi/linux/virtio_spi.h
26812+
2680626813
VIRTUAL BOX GUEST DEVICE DRIVER
2680726814
M: Hans de Goede <[email protected]>
2680826815
M: Arnd Bergmann <[email protected]>

drivers/spi/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,17 @@ config SPI_UNIPHIER
12351235

12361236
If your SoC supports SCSSI, say Y here.
12371237

1238+
config SPI_VIRTIO
1239+
tristate "Virtio SPI Controller"
1240+
depends on SPI_MASTER && VIRTIO
1241+
help
1242+
If you say yes to this option, support will be included for the virtio
1243+
SPI controller driver. The hardware can be emulated by any device model
1244+
software according to the virtio protocol.
1245+
1246+
This driver can also be built as a module. If so, the module
1247+
will be called spi-virtio.
1248+
12381249
config SPI_XCOMM
12391250
tristate "Analog Devices AD-FMCOMMS1-EBZ SPI-I2C-bridge driver"
12401251
depends on I2C

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ spi-thunderx-objs := spi-cavium.o spi-cavium-thunderx.o
159159
obj-$(CONFIG_SPI_THUNDERX) += spi-thunderx.o
160160
obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o
161161
obj-$(CONFIG_SPI_UNIPHIER) += spi-uniphier.o
162+
obj-$(CONFIG_SPI_VIRTIO) += spi-virtio.o
162163
obj-$(CONFIG_SPI_XCOMM) += spi-xcomm.o
163164
obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o
164165
obj-$(CONFIG_SPI_XLP) += spi-xlp.o

0 commit comments

Comments
 (0)