Commit 048a36d8 authored by Shradha Gupta's avatar Shradha Gupta Committed by Daniel Vetter

drm: Check polling initialized before enabling in drm_helper_probe_single_connector_modes

In function drm_helper_probe_single_connector_modes() when we enable
polling again, if it is already uninitialized, a warning is reported.
This patch fixes the warning message by checking if poll is initialized
before enabling it.
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202401191128.db8423f1-oliver.sang@intel.comSigned-off-by: default avatarShradha Gupta <shradhagupta@linux.microsoft.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1706856224-9725-1-git-send-email-shradhagupta@linux.microsoft.com
parent 5abffb66
...@@ -622,7 +622,11 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, ...@@ -622,7 +622,11 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
0); 0);
} }
/* Re-enable polling in case the global poll config changed. */ /*
* Re-enable polling in case the global poll config changed but polling
* is still initialized.
*/
if (dev->mode_config.poll_enabled)
drm_kms_helper_poll_enable(dev); drm_kms_helper_poll_enable(dev);
if (connector->status == connector_status_disconnected) { if (connector->status == connector_status_disconnected) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment