mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
UPSTREAM: drm/virtio: Add missing virtqueue reset
As per the VirtIO spec, the virtqueues must be reset during cleanup
(see "3.3.1 Driver Requirements: Device Cleanup").
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190102175507.4653-2-ezequiel@collabora.com
(cherry picked from commit edde9fc58e)
Signed-off-by: Greg Hartman <ghartman@google.com>
BUG: 139386237
Change-Id: I3d40dd7771bacb91b64d99b2139cbe7d0b203f5d
This commit is contained in:
committed by
Alistair Delva
parent
c1b2cd0cfb
commit
e8656dbe7a
@@ -239,6 +239,7 @@ void virtio_gpu_driver_unload(struct drm_device *dev)
|
||||
flush_work(&vgdev->ctrlq.dequeue_work);
|
||||
flush_work(&vgdev->cursorq.dequeue_work);
|
||||
flush_work(&vgdev->config_changed_work);
|
||||
vgdev->vdev->config->reset(vgdev->vdev);
|
||||
vgdev->vdev->config->del_vqs(vgdev->vdev);
|
||||
|
||||
virtio_gpu_modeset_fini(vgdev);
|
||||
|
||||
Reference in New Issue
Block a user