From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 09/33] drm/i915: VGACNTRL needs an offset on VLV Date: Thu, 24 Jan 2013 22:39:52 +0100 Message-ID: <20130124213952.GH31306@phenom.ffwll.local> References: <1359034198-19678-1-git-send-email-ville.syrjala@linux.intel.com> <1359034198-19678-10-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by gabe.freedesktop.org (Postfix) with ESMTP id DFBA7E5BF4 for ; Thu, 24 Jan 2013 13:37:46 -0800 (PST) Received: by mail-ee0-f47.google.com with SMTP id e52so4818539eek.20 for ; Thu, 24 Jan 2013 13:37:46 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359034198-19678-10-git-send-email-ville.syrjala@linux.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: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jan 24, 2013 at 03:29:34PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > Signed-off-by: Ville Syrj=E4l=E4 We already have a switch since VGACNTRL moved around on pch-split platforms, too. To avoid confusion with different ways to select a given reg I think a static inline and explicit VLV_VGACNTRL is better. Static inline since with i915_redisable_vga and i915_disable_vga we already have two callers. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch