From: Simon Farnsworth Subject: Re: [PATCH] drm/i915: Enable SDVO hotplug interrupts for HDMI and DVI Date: Tue, 20 Sep 2011 17:57:21 +0100 Message-ID: <201109201757.22122.simon.farnsworth@onelan.co.uk> References: <1316528258-23006-1-git-send-email-simon.farnsworth@onelan.co.uk> <201109201738.37448.simon.farnsworth@onelan.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from claranet-outbound-smtp00.uk.clara.net (claranet-outbound-smtp00.uk.clara.net [195.8.89.33]) by gabe.freedesktop.org (Postfix) with ESMTP id A3035A0B50 for ; Tue, 20 Sep 2011 09:57:26 -0700 (PDT) In-Reply-To: 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: Keith Packard Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tuesday 20 September 2011, Keith Packard wrote: > On Tue, 20 Sep 2011 17:38:37 +0100, Simon Farnsworth wrote: > > This interacts badly with the need I've found to call this function every > > time a hotplug interrupt comes through (explained below) - I'm not sure > > how to track back from the encoder (which gets the callback) to the SDVO > > device number. > > You might store the desired hotplug bits in the intel_sdvo structure, > and then use that in the enable function. The enable function should be > able to just call SET_ACTIVE_HOT_PLUG with the desired value instead of > making the four calls that it does now, right? > Sounds perfectly reasonable to me. I'll whip up patch v5 before I head home tonight. > > If I don't call intel_sdvo_enable_hotplug at this point, I only get the > > one hotplug interrupt; it appears that the SDVO devices I have send > > their interrupt, then expect you to re-enable HPD interrupts before they > > will send another interrupt. > > ok, sounds good. > I'll add a comment to the code so that future reviewers understand why I'm doing it. -- Simon Farnsworth Software Engineer ONELAN Limited http://www.onelan.com/