gpio-virtio.c (c95e67bac42d7e671e6a2c14548b6a7f76e71235) gpio-virtio.c (6c85d6b653caeba2ef982925703cbb4f2b3b3163)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * GPIO driver for virtio-based virtual GPIO controllers
4 *
5 * Copyright (C) 2021 metux IT consult
6 * Enrico Weigelt, metux IT consult <info@metux.net>
7 *
8 * Copyright (C) 2021 Linaro.

--- 450 unchanged lines hidden (view full) ---

459{
460 struct virtqueue_info vqs_info[] = {
461 { "requestq", virtio_gpio_request_vq },
462 { "eventq", virtio_gpio_event_vq },
463 };
464 struct virtqueue *vqs[2] = { NULL, NULL };
465 int ret;
466
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * GPIO driver for virtio-based virtual GPIO controllers
4 *
5 * Copyright (C) 2021 metux IT consult
6 * Enrico Weigelt, metux IT consult <info@metux.net>
7 *
8 * Copyright (C) 2021 Linaro.

--- 450 unchanged lines hidden (view full) ---

459{
460 struct virtqueue_info vqs_info[] = {
461 { "requestq", virtio_gpio_request_vq },
462 { "eventq", virtio_gpio_event_vq },
463 };
464 struct virtqueue *vqs[2] = { NULL, NULL };
465 int ret;
466
467 ret = virtio_find_vqs_info(vdev, vgpio->irq_lines ? 2 : 1, vqs,
468 vqs_info, NULL);
467 ret = virtio_find_vqs(vdev, vgpio->irq_lines ? 2 : 1, vqs,
468 vqs_info, NULL);
469 if (ret) {
470 dev_err(&vdev->dev, "failed to find vqs: %d\n", ret);
471 return ret;
472 }
473
474 if (!vqs[0]) {
475 dev_err(&vdev->dev, "failed to find requestq vq\n");
476 goto out;

--- 187 unchanged lines hidden ---
469 if (ret) {
470 dev_err(&vdev->dev, "failed to find vqs: %d\n", ret);
471 return ret;
472 }
473
474 if (!vqs[0]) {
475 dev_err(&vdev->dev, "failed to find requestq vq\n");
476 goto out;

--- 187 unchanged lines hidden ---