From: Simon Farnsworth Subject: Re: [PATCHv5] drm/i915: Enable SDVO hotplug interrupts for HDMI and DVI Date: Wed, 21 Sep 2011 10:08:13 +0100 Message-ID: <201109211008.14518.simon.farnsworth@onelan.co.uk> References: <1316539885-3196-1-git-send-email-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-smtp03.uk.clara.net (claranet-outbound-smtp03.uk.clara.net [195.8.89.36]) by gabe.freedesktop.org (Postfix) with ESMTP id 36B39A028C for ; Wed, 21 Sep 2011 02:08:22 -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 18:31:25 +0100, Simon Farnsworth wrote: > > + /* Set up hotplug command - note paranoia about contents of reply. > > + * We simply clear out the bits we understand, and hope that > > + * the rest are in good shape for the hardware. > > + */ > > + intel_sdvo_get_value(intel_sdvo, SDVO_CMD_GET_HOT_PLUG_SUPPORT, > > + &intel_sdvo->hotplug_active, 2); > > + intel_sdvo->hotplug_active[0] &= 0x3; > > + > > This appears to unconditionally set the bits for devices 0 and 1, making > the dvi-specific code that sets the device bit irrelevant. I think you > just want to set hotplug_active to 0. I'm clearing the bits (&= not |=). I could respin setting it to 0, but that takes me even further from the old (commented out) code, and I'd really want someone to check SDVO specs before doing that. -- Simon Farnsworth Software Engineer ONELAN Limited http://www.onelan.com/