From patchwork Fri Sep 22 09:11:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Shankar, Uma" X-Patchwork-Id: 13395394 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 F1CFFCD4F35 for ; Fri, 22 Sep 2023 09:04:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 83B7F10E11C; Fri, 22 Sep 2023 09:04:06 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id B96D910E11C for ; Fri, 22 Sep 2023 09:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695373444; x=1726909444; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SW6Sxn/+eIl6+m4MHhrLOZixWhM9PVaWfU/L3xQdO6w=; b=BkcwKQ+H99WQwN407hSCDTglueyDkLPS+IYAABA9PERDXeCkzL7R0BvY E37vvJKQJTWupKID1fQyqktnc5D3ME6k2FlRKMgyovyF7kJIMONiGcklv ROYJh5Dbmko2vAVscpGri5dPVA0u7m8tveHj/88Iim0as8aJnf6QEneY8 OTDBLwS45Ogj3t1do0zG3Sxgc8Ydybk/NMOSPYSKMqBa59ufz8PC9xKUP QNPFaO2qXLZD+TPDHI2vY0rNtebzJByj2Rj5hfWn2xzdL85OeystJBBVB CL0scsdqS5Yb5aSn08q7bYHH2bU+1Fauxi1EPVt0xrYb4b+e69xMi2Xxm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="361033228" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="361033228" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 02:04:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="776778051" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="776778051" Received: from cfl-desktop.iind.intel.com ([10.190.239.20]) by orsmga008.jf.intel.com with ESMTP; 22 Sep 2023 02:03:58 -0700 From: Uma Shankar To: intel-gfx@lists.freedesktop.org Date: Fri, 22 Sep 2023 14:41:02 +0530 Message-ID: <20230922091102.1030418-1-uma.shankar@intel.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [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: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Some of the VGA functionality is not needed by the proposed Intel Xe driver. Adding a wrapper function for VGA decode setup. 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/i915/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 © 2019 Intel Corporation */ -#include #include - #include