From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: fix sdvo hotplug support check and activation Date: Mon, 3 Sep 2012 09:38:50 +0200 Message-ID: <20120903073849.GD5225@phenom.ffwll.local> References: <1346238522-18314-1-git-send-email-jani.nikula@intel.com> <1346247838-6331-1-git-send-email-jani.nikula@intel.com> <3793539.KImO5gFPQT@f17simon> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 49E9D9E787 for ; Mon, 3 Sep 2012 00:38:21 -0700 (PDT) Received: by bkcji2 with SMTP id ji2so2141300bkc.36 for ; Mon, 03 Sep 2012 00:38:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: <3793539.KImO5gFPQT@f17simon> 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: Simon Farnsworth Cc: Jani Nikula , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Aug 29, 2012 at 03:12:37PM +0100, Simon Farnsworth wrote: > On Wednesday 29 August 2012 16:43:58 Jani Nikula wrote: > > The sdvo hotplug support check and activation has worked by coincidence for > > TMDS0. The boolean value returned by intel_sdvo_supports_hotplug() was > > masked with a bit shifted by device number, which also should have been one > > of SDVO_OUTPUT_* bits instead. Boolean true masked with 1 shifted by 0 just > > happened to match SDVO_OUTPUT_TMDS0... > > > > Get hotplug support as a bit mask, check the correct bits for support, and > > use the correct bits for activating hotplug support. > > > > Signed-off-by: Jani Nikula > > > Reviewed-by: Simon Farnsworth Queued for -next (together with a duplicate of the bugfix to avoid merge hassles), thanks for the patch. -Daniel > > The code you're fixing was written with the aid of ajax's educated guesses - > it's nice to see an Intel employee fix it to match the spec. > -- > Simon Farnsworth > Software Engineer > ONELAN Ltd > http://www.onelan.com -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48