[PATCH V3 0/3] gpio: Add virtio based driver

From: Viresh Kumar
Date: Thu Jun 10 2021 - 08:09:38 EST


Hello,

This adds a virtio based GPIO driver based on the proposed specification [1].

The first two versions [2] were sent by Enrico earlier and here is a newer version.
I have retained the authorship of the work done by Enrico (1st patch) to make
sure we don't loose his credits.

I have tested all basic operations of the patchset (with Qemu guest) with the
libgpiod utility. I have also tested the handling of interrupts on the guest
side. All works as expected.

I will now be working towards a Rust based hypervisor agnostic backend to
provide a generic solution for that.

This should be merged only after the specifications are merged, I will keep
everyone posted for the same.

I am not adding a version history here as a lot of changes have been made, from
protocol to code and this really needs a full review from scratch.

--
Viresh

[1] https://lists.oasis-open.org/archives/virtio-comment/202106/msg00022.html
[2] https://lore.kernel.org/linux-gpio/20201203191135.21576-2-info@xxxxxxxxx/

Enrico Weigelt, metux IT consult (1):
gpio: Add virtio-gpio driver

Viresh Kumar (2):
gpio: virtio: Add IRQ support
MAINTAINERS: Add entry for Virtio-gpio

MAINTAINERS | 7 +
drivers/gpio/Kconfig | 9 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-virtio.c | 566 +++++++++++++++++++++++++++++++
include/uapi/linux/virtio_gpio.h | 56 +++
include/uapi/linux/virtio_ids.h | 1 +
6 files changed, 640 insertions(+)
create mode 100644 drivers/gpio/gpio-virtio.c
create mode 100644 include/uapi/linux/virtio_gpio.h

--
2.31.1.272.g89b43f80a514