From nobody Sun Oct 5 18:19:55 2025 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (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 DC03F1DE4E7; Thu, 31 Jul 2025 15:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753977187; cv=none; b=pQtvEB+d364C2uRfOhQ1M2d0H4/a4KhWNOz4OtabTKFaoCpuENS2/y4sp+Qb3xzbiWwet9IgdueBtuqSikc5xMh6eHmD3Xd026FNqnCmO+xvvKBthWFpGoNH3vwMuAJdAe8yLQ47B9ist2WZtuMcY0ikSrRZ/zgbJsRIjQgtgNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753977187; c=relaxed/simple; bh=i8xOmknQviXTgLQ18uBJa5tsi0mjbgA7Qm8Zy4OKC/M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LpVgNAzAX00Fcvo0KEv+0rk3pL8OtjtDHGLIr7t0fXnxiL3mdAcB1ZtQ8Zm7IZlmC+3q/aQeYx8reppoCo3EuuROjWy/NpKA+V/g2/EF2qBDV8S6VVro2AxtYRDoaDjZhcAYzQndTvcqfIdMZ0pIREI5V5kurlISAqEGScpYBdQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Received: from srv01.abscue.de (localhost [127.0.0.1]) by spamfilter.srv.local (Postfix) with ESMTP id 615671C270E; Thu, 31 Jul 2025 17:52:56 +0200 (CEST) X-Spam-Level: Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cdc9:0:1347:874c:9851:58c6]) by srv01.abscue.de (Postfix) with ESMTPSA id 597D81C2714; Thu, 31 Jul 2025 17:52:54 +0200 (CEST) From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Thu, 31 Jul 2025 17:51:19 +0200 Subject: [PATCH v3 06/16] drm: sprd: remove plane and CRTC destroy callbacks Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250731-ums9230-drm-v3-6-06d4f57c4b08@abscue.de> References: <20250731-ums9230-drm-v3-0-06d4f57c4b08@abscue.de> In-Reply-To: <20250731-ums9230-drm-v3-0-06d4f57c4b08@abscue.de> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Kevin Tang , Liviu Dudau , Russell King , Eric Anholt , Kevin Tang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.2 When the driver allocates planes and CRTCs as managed resources, the destroy callbacks must be NULL and trigger a runtime warning if they are present. Fixes: b07bcf34b6c9 ("drm/sprd: add Unisoc's drm display controller driver") Signed-off-by: Otto Pfl=C3=BCger --- drivers/gpu/drm/sprd/sprd_dpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dp= u.c index a3447622a33cd612e34be038e833222567bdcd2c..0d9eb778794d92418b39f8535d9= 4abde3566de43 100644 --- a/drivers/gpu/drm/sprd/sprd_dpu.c +++ b/drivers/gpu/drm/sprd/sprd_dpu.c @@ -577,7 +577,6 @@ static const struct drm_plane_helper_funcs sprd_plane_h= elper_funcs =3D { static const struct drm_plane_funcs sprd_plane_funcs =3D { .update_plane =3D drm_atomic_helper_update_plane, .disable_plane =3D drm_atomic_helper_disable_plane, - .destroy =3D drm_plane_cleanup, .reset =3D drm_atomic_helper_plane_reset, .atomic_duplicate_state =3D drm_atomic_helper_plane_duplicate_state, .atomic_destroy_state =3D drm_atomic_helper_plane_destroy_state, @@ -704,7 +703,6 @@ static const struct drm_crtc_helper_funcs sprd_crtc_hel= per_funcs =3D { }; =20 static const struct drm_crtc_funcs sprd_crtc_funcs =3D { - .destroy =3D drm_crtc_cleanup, .set_config =3D drm_atomic_helper_set_config, .page_flip =3D drm_atomic_helper_page_flip, .reset =3D drm_atomic_helper_crtc_reset, --=20 2.50.0