From patchwork Tue Sep 26 19:20:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Shankar, Uma" X-Patchwork-Id: 13399631 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 25B70E7E65D for ; Tue, 26 Sep 2023 19:14:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8084710E42C; Tue, 26 Sep 2023 19:13:56 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 44E3A10E151 for ; Tue, 26 Sep 2023 19:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695755633; x=1727291633; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0xZLYVldXq1Q88aIaSlotaq48gXBjJDhRu5VL9EbL4o=; b=WmCaCxzjNsXl3x1vVFyBWD9OllqJRbV8Zp0y5rwg5fDK8WTP/DinIYuq bcN366OmyCsCL90lYKd70NQRcyKxa0YnwONKME+l36BOQm6NuTWIGMKMm AmH9OKHJJNcXNKqjIrPm2HkKO4vMJ5vMdV4u5OEemV+Kh9mFvllkcLBmi CQ8lFnj+NtAklOe/Ma6cccOhZi0Vso4c2jhihunvxQr6Y1/L7bDXAzFfn bB6jRr9uFUYww1qkP0zpn1VLiVaurDzRIrXq4HuTiiaJ5KOx2kHoyqdWZ cx8mKm7abqJ4WnUP+cqNjqYiGvKAFcutZfNDK7qAQJ3dBIb7fiSwXw4aa A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="378928888" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="378928888" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 12:13:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="864506800" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="864506800" Received: from cfl-desktop.iind.intel.com ([10.190.239.20]) by fmsmga002.fm.intel.com with ESMTP; 26 Sep 2023 12:13:51 -0700 From: Uma Shankar To: intel-gfx@lists.freedesktop.org Date: Wed, 27 Sep 2023 00:50:54 +0530 Message-ID: <20230926192054.1359127-1-uma.shankar@intel.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [Intel-gfx] [v3] drm/i915/display: Created exclusive version of 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. Created a version of the function to be used exclusively by i915. Xe will implement it's own respective version. v2: Addressed Jani Nikula's review comments. v3: Dropped a duplicate function (Jani) Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_vga.c | 18 +----------------- drivers/gpu/drm/i915/soc/intel_gmch.c | 14 ++++++++++++++ drivers/gpu/drm/i915/soc/intel_gmch.h | 2 ++ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vga.c b/drivers/gpu/drm/i915/display/intel_vga.c index 286a0bdd28c6..4b98833bfa8c 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