From: Eugeni Dodonov Subject: [PATCH 2/7] drm/i915: DisplayPort hot remove notification to audio driver Date: Tue, 31 Jan 2012 13:51:31 -0200 Message-ID: <1328025096-1770-3-git-send-email-eugeni.dodonov@intel.com> References: <1328025096-1770-1-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by gabe.freedesktop.org (Postfix) with SMTP id 94F76A0935 for ; Tue, 31 Jan 2012 07:51:43 -0800 (PST) In-Reply-To: <1328025096-1770-1-git-send-email-eugeni.dodonov@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: stable@kernel.org Cc: intel-gfx@lists.freedesktop.org, Wu Fengguang , Eugeni Dodonov List-Id: intel-gfx@lists.freedesktop.org From: Wu Fengguang On DP monitor hot remove, clear DP_AUDIO_OUTPUT_ENABLE accordingly, so that the audio driver will receive hot plug events and take action to refresh its device state and ELD contents. Note that the DP_AUDIO_OUTPUT_ENABLE bit may be enabled or disabled only when the link training is complete and set to "Normal". Tested OK for both hot plug/remove and DPMS on/off. Upstream patch: commit 832afda6a7d7235ef0e09f4ec46736861540da6d Author: Wu Fengguang Date: Fri Dec 9 20:42:21 2011 +0800 drm/i915: DisplayPort hot remove notification to audio driver Signed-off-by: Wu Fengguang Signed-off-by: Keith Packard Signed-off-by: Eugeni Dodonov --- drivers/gpu/drm/i915/intel_dp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 92b041b..db3b461 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1926,6 +1926,7 @@ intel_dp_link_down(struct intel_dp *intel_dp) intel_wait_for_vblank(dev, to_intel_crtc(crtc)->pipe); } + DP &= ~DP_AUDIO_OUTPUT_ENABLE; I915_WRITE(intel_dp->output_reg, DP & ~DP_PORT_EN); POSTING_READ(intel_dp->output_reg); msleep(intel_dp->panel_power_down_delay); -- 1.7.8.4