From patchwork Mon Mar 31 02:24:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anusha Srivatsa X-Patchwork-Id: 14033153 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 F0200C36010 for ; Mon, 31 Mar 2025 03:26:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C22310E377; Mon, 31 Mar 2025 03:26:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="cCM0WXV6"; 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 2CBE110E375 for ; Mon, 31 Mar 2025 03:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743391554; 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=EhpkmaQVIlApTG41YTRyXQK7jdbH/Wt/GFmqtV6AMfA=; b=cCM0WXV6cKejvaJNot2pjt1PtnU5wGpcpNuNo8oKtUlWzgdY+i+3DS52lE4BOepUWKqjpw asZqmW2i8m6JzByQKzf4hqy03gY5PVJxl3Q6nXraV0eM/bvhjz3chxSABV+SJN+Utdy6VB yDPSasTUBedy2eUZ4ADKii04QrmK4pg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-482-2ryQG2YgO6qSpCCVuJHKUw-1; Sun, 30 Mar 2025 23:25:51 -0400 X-MC-Unique: 2ryQG2YgO6qSpCCVuJHKUw-1 X-Mimecast-MFC-AGG-ID: 2ryQG2YgO6qSpCCVuJHKUw_1743391549 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C508180AF69; Mon, 31 Mar 2025 03:25:49 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DDE99180174E; Mon, 31 Mar 2025 03:25:46 +0000 (UTC) From: Anusha Srivatsa Date: Sun, 30 Mar 2025 22:24:14 -0400 Subject: [PATCH v3 3/4] drm/panel: deprecate old-style panel allocation MIME-Version: 1.0 Message-Id: <20250330-b4-panel-refcounting-v3-3-0e0d4e4641eb@redhat.com> References: <20250330-b4-panel-refcounting-v3-0-0e0d4e4641eb@redhat.com> In-Reply-To: <20250330-b4-panel-refcounting-v3-0-0e0d4e4641eb@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=1743387855; l=1175; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=Twe1CysgUNTNxjLGPaIExyaLHYsOasZCKyjWS8eMjhA=; b=qPYwBUSgg0/FV4MK0h42rjCekrEsvS/zH6bc8ugbOnDVh6oEkGewYpYksG9LqvTAJnCne1AO/ JaY6xXQXikCAM5NS8iXo9DIGebCxN5vAU2yzgaW5x8t0Vc9Pte4LtUN X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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. Reviewed-by: Luca Ceresoli Reviewed-by: Maxime Ripard Signed-off-by: Anusha Srivatsa --- v3: none v2: make the documentation changes in v1 more precise (Maxime) --- 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) {