From patchwork Tue Nov 26 16:18:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Imre Deak X-Patchwork-Id: 13886160 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 72DD1D3B9AC for ; Tue, 26 Nov 2024 16:18:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 130AD10E925; Tue, 26 Nov 2024 16:18:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="iLRH+z00"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id D23D810E939; Tue, 26 Nov 2024 16:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732637903; x=1764173903; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Pg58iHEv4vNChp+AxRNWtMz72kHmjxfXTESQx790scA=; b=iLRH+z00O4zGzCS37d89KxywzSW9IAkTvv8iJeWtGvUNT2/EexcE2vVh mQqRESJgzDg3+qD0rtWiA8C0PP40R304FGD4k9YxCQqdkwYc/Hi70Vo2V oHcwalwwnYpT8XHLVq5K+HC3x9MbwnKrqoRghS2kvWgQD6/olqtA2lob6 d+h+Fgxcpjjb8vS7+BkYtB5fYbRGrhCWFKOoxDUaqgjcjAOm8PV3cXG3n oLPSCwDQDb//GKQsAR46piNyqbYC3bYNoD0HMp2Qq3YYTemJEKyrmCLMq A+vdJ3Aje0xeN0qmJ7wf9X1sELxBRRCvzG0BdnFcsDUCZWSkzWZk2IWKc g==; X-CSE-ConnectionGUID: xRk3XK45SUOmSk9d1agjYg== X-CSE-MsgGUID: SJ7Eu1P0TbOhATLbARdVWw== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="32181796" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="32181796" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 08:18:23 -0800 X-CSE-ConnectionGUID: g5VtOv6UQcencYRhvUxiSw== X-CSE-MsgGUID: pgd75W5aRJKJJ/ufamBogQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="91606372" Received: from ideak-desk.fi.intel.com ([10.237.72.78]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 08:18:21 -0800 From: Imre Deak To: intel-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, Rodrigo Vivi , Jani Nikula Subject: [PATCH v2 0/4] drm/dp: Expose only a properly inited connector Date: Tue, 26 Nov 2024 18:18:55 +0200 Message-ID: <20241126161859.1858058-1-imre.deak@intel.com> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 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" This patchset is v2 of [1], without the first patch which is already merged, adding Rodrigo's R-bs and addressing Jani's review comments in patch 1 of this patchset and the newly added patch 4. Cc: Rodrigo Vivi Cc: Jani Nikula [1] https://lore.kernel.org/all/20241115164159.1081675-1-imre.deak@intel.com Imre Deak (4): drm/dp: Add a way to init/add a connector in separate steps drm/i915/dp_mst: Expose a connector to kernel users after it's properly initialized drm/i915/dp_mst: Fix error handling while adding a connector drm/i915/dp_mst: Use intel_connector vs. drm_connector pointer in intel_dp_mst.c drivers/gpu/drm/drm_connector.c | 111 +++++++++-- drivers/gpu/drm/i915/display/intel_dp_mst.c | 210 ++++++++++---------- include/drm/drm_connector.h | 6 + 3 files changed, 197 insertions(+), 130 deletions(-)