From patchwork Thu Jun 19 19:16:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anusha Srivatsa X-Patchwork-Id: 898674 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C18D2451C8 for ; Thu, 19 Jun 2025 19:19:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750360773; cv=none; b=XV3PjFEZrFsJdP6TWZJjmpI67RUQudHqO7Kk0XG6ZN5HWDd+Jp2st/KacnGWt+63q+miijXAVRL0xaFgRWodjHKU2warcMbRTfoQzHYEbQNPy1QEEa5vcl8LyxjykavUp5wioJP/vmio8GTfdU/y7xru8BBiMXBFwA4AyuBvVC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750360773; c=relaxed/simple; bh=iRS4JDl6EQUBjcxx44/6qi/QvUT2ZF2oTiWzHWezAt4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i3bTQ8jhZnucrnkHC9x+PPD/2ssMcU2VmWd3BxEdWs3a4HSxqdTdAybINDasgb8bW4k9DPjDQckvTHSEyS9cC2nAHvmQO8+hiz+v5fl7Evz8kxqDRr2EkFHJyxJ8vHJ8WKGsJKgSHw09ioMefr58u8uy4FkmfSdxz0HrpLDV6zs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=eoaY54/x; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eoaY54/x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1750360771; 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=rAziKvea19DBfEmEBsH3sTM/47CM5Lr0ya4Wowlbr0o=; b=eoaY54/xyWnRjNfCUOw1k9fK1+WwoqFbVIP0u0tdTcwwF6r84JC2sZzHf8XV4N+4ajgNEo AqSGtgxQnB1fz6nuC7KVaifFrBRdvYwXNQKSkRV2XRgHPRNqN0owGUQnRgtt3hpiY0jf7R +/LaYMxlDWDombFq6iQnLPIUUwKJcSI= 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-350-I3gvM841OjyGrIC_ed36Fw-1; Thu, 19 Jun 2025 15:19:28 -0400 X-MC-Unique: I3gvM841OjyGrIC_ed36Fw-1 X-Mimecast-MFC-AGG-ID: I3gvM841OjyGrIC_ed36Fw_1750360764 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 6C8FD195608E; Thu, 19 Jun 2025 19:19:24 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.132]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1D52119560A3; Thu, 19 Jun 2025 19:19:14 +0000 (UTC) From: Anusha Srivatsa Date: Thu, 19 Jun 2025 14:16:04 -0500 Subject: [PATCH v2 12/16] drm/drm_of: Keep up with refcounting Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250619-b4-of_drm_find_panel_part1-v2-12-0df94aecc43d@redhat.com> References: <20250619-b4-of_drm_find_panel_part1-v2-0-0df94aecc43d@redhat.com> In-Reply-To: <20250619-b4-of_drm_find_panel_part1-v2-0-0df94aecc43d@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Inki Dae , Jagan Teki , Marek Szyprowski , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Chen-Yu Tsai , Samuel Holland , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Alim Akhtar , Laurent Pinchart , Tomi Valkeinen , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Biju Das , Tomi Valkeinen , Alain Volmat , Raphael Gallais-Pou , Stefan Agner , Alison Wang , Linus Walleij , Thierry Reding , Mikko Perttunen , Jonathan Hunter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1750360565; l=621; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=iRS4JDl6EQUBjcxx44/6qi/QvUT2ZF2oTiWzHWezAt4=; b=0pLRJzIUGs9YHlyPI+NVCgUAzTznQMZKVUuavJLDK9x4ZHA0X3RXCGzqqZs8qMlVj8zctOtSS wz/QuDyThJLAqRaAt1JuOUJzV+/XRr4Xm0nLjhtcWDbVbRBTh3KVlwy X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Put the panel reference back to keep up with refcounting. Patch added in v2. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/drm_of.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index d0183dea770308e77f05da364ffe087d53f3be36..2bd07de69526781d25236f480d029a7ee2ea483e 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -280,6 +280,8 @@ int drm_of_find_panel_or_bridge(const struct device_node *np, } + drm_panel_put(*panel); + of_node_put(remote); return ret; }