Commit Graph

4 Commits

Author SHA1 Message Date
Al Stone 3baca9b11d gpio: virtio: Add IRQ support
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  This set updates GPIO
 support.  It has been tested via simple boot tests and by using the
 kernel GPIO tools to verify pins are being identified and can be used.

commit eff5cdd745a68863a73095b0b4d62d15e0d9d902
Author: Viresh Kumar <viresh.kumar@linaro.org>
Date:   Thu Oct 21 16:34:19 2021 +0530

    gpio: virtio: Add IRQ support

    This patch adds IRQ support for the virtio GPIO driver. Note that this
    uses the irq_bus_lock/unlock() callbacks, since those operations over
    virtio may sleep.

    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Acked-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    (cherry picked from commit eff5cdd745a68863a73095b0b4d62d15e0d9d902)

Signed-off-by: Al Stone <ahs3@redhat.com>
2022-08-24 13:31:41 -06:00
Al Stone 32a504f02c gpio: virtio: remove timeout
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  This set updates GPIO
 support.  It has been tested via simple boot tests and by using the
 kernel GPIO tools to verify pins are being identified and can be used.

commit 3e4d9a485029aa9e172dab5420abe775fd86f8e8
Author: Vincent Whitchurch <vincent.whitchurch@axis.com>
Date:   Mon Dec 20 14:06:56 2021 +0100

    gpio: virtio: remove timeout

    The driver imposes an arbitrary one second timeout on virtio requests,
    but the specification doesn't prevent the virtio device from taking
    longer to process requests, so remove this timeout to support all
    systems and device implementations.

    Fixes: 3a29355a22c0275fe86 ("gpio: Add virtio-gpio driver")
    Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
    Acked-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
    (cherry picked from commit 3e4d9a485029aa9e172dab5420abe775fd86f8e8)

Signed-off-by: Al Stone <ahs3@redhat.com>
2022-08-24 13:31:41 -06:00
Al Stone 285e7edc83 gpio: virtio: Fix sparse warnings
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  This set updates GPIO
 support.  It has been tested via simple boot tests and by using the
 kernel GPIO tools to verify pins are being identified and can be used.

commit 17395d7742baa4737e9d3b4672cc3d10e5970998
Author: Viresh Kumar <viresh.kumar@linaro.org>
Date:   Tue Aug 31 10:59:25 2021 +0530

    gpio: virtio: Fix sparse warnings

    Fix warnings reported by sparse, related to type mismatch between u16
    and __le16.

    Reported-by: kernel test robot <lkp@intel.com>
    Fixes: 3a29355a22c0 ("gpio: Add virtio-gpio driver")
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Acked-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    (cherry picked from commit 17395d7742baa4737e9d3b4672cc3d10e5970998)

Signed-off-by: Al Stone <ahs3@redhat.com>
2022-08-24 13:30:57 -06:00
Al Stone b061fc5bea gpio: Add virtio-gpio driver
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071835
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  This set updates GPIO
 support.  It has been tested via simple boot tests and by using the
 kernel GPIO tools to verify pins are being identified and can be used.

commit 3a29355a22c0275fe864100794fee58a73175d93
Author: Viresh Kumar <viresh.kumar@linaro.org>
Date:   Thu Aug 19 10:00:22 2021 +0530

    gpio: Add virtio-gpio driver

    This patch adds a new driver for Virtio based GPIO devices.

    This allows a guest VM running Linux to access GPIO lines provided by
    the host. It supports all basic operations, except interrupts for the
    GPIO lines.

    Based on the initial work posted by:
    "Enrico Weigelt, metux IT consult" <lkml@metux.net>.

    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    (cherry picked from commit 3a29355a22c0275fe864100794fee58a73175d93)

Signed-off-by: Al Stone <ahs3@redhat.com>
2022-08-24 13:28:25 -06:00