From 1a34d1233716ffecef7eebba20505ab22780b90b Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Tue, 10 Jan 2017 16:08:05 +0200 Subject: [PATCH 1/2] drm: drm_probe_helper: debug1 for delayed event handling Just print debug message when scheduling and executing the poll work to handle the delayed event. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/drm_probe_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c index ac953f037be7..6813f771c298 100644 --- a/drivers/gpu/drm/drm_probe_helper.c +++ b/drivers/gpu/drm/drm_probe_helper.c @@ -143,6 +143,7 @@ void drm_kms_helper_poll_enable_locked(struct drm_device *dev) } if (dev->mode_config.delayed_event) { + DRM_DEV_DEBUG_KMS(dev->dev, "Scheduling for delayed event\n"); poll = true; delay = 0; } @@ -397,6 +398,9 @@ static void output_poll_execute(struct work_struct *work) goto out; } + if (changed) + DRM_DEV_DEBUG_KMS(dev->dev, "Handling the delayed event\n"); + drm_for_each_connector(connector, dev) { /* Ignore forced connectors. */ -- 2.11.0