diff options
author | Robert Tarasov <tutankhamen@chromium.org> | 2017-10-12 17:13:49 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-16 15:36:02 -0400 |
commit | afdfc4c6f55f953e073f0eef9e2afa3c8cf78d7c (patch) | |
tree | 988d8334f9c836534aef4dfe1e4df3e69c700ab3 /drivers/gpu/drm/udl/udl_drv.c | |
parent | a52ff2a509a77aacdcc464f26181e77d49880da9 (diff) | |
download | talos-obmc-linux-afdfc4c6f55f953e073f0eef9e2afa3c8cf78d7c.tar.gz talos-obmc-linux-afdfc4c6f55f953e073f0eef9e2afa3c8cf78d7c.zip |
drm/udl: Fixed problem with UDL adpater reconnection
Fixed problem with DisplayLink and DisplayLink certified adapers in drm/udl
driver when adapter doesn't want to work if it was initialized with
disconnected DVI cable by enabling drm connectot polling and updating
current connector's state.
Signed-off-by: Robert Tarasov <tutankhamen@chromium.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013001350.172155-1-tutankhamen@chromium.org
Diffstat (limited to 'drivers/gpu/drm/udl/udl_drv.c')
-rw-r--r-- | drivers/gpu/drm/udl/udl_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index 31421b6b586e..3c45a3064726 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c @@ -14,6 +14,9 @@ static int udl_usb_suspend(struct usb_interface *interface, pm_message_t message) { + struct drm_device *dev = usb_get_intfdata(interface); + + drm_kms_helper_poll_disable(dev); return 0; } @@ -21,6 +24,7 @@ static int udl_usb_resume(struct usb_interface *interface) { struct drm_device *dev = usb_get_intfdata(interface); + drm_kms_helper_poll_enable(dev); udl_modeset_restore(dev); return 0; } |