From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62169CD4F3B for ; Fri, 22 Sep 2023 09:22:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D64B410E03D; Fri, 22 Sep 2023 09:22:41 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id D37D710E05B for ; Fri, 22 Sep 2023 09:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695374559; x=1726910559; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=zBJ8alOf0mxqBPPK6FQBtDnC1W+WbOJr+PMTY5kFH4I=; b=gyIulcTZ7N+myUtyifS0IVG/20Jsz89/VqlbY5xbk1ERJxhVKF/csEgi k6Hsi5e8gttE5wgJI8HfHq6VHdpH0pp7TLUFly/OUZFC4EGzWi/70F1Rg fsEN1JjuW1BUDLhwl+GCkTv4dY6/APTkbxdlW+2nHzh+QPbBft84SwlDa 8kQe1bCI8XrbSJaT579/ZqwYA028lXz93Y6NqiURHatrtROz3+Up8eUXc aymDWqcs9rT6uXO3+Uf84eXy91zDWU3C4mf7nIviTsSkEi5MW10PeXPdc Bt0CgNRmPL78KW8stVPIkLnoJG0xR2qEYsyTIcz8XxjxMLo763zi7mgXR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="384620211" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="384620211" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 02:22:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="697097226" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="697097226" Received: from mtomczew-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.37.163]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 02:22:37 -0700 From: Jani Nikula To: Uma Shankar , intel-gfx@lists.freedesktop.org In-Reply-To: <20230922091102.1030418-1-uma.shankar@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20230922091102.1030418-1-uma.shankar@intel.com> Date: Fri, 22 Sep 2023 12:22:34 +0300 Message-ID: <8734z6pnol.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Intel-gfx] [PATCH] drm/i915/display: Add a wrapper function for vga decode setup X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Fri, 22 Sep 2023, Uma Shankar wrote: > Some of the VGA functionality is not needed by the proposed > Intel Xe driver. Adding a wrapper function for VGA decode setup. This should also use it in i915, not just add duplicated code. > > Signed-off-by: Uma Shankar > --- > drivers/gpu/drm/i915/display/intel_vga.c | 3 --- > drivers/gpu/drm/i915/soc/intel_gmch.c | 14 ++++++++++++++ > drivers/gpu/drm/i915/soc/intel_gmch.h | 2 ++ > 3 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_vga.c b/drivers/gpu/drm/i= 915/display/intel_vga.c > index 286a0bdd28c6..bf84d01339b9 100644 > --- a/drivers/gpu/drm/i915/display/intel_vga.c > +++ b/drivers/gpu/drm/i915/display/intel_vga.c > @@ -3,11 +3,8 @@ > * Copyright =C2=A9 2019 Intel Corporation > */ >=20=20 > -#include > #include > - > #include