From patchwork Thu Mar 27 14:55:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anusha Srivatsa X-Patchwork-Id: 14031214 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 16F49C36010 for ; Thu, 27 Mar 2025 14:56:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A99A710E8FA; Thu, 27 Mar 2025 14:56:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="gP6garJY"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95BD510E8F1 for ; Thu, 27 Mar 2025 14:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743087359; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rJDVt8F5H/p9yTGiLHlDGk02rYV7TueWY9zNYRaidl8=; b=gP6garJYas0xEQBbH7inq+jqGlRFM8XpAmxuVpxuJKVvNfQ17ymzPwf4SkRAqSiuoiTzWi 6jvF8iGQLzdhQMttvNccyX7EfWHUuGdQ8d02aCwb0T5TZR+2+la/rMTQCQdZMjeky4694Q GLMwr2kKRASLRHwilAAJdzrruiUw6z0= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-542-0rZXLvuBO024IfHsALPs4g-1; Thu, 27 Mar 2025 10:55:56 -0400 X-MC-Unique: 0rZXLvuBO024IfHsALPs4g-1 X-Mimecast-MFC-AGG-ID: 0rZXLvuBO024IfHsALPs4g_1743087354 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7E50C1933B50; Thu, 27 Mar 2025 14:55:54 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4384F180A803; Thu, 27 Mar 2025 14:55:52 +0000 (UTC) From: Anusha Srivatsa Date: Thu, 27 Mar 2025 10:55:41 -0400 Subject: [PATCH v2 3/4] drm/panel: deprecate old-style panel allocation MIME-Version: 1.0 Message-Id: <20250327-b4-panel-refcounting-v2-3-b5f5ca551f95@redhat.com> References: <20250327-b4-panel-refcounting-v2-0-b5f5ca551f95@redhat.com> In-Reply-To: <20250327-b4-panel-refcounting-v2-0-b5f5ca551f95@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Luca Ceresoli , Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743087343; l=1111; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=DTLMFbg++BMWEnIPepyoWDQ8F0fwoBTbjBSbA4s7hXM=; b=dr9PeVObTbBys6usrLAjoFfmTQRBf0OvAyNX57GehYEYIugAXZ/L+K2NUNQFRkcVepeBGWyF5 3lAUvTy6LMXAP4sqdBuyUxJ9sUxOPSZ65/Srlf8JGpy2w84idk6EIgC X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Start moving to the new refcounted allocations using the new API devm_drm_panel_alloc(). Deprecate any other allocation. v2: make the documentation changes in v1 more precise (Maxime) Reviewed-by: Luca Ceresoli Signed-off-by: Anusha Srivatsa Reviewed-by: Maxime Ripard --- drivers/gpu/drm/drm_panel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c index 7b17531d85a4dc3031709919564d2e4d8332f748..870bf8d471ee9c5fe65d88acc13661cacd883b9b 100644 --- a/drivers/gpu/drm/drm_panel.c +++ b/drivers/gpu/drm/drm_panel.c @@ -74,8 +74,9 @@ EXPORT_SYMBOL(drm_panel_init); * drm_panel_add - add a panel to the global registry * @panel: panel to add * - * Add a panel to the global registry so that it can be looked up by display - * drivers. + * Add a panel to the global registry so that it can be looked + * up by display drivers. The panel to be added must have been + * allocated by devm_drm_panel_alloc(). */ void drm_panel_add(struct drm_panel *panel) {