drm/udl: Support DRM hot-unplugging
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Oct 2022 09:53:48 +0000 (11:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 7 Oct 2022 11:46:28 +0000 (13:46 +0200)
commitca2bd373eb6632d5c37323755030fea6364937d0
tree820638a1bd4fecb5e8e135dbdafda1693e3d1f02
parent890e4de83898c9f34623f67b2129edfc37277ca3
drm/udl: Support DRM hot-unplugging

Add drm_dev_enter() and drm_dev_exit() to the various modesetting
functions that interact with the device. After hot-unplugging the
device, these functions will return early. So far, the udl driver
relied on USB interfaces to handle unplugging of the device.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221006095355.23579-10-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_modeset.c