From patchwork Mon Sep 25 06:50:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Shankar, Uma" X-Patchwork-Id: 13397275 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 9F182CE7A89 for ; Mon, 25 Sep 2023 06:43:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 01AB410E1FE; Mon, 25 Sep 2023 06:43:17 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B33C10E1FC for ; Mon, 25 Sep 2023 06:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695624193; x=1727160193; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DzO8A6XW7BM9n636KX90FZ6n/7Yyepl7xKA/ccC/ueQ=; b=D++8WPTpL9dcISFkM9IehsGt7O9HR1kD6jTWmN8K5sNMzoJqzGFCO7Be CTr4Pf9RtNMALDxk5TJmu9UqOqzzArssw5eJdtB5KmRwyUCOqDouD8DD9 +/glq8mOBzCMZGqugPQIVXDQEh3N32zrD4QLJmV4WN2GyUSFccVGA773e cufFZ3VGgjEPllJLmtYpCWatsQA1pn81fgz5OGagJVgsjeyq8IQ/mXl/m i6CvwgEW7tSa4DFGxlriRSWK2UoVbwfUmTrJmHsbX794mqQc/bJxaO/rc aPsZ0WdgPRZoGJFHGqFvstSqifZbtYetFT7OHKIzAOZJgCTia6dtD/iMh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="366236458" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="366236458" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 23:43:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="838482290" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="838482290" Received: from cfl-desktop.iind.intel.com ([10.190.239.20]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2023 23:43:11 -0700 From: Uma Shankar To: intel-gfx@lists.freedesktop.org Date: Mon, 25 Sep 2023 12:20:14 +0530 Message-ID: <20230925065014.1252784-1-uma.shankar@intel.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [Intel-gfx] [v2] 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, while this will be utilized by i915. Adding a wrapper function for VGA decode setup. v2: Addressed Jani Nikula's review comments. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_vga.c | 2 -- drivers/gpu/drm/i915/soc/intel_gmch.c | 14 ++++++++++++++ drivers/gpu/drm/i915/soc/intel_gmch.h | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vga.c b/drivers/gpu/drm/i915/display/intel_vga.c index 286a0bdd28c6..0f65ce115035 100644 --- a/drivers/gpu/drm/i915/display/intel_vga.c +++ b/drivers/gpu/drm/i915/display/intel_vga.c @@ -3,11 +3,9 @@ * Copyright © 2019 Intel Corporation */ -#include #include #include