Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD60DC56202 for ; Tue, 24 Nov 2020 19:13:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 11546206B5 for ; Tue, 24 Nov 2020 19:13:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11546206B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A47189F61; Tue, 24 Nov 2020 19:13:34 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6726F89F61 for ; Tue, 24 Nov 2020 19:13:33 +0000 (UTC) IronPort-SDR: VSJPdyX9DJRjkxw9JqvhsZZW+fYRpp/i0BULZsn8U57k8tJeyuRk6Fajubx9TaA+/GTr/sIoeJ NhRtn2vJ6ovg== X-IronPort-AV: E=McAfee;i="6000,8403,9815"; a="256710243" X-IronPort-AV: E=Sophos;i="5.78,366,1599548400"; d="scan'208";a="256710243" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 11:13:32 -0800 IronPort-SDR: JmsYtqhKllNXyJcfGopAN6dblK9h49op+SPTnhMxSwb3YYrr8onLX9azJImbWhbwxMkBT4JO+R KApFpLQPyrbg== X-IronPort-AV: E=Sophos;i="5.78,366,1599548400"; d="scan'208";a="312676215" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.202]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 11:13:32 -0800 From: Lucas De Marchi To: intel-gfx@lists.freedesktop.org Date: Tue, 24 Nov 2020 11:13:13 -0800 Message-Id: <20201124191316.1660749-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/3] Move display initialization 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" This reduces the surface from which display/ is called by the other parts of the driver, starting with the init. For that new intel_display_driver_{register,unregister} functions are created that will deal with the HAS_DISPLAY check. There are more changes needed, but I'm sending this early for feedback and CI. Lucas De Marchi (3): drm/i915: stop registering if drm_dev_register() fails drm/i915: group display-related register calls drm/i915/display: move register functions to display/ drivers/gpu/drm/i915/display/intel_display.c | 53 ++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 3 ++ drivers/gpu/drm/i915/i915_drv.c | 52 ++++--------------- 3 files changed, 65 insertions(+), 43 deletions(-) -- 2.29.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx