]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: add drm_driver.release callback.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Feb 2020 13:58:04 +0000 (14:58 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Feb 2020 09:24:08 +0000 (10:24 +0100)
commit17c768517b351d718a5eaa796e113cbd5bf58178
tree12b9267ba6a6fba75ba38fe213b720d754638580
parent2b2886f036a586d27da3a5ef5b88240ba96b0a15
drm/virtio: add drm_driver.release callback.

Split virtio_gpu_deinit(), move the drm shutdown and release to
virtio_gpu_release().  Drop vqs_ready variable, instead use
drm_dev_{enter,exit,unplug} to avoid touching hardware after
device removal.  Tidy up here and there.

v4: add changelog.
v3: use drm_dev_*().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20200211135805.24436-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_display.c
drivers/gpu/drm/virtio/virtgpu_drv.c
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_kms.c
drivers/gpu/drm/virtio/virtgpu_vq.c