Skip to content

Commit 0f5a9be

Browse files
ideakjnikula
authored andcommitted
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. This fixes a regression introduced in commit 237ed86 Author: Sonika Jindal <sonika.jindal@intel.com> Date: Tue Sep 15 09:44:20 2015 +0530 drm/i915: Check live status before reading edid v2: - fix commit message, PCH won't take any redundant power resource after this change (Ville) Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [fix commit message in v2 (Imre)] [Cherry-picked from drm-intel-next-queued 29bb94b (Imre)] Signed-off-by: Imre Deak <imre.deak@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1448643329-18675-6-git-send-email-imre.deak@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 8e69544 commit 0f5a9be

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
@@ -1379,6 +1379,8 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
13791379
DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n",
13801380
connector->base.id, connector->name);
13811381

1382+
intel_display_power_get(dev_priv, POWER_DOMAIN_GMBUS);
1383+
13821384
while (!live_status && --retry) {
13831385
live_status = intel_digital_port_connected(dev_priv,
13841386
hdmi_to_dig_port(intel_hdmi));
@@ -1398,6 +1400,8 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
13981400
} else
13991401
status = connector_status_disconnected;
14001402

1403+
intel_display_power_put(dev_priv, POWER_DOMAIN_GMBUS);
1404+
14011405
return status;
14021406
}
14031407

0 commit comments

Comments
 (0)