mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
drm/i915: Do not start connector polling if display is disabled
Currently we are starting connector polling if display is disabled using disable_display module parameter. Polling is just returning always "not connected" state. This can be optimized by not starting polling at all. Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220610085429.52935-3-jouni.hogander@intel.com
This commit is contained in:
committed by
Jani Nikula
parent
eb2983c09f
commit
04770b082e
@@ -668,7 +668,8 @@ static void i915_hpd_poll_init_work(struct work_struct *work)
|
||||
*/
|
||||
void intel_hpd_poll_enable(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
if (!HAS_DISPLAY(dev_priv))
|
||||
if (!HAS_DISPLAY(dev_priv) ||
|
||||
!INTEL_DISPLAY_ENABLED(dev_priv))
|
||||
return;
|
||||
|
||||
WRITE_ONCE(dev_priv->hotplug.poll_enabled, true);
|
||||
|
||||
Reference in New Issue
Block a user