Skip to content

Commit 29bb94b

Browse files
committed
drm/i915: take a power domain reference while checking the HDMI live status
There are platforms that don't need the full GMBUS power domain (BXT) while others do (PCH, VLV/CHV). For optimizing this we would need to add a new power domain, but it's not clear how much we would benefit given the short time we hold the reference. So for now let's keep things simple. v2: - fix commit message, PCH won't take any redundant power resource after this change (Ville) Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [fix commit message in v2 (Imre)] Link: http://patchwork.freedesktop.org/patch/msgid/1447959301-1263-2-git-send-email-imre.deak@intel.com
1 parent 69172f2 commit 29bb94b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/intel_hdmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,8 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
13931393
DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
13941394
connector->base.id, connector->name);
13951395

1396+
intel_display_power_get(dev_priv, POWER_DOMAIN_GMBUS);
1397+
13961398
while (!live_status && --retry) {
13971399
live_status = intel_digital_port_connected(dev_priv,
13981400
hdmi_to_dig_port(intel_hdmi));
@@ -1412,6 +1414,8 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
14121414
} else
14131415
status = connector_status_disconnected;
14141416

1417+
intel_display_power_put(dev_priv, POWER_DOMAIN_GMBUS);
1418+
14151419
return status;
14161420
}
14171421

0 commit comments

Comments
 (0)