From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 D58AC192D97 for ; Wed, 2 Apr 2025 16:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611145; cv=none; b=Kwv0UuZ5At0QKIJ0XKR/VpPbR/fgp8TGdI+Cgea3AVWQGc+lPX4KDFsYO9Qas9aOElot9vv6Vk6lEjciNhaL0j1SXf027YpKOxg98kD1Wya8qgWxanIuRkR9n6yCu638Yut6XD3xeNnXf9FVAcEPeTQD/WslfufdEH1LF4q5ax8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611145; c=relaxed/simple; bh=04jQI8TxpdD5Tum/MEA8z6ODUtcor3J3PZiYBmTLMn4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N89L72vjw4S14CHLs4SPLGX+ZHIvIrw+fccR/B3IjcqAXFx2JNrVaVPY4RFCdr9hCd8bL+XrFiuEwN2Gm6y2R6SeKKZ//EbmJM6lxvNK6oRkDyqxmrRPI/4/YrT2Xhi39wUoa7ESUQXzgb4l38bMMfiG6+J37LnyD/id0N2/sgU= 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=PYNZ+NGQ; arc=none smtp.client-ip=170.10.129.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="PYNZ+NGQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611142; 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=6R1AWPeoxjvGK0dBUmPi4DefXooZojzK9sWIoYPSoLU=; b=PYNZ+NGQlMrGwRp1r8YF60m/ayscuOZ+sGj7VlsNzUyNVEOr6/UBUr0qKvKrd3PGnfVu2J kI4EWAseSQEF86u3xHUcdf7z78zIxyJTBKe9/aviBCDMPBc8P0kgwIlteNttVib54qhcfg uOpKFXQ2FGZLH4U+VvjlWrb6omOzUOo= Received: from mx-prod-mc-03.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-395--JBLsUz2NZ--O-tmO9XBtQ-1; Wed, 02 Apr 2025 12:25:39 -0400 X-MC-Unique: -JBLsUz2NZ--O-tmO9XBtQ-1 X-Mimecast-MFC-AGG-ID: -JBLsUz2NZ--O-tmO9XBtQ_1743611137 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 86D451955BC6; Wed, 2 Apr 2025 16:25:35 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 89CB6192C7C3; Wed, 2 Apr 2025 16:25:30 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:39 -0400 Subject: [PATCH 01/30] panel/panel-elida-kd35t133: Refcounted allocation 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: <20250402-b4-drm_panel_mass_convert_part2-v1-1-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1389; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=04jQI8TxpdD5Tum/MEA8z6ODUtcor3J3PZiYBmTLMn4=; b=kMUw0kI7xJYVRW5c5Y7+UUXD5KLiK5WBogY47b+d898uYCoTTx2pyjklSE+hJT1ICypx09xpe rUdJYFWQHpqBKDB99V+TW1ms5nQUWf4rdab8ckF5ji3aviCq5WnwefD X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm= /panel/panel-elida-kd35t133.c index b904d54374449055b16df0c9abf132d2c944a6ff..1f177834d62986679830b15b960= fb7299ca65cfa 100644 --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c @@ -206,9 +206,10 @@ static int kd35t133_probe(struct mipi_dsi_device *dsi) struct kd35t133 *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct kd35t133, panel, + &kd35t133_funcs, DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->reset_gpio =3D devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset_gpio)) { @@ -248,9 +249,6 @@ static int kd35t133_probe(struct mipi_dsi_device *dsi) MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET | MIPI_DSI_CLOCK_NON_CONTINUOUS; =20 - drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 63E57195985 for ; Wed, 2 Apr 2025 16:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611149; cv=none; b=oOCBCwNAqwld5pdn/PmFvdT7FBRmSlUhEftkS8GE5cyisMnT3s15WO++QwiTlbJA/gCDOSwQUED/oxibScd2mNulKC54KkbZeOlq88X1de+Z4VOfaQFHAfmcW10vqkdOisdCnVhrNYN5nXHTyG7TP1WbhTlMAB5nuUZLsYK2Xnk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611149; c=relaxed/simple; bh=Kj5htEwxiXpXxigIdfhh9sERHvrEfKIkbVPMo39fcNY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XC72H00RPkzocxvOw4Loucf4YzvjtZDxcD8TXeSHZRSgKtH2jdrkb5MDOPtNI0REEoJKKXmpS0uB0KYDvFTs5Yf3m/7oc6Pi/DIMCcwomhNBoYOnKD0i9NgUp4cQE6GkjYLuxj/aizs0mbkzsvqhTHqlQ5zs0wkboxZPkfWGmC4= 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=OwosS3Fh; arc=none smtp.client-ip=170.10.129.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="OwosS3Fh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611147; 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=tRacD+aABuwbDVcAYKGGC76WPn7Bj53bdHhpMF+q1go=; b=OwosS3FhigFijg2r7TVQ/GQ4W5kelGMK85t1H2ajXxbh04cB+z8gziEUzAiPJTw4S2MmZo 1tXUVjUafy2pDSkKLujbgEZwRf1TFz35okc9YhLTFgEm4Be/HiL9mlP5vyYr5akb4f/Jwg KynmFrFMkwz89K9FEVZiAW6Dw9rPt6U= Received: from mx-prod-mc-01.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-271-cU5m9nhuMWC6su1v1cCFgA-1; Wed, 02 Apr 2025 12:25:43 -0400 X-MC-Unique: cU5m9nhuMWC6su1v1cCFgA-1 X-Mimecast-MFC-AGG-ID: cU5m9nhuMWC6su1v1cCFgA_1743611140 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 423E31956050; Wed, 2 Apr 2025 16:25:40 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 36E44192C7D7; Wed, 2 Apr 2025 16:25:35 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:40 -0400 Subject: [PATCH 02/30] panel/elida-kd35t133: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-2-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1410; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=Kj5htEwxiXpXxigIdfhh9sERHvrEfKIkbVPMo39fcNY=; b=WHIeluuPy5zZPCtBMBf6mgdR2xrDQB3ajJPce8kztX3sntS3nJoxmfs+vT4MnU2jaxG3DIlos OTXlFJruCkmChSptn97VExbvZXUrNQdnQdoAE8h7Ziu+rnKK11XE5qF X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c b/drivers/gp= u/drm/panel/panel-feixin-k101-im2ba02.c index 986e3e192881b50ad3cdbbbc41a2adbf77e8791a..6225501cb174960b38b7672c6ef= 53fbc98ab4acf 100644 --- a/drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +++ b/drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c @@ -443,9 +443,11 @@ static int k101_im2ba02_dsi_probe(struct mipi_dsi_devi= ce *dsi) unsigned int i; int ret; =20 - ctx =3D devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(&dsi->dev, struct k101_im2ba02, panel, + &k101_im2ba02_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 mipi_dsi_set_drvdata(dsi, ctx); ctx->dsi =3D dsi; @@ -463,9 +465,6 @@ static int k101_im2ba02_dsi_probe(struct mipi_dsi_devic= e *dsi) return dev_err_probe(&dsi->dev, PTR_ERR(ctx->reset), "Couldn't get our reset GPIO\n"); =20 - drm_panel_init(&ctx->panel, &dsi->dev, &k101_im2ba02_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 843481925A0 for ; Wed, 2 Apr 2025 16:25:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611155; cv=none; b=PfE0GCMhEWoFvo/JiDLK7GKHF/COL/6s23gDQvj4zj6IoYJWUICHuqlPJPlWSTY7eDjj03xWtD56YKl98BbyArBH8DGoy1KYSldKXRxqJSwl4q/rod0bypu3n4b3WM4SRr9s+VxpVxSA62Nc7FEmfo3LYqff9KaZ8Q6Iy0sDI5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611155; c=relaxed/simple; bh=7ug0WUcbfVp4DvN+9KLPcqXYIwBnh4S1f7qzzL/gWAU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pVEvQZ3zgkDstls2ujqIYWnKFLQO7CnoKvdTLzhWznGnJDFf4RJAMCq7cNrLXMHRd6fYwUIFrIFNKopV8eAHL6MNsj9cU1bfoj6x+scSW5P8LpuZ3K5cvUGwfRTn6PWPKDiuIcl+S916grnEIxgMzWtka4d+jMo9eRqdPLx0BvI= 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=D4TI6J6R; arc=none smtp.client-ip=170.10.129.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="D4TI6J6R" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611152; 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=nRO4JfKR+w4MI1ioV5AUsYB8Hjn3bTaDSAAz3+ZbYyQ=; b=D4TI6J6RiMVp/fO1VAV3KunMWci6I6+dtU6wuFuiktM90slCRJkwx+wttackBGSt6FxtnR Nk1o3U0m/fMVm6MgeWopADKSEGqlwyQmcTQRFpsmAZ4Zv42U16s5Ftdup5ODvOVQLTlj4e TJxljjFjCU4VIL1BWTGJHC9Y2Exvspo= Received: from mx-prod-mc-04.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-641-1pEbILyCO9CVlQs4Q5s3yA-1; Wed, 02 Apr 2025 12:25:48 -0400 X-MC-Unique: 1pEbILyCO9CVlQs4Q5s3yA-1 X-Mimecast-MFC-AGG-ID: 1pEbILyCO9CVlQs4Q5s3yA_1743611146 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 148FA1955DC6; Wed, 2 Apr 2025 16:25:45 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8CBA2195609D; Wed, 2 Apr 2025 16:25:40 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:41 -0400 Subject: [PATCH 03/30] panel/fy07024di26a30d: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-3-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1282; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=7ug0WUcbfVp4DvN+9KLPcqXYIwBnh4S1f7qzzL/gWAU=; b=DH1zb44yvwnM2auZ3yFbW41iueqWPAqF0CEpvJD+SP3JGaWLg4mYPNxNwa07eO6GDyV7OV0mB i3TA3hKpmBwBuQfxXWabITHKsVsl6W+ZP5QpwmgtDisbKpvPX3ieDQX X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c b/driver= s/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c index 48e3acaecdf33de5b82c3eea1c44f0409ebf5f8f..4f8d6d8c07e4d7ac33c90403b92= ea1286ebd1a77 100644 --- a/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +++ b/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c @@ -189,16 +189,14 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *= dsi) struct feiyang *ctx; int ret; =20 - ctx =3D devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(&dsi->dev, struct feiyang, panel, + &feiyang_funcs, DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 mipi_dsi_set_drvdata(dsi, ctx); ctx->dsi =3D dsi; =20 - drm_panel_init(&ctx->panel, &dsi->dev, &feiyang_funcs, - DRM_MODE_CONNECTOR_DSI); - ctx->dvdd =3D devm_regulator_get(&dsi->dev, "dvdd"); if (IS_ERR(ctx->dvdd)) return dev_err_probe(&dsi->dev, PTR_ERR(ctx->dvdd), --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 306531925A0 for ; Wed, 2 Apr 2025 16:25:57 +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=1743611159; cv=none; b=IJASflg2n1RAJj8YFof6V0Qq+Axu0JblnKeLohHiOTwSLIdSxT04Bnh5IAsZ4UCfyzi+7cR7P3yPka8Xi3ZEwEzsNd0+33f3In8/KzTlieA3O31PUpIuGdNR5gp7WldxRDc2f7SLIgmUPlGW1KJqblxddI8dQ7dB6d4GKFN3sO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611159; c=relaxed/simple; bh=MCqbDMbfqlMEM3tpfz11sdt3VQMAwyZM3kTPP0ahC+8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tkWyhOBNSNt0bouQn3CSn8cGmQNl2Rm/TsPVmUj8SxBZPN+kdwvYkFOm11pA8fRdv8xRHg873vPFxrtBshwVhlWed5sSLhp+B4SEBHVjj35a+M23zxEVc6y40Em9MV7vQ5Dr8v95b6qC51eKuZy4zna0190J0ltsLhCd9BIQ8wY= 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=atX7M5N1; 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="atX7M5N1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611157; 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=875RsKmiCeapt6y3l+1tJkJZJok+TPLY4UWwWxvYYQk=; b=atX7M5N1fH6XPG3MJII1XSdwC9j0ZszLqdlsIfsphOXXp17BV+TTXB6O3GdVUxau+PmDYU fyiBK00S/uF8gUjtpJw12M+WCUX5yKIWTfE27ZPA9WT3EHZtXUQbm0hSSY85iO0zlqv6M3 M/HAxZnLJ8MSxgrHzJsb4nzXGfGYBIQ= Received: from mx-prod-mc-03.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-226-94nyARfBMOOxryR3b2zEPg-1; Wed, 02 Apr 2025 12:25:52 -0400 X-MC-Unique: 94nyARfBMOOxryR3b2zEPg-1 X-Mimecast-MFC-AGG-ID: 94nyARfBMOOxryR3b2zEPg_1743611150 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C280E1955BC1; Wed, 2 Apr 2025 16:25:49 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B2216192C7C3; Wed, 2 Apr 2025 16:25:45 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:42 -0400 Subject: [PATCH 04/30] panel/himax-hx83112a: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-4-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1369; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=MCqbDMbfqlMEM3tpfz11sdt3VQMAwyZM3kTPP0ahC+8=; b=pk7rmlONuFqcuXaDIqVehbVguBRUV5idlEGDEEJ9sN5m1z1WZEfCVqp2rlBladlGITdS1eMEe Zz3imde/e07DxrSSrQcC68thjZSqeyxM48FfszOqTAyK/tKd8YBmxMI X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-himax-hx83112a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-himax-hx83112a.c b/drivers/gpu/drm= /panel/panel-himax-hx83112a.c index 47bce087e3393345fbde8d2fb4d26a955988c395..142cb1cc067addc5900fd5b25d3= 2298b32d7bb05 100644 --- a/drivers/gpu/drm/panel/panel-himax-hx83112a.c +++ b/drivers/gpu/drm/panel/panel-himax-hx83112a.c @@ -269,9 +269,11 @@ static int hx83112a_probe(struct mipi_dsi_device *dsi) struct hx83112a_panel *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct hx83112a_panel, panel, + &hx83112a_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->supplies[0].supply =3D "vdd1"; ctx->supplies[1].supply =3D "vsn"; @@ -295,8 +297,6 @@ static int hx83112a_probe(struct mipi_dsi_device *dsi) MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_CLOCK_NON_CONTINUOUS; =20 - drm_panel_init(&ctx->panel, dev, &hx83112a_panel_funcs, - DRM_MODE_CONNECTOR_DSI); ctx->panel.prepare_prev_first =3D true; =20 ret =3D drm_panel_of_backlight(&ctx->panel); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 5412E190462 for ; Wed, 2 Apr 2025 16:26:02 +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=1743611165; cv=none; b=BeIesU1gNLirKsfwuBS9rogskLuEAvWjmnZb5QTj+Vu6dmYDT+JBo27p3Q7WcU96MOmrr+O/M1NTUgCRWeG0F480V8NqSEiLrVhmgox4H1z08C3UPa9QEpa1wylZTW9RYKuUiDYj6FdBT53QxghdpnhC/stuboWhffui45KHFks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611165; c=relaxed/simple; bh=iba0hhsehOqH4Fs29yrW1D1gZNzo6TgJrylYkgV73w0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tQqcCOO1RUUcbajz6wyuEnoh4MGZKK2mg0tjtcwm5vaobqa9IdQipLdSb4jA1oCLqnplvs5UMmxNmkkO/kA5jSdcmzjTm34JX5k96c+QEMBgApO0TdZD1JHR2JZ7GH1fMtqZ6H/1fGFVGsQtIngtlk1oshW1zbZd2EU4gBTLioM= 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=R2m96E38; 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="R2m96E38" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611161; 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=XI0Eq14BuE4/8eJYlUv7+De6XInkB4iwHReVJBrWt3Y=; b=R2m96E38pyK/fuolUqRZGOZ8HRaJJXKVrFBabtYNgN1mZ9XPB8++SBnEMSe7ev4SA1qjoB 96AFwvS4JQ8vfz2zTEsCx/UdfxxUFoHuofxPm7+aJaI3/LC2d7n+ewee5k1sG0FYQwmxdp nKthmAVVepMskAfZ+1HzjQn3HugOgzs= Received: from mx-prod-mc-06.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-608-d38nRIqfPYKkJ8OiA63XOQ-1; Wed, 02 Apr 2025 12:25:58 -0400 X-MC-Unique: d38nRIqfPYKkJ8OiA63XOQ-1 X-Mimecast-MFC-AGG-ID: d38nRIqfPYKkJ8OiA63XOQ_1743611154 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 64345180025C; Wed, 2 Apr 2025 16:25:54 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 197F9195609D; Wed, 2 Apr 2025 16:25:49 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:43 -0400 Subject: [PATCH 05/30] panel/himax-hx8394: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-5-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1385; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=iba0hhsehOqH4Fs29yrW1D1gZNzo6TgJrylYkgV73w0=; b=kIYzJHOq9QAeH1oHJ+EM7ZgfkF92nx6pPlK746fu/eJovqFS/AcPAjGuK/0qdZmwvu5+H0i5D gNoETEmYPHGAdn0RQDYvoz7LAq28g+iDqFRiMU/BgUUwWm/7C8427KV X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-himax-hx8394.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/p= anel/panel-himax-hx8394.c index ff994bf0e3cc1af134f40ac3b1712633ae801caf..0e3bf4ba91890e5a859288cb6a9= 737ed77a343b3 100644 --- a/drivers/gpu/drm/panel/panel-himax-hx8394.c +++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c @@ -611,9 +611,11 @@ static int hx8394_probe(struct mipi_dsi_device *dsi) struct hx8394 *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct hx8394, panel, + &hx8394_drm_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->reset_gpio =3D devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(ctx->reset_gpio)) @@ -645,9 +647,6 @@ static int hx8394_probe(struct mipi_dsi_device *dsi) return dev_err_probe(dev, PTR_ERR(ctx->iovcc), "Failed to request iovcc regulator\n"); =20 - drm_panel_init(&ctx->panel, dev, &hx8394_drm_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 EF27019F436 for ; Wed, 2 Apr 2025 16:26:06 +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=1743611168; cv=none; b=A35jywXk//kiNM+q70saxyC5C6A8AVup0Zqb1BPhki/5xY060bTUmysNpoDnulcTIC5k8tAns1G+DHrKXsMNPBZkuXGzqZeUUua4GOvdHXYpX5ixDjLeAmMsT2WNyErzN0ak/YHEsRVYpJ6NRTVFWbs1MT5Gs4arTDArv4MMe6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611168; c=relaxed/simple; bh=ifzGrcMKMj7wX1OyLciEf8ylTTGawzrXiL8rUDJD9wQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BcUGcn0OfEBKal5X7nl7UJl2x+5k8+88nfFjVJhULu4VP3UMeHSeqayGMwMH/Ex8i0BLgWX6C42207Nj7wbpRVuwxXyFcRan4/NRCypWGKcX1yZQKBfjaWVy8SEvzDCGJhWq0iycaIQT5bkZ6hoTDun9GVh/JtpKEzoLjdD+6Hk= 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=dITTDGCq; 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="dITTDGCq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611165; 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=B5HhELYg0XvErZYc/nFXcIjX10vFyUSg5D9sb32us0Y=; b=dITTDGCqOwUKR5yDOexpAKuk8akbL5ZBIr8m4zs2axylQ5PUpUo4Ex+KLbiwhaHYDA9n7m lRFyiu4CSo/SGNBddRaCzy3sDeev2UutWUGuJPfR9RVcoGr8K+dz8kW6/OP+/lfS26C0Hl P9vYyJxa7TePjatEFLdY4yVAKR+sUY8= Received: from mx-prod-mc-06.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-688-MTgbCFWUPySGF-MAE_zhYw-1; Wed, 02 Apr 2025 12:26:01 -0400 X-MC-Unique: MTgbCFWUPySGF-MAE_zhYw-1 X-Mimecast-MFC-AGG-ID: MTgbCFWUPySGF-MAE_zhYw_1743611159 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A5B6F1800260; Wed, 2 Apr 2025 16:25:58 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B117F192C7C3; Wed, 2 Apr 2025 16:25:54 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:44 -0400 Subject: [PATCH 06/30] panel/ilitek-ili9322: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-6-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1213; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=ifzGrcMKMj7wX1OyLciEf8ylTTGawzrXiL8rUDJD9wQ=; b=Y0sNfxjJIlCXDsXB/JE0j1UxSN/DVWRStNCc1qKxtLLu/UzY/c23rIlMuXQuLmeCOS7I5KxZN VmU+lEaBaV3C/ZhK5Pfx76wBgBXgcU1UPbYaSHTXIgTlNENYTIiXfbF X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/drivers/gpu/drm= /panel/panel-ilitek-ili9322.c index 94b7dfef3b5e280f02f3127e965e418b6d497c7f..6ed544a83bdd5cf1547847eba39= e88cdc5b1e914 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c @@ -722,9 +722,10 @@ static int ili9322_probe(struct spi_device *spi) int ret; int i; =20 - ili =3D devm_kzalloc(dev, sizeof(struct ili9322), GFP_KERNEL); - if (!ili) - return -ENOMEM; + ili =3D devm_drm_panel_alloc(dev, struct ili9322, panel, + &ili9322_drm_funcs, DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(ili)) + return PTR_ERR(ili); =20 spi_set_drvdata(spi, ili); =20 @@ -883,9 +884,6 @@ static int ili9322_probe(struct spi_device *spi) ili->input =3D ili->conf->input; } =20 - drm_panel_init(&ili->panel, dev, &ili9322_drm_funcs, - DRM_MODE_CONNECTOR_DPI); - drm_panel_add(&ili->panel); =20 return 0; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 F1D4F1A304A for ; Wed, 2 Apr 2025 16:26:10 +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=1743611172; cv=none; b=PRWQtNsV0kQ7ZWwEPY16B3TkxTrVys9w5Fec/9IUd5+bRwFBOrSYLOdYdi4gALBNJBicUZ1JaOtfDvwuxg0WMpQHbbmZMKusCTvl7LwFkD1SUGwreh++xD/ni/SHy6JhRNz+2JaNDyJXq7XPHEi5G25raz8AyYq1UOjJDOMJyFI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611172; c=relaxed/simple; bh=DsNJmc5rLHBXzfemEN6C/4jFyAPvFFHR9UkjydvcKiw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u+kT7UeT6RddUY84AFj2uCU7rAOYsS2Lvn2QBVR80QUjeT0hu4OohUNe2buazRXEuQT/SxV+UmN0ulJipURDlaWC3q9aEX3LdbyAhs5r64rKcWEnKzEVPjkzoMtIHp/57fm2m+ZXWDqnmZvGMgB7ne64F61Klmz/rxvcmGdCh3g= 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=cheHjdJc; 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="cheHjdJc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611169; 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=K90Nh+iYfk2CkiujMPyuv28d4U/9+M3yVThyT1lglvE=; b=cheHjdJcES9PA9dKBKZkmaqAZsFzLvIVRiGPLTAaONi2RiyVk0cSIXDYZ6eTgvTd/rpC+H NV+0/NXV2vfd6XfiLqbhZNhkaZhdhy0iNZRjfkX6i9kPzlhVr0v1LtmFWs7CCDvEeB4AkO f0VVx1P7vSdMYtDXbsNfeGGV22SrR/E= Received: from mx-prod-mc-06.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-126-weIi507qMvauQMS3ajmblg-1; Wed, 02 Apr 2025 12:26:06 -0400 X-MC-Unique: weIi507qMvauQMS3ajmblg-1 X-Mimecast-MFC-AGG-ID: weIi507qMvauQMS3ajmblg_1743611164 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 353F0180025E; Wed, 2 Apr 2025 16:26:03 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F1912192C7C6; Wed, 2 Apr 2025 16:25:58 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:45 -0400 Subject: [PATCH 07/30] panel/ilitek-ili9341: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-7-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1047; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=DsNJmc5rLHBXzfemEN6C/4jFyAPvFFHR9UkjydvcKiw=; b=LO87nh+uE7jI7PF+KAHPAyO86Y0IxVn7AbUNU2ouB8zNmWRde2S/m3oIdNjmgXAcKsZkYKtH5 5FRAImoqzBiB38mnr/eyrb3lKgit2IDEKWSD8xRiJiB+YE7X3h8uOIe X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm= /panel/panel-ilitek-ili9341.c index ff39f5dd4097e8da0a0e16c50c5bfd45c078d91c..d87b7eefe9beedd290fb59065b3= 89b3315c85720 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c @@ -490,9 +490,11 @@ static int ili9341_dpi_probe(struct spi_device *spi, s= truct gpio_desc *dc, struct ili9341 *ili; int ret; =20 - ili =3D devm_kzalloc(dev, sizeof(struct ili9341), GFP_KERNEL); - if (!ili) - return -ENOMEM; + ili =3D devm_drm_panel_alloc(dev, struct ili9341, panel, + &ili9341_dpi_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(ili)) + return PTR_ERR(ili); =20 ili->dbi =3D devm_kzalloc(dev, sizeof(struct mipi_dbi), GFP_KERNEL); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 EEB3419993B for ; Wed, 2 Apr 2025 16:26:12 +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=1743611174; cv=none; b=QdcrymDKHixPQPet0c8oqOlkSj+8Y+etj9wG1I/ajqVysEHh2GP6DOgYsYUooy0AyfrFnvBbzClNY253XPq2T6KJFK+QlyxLk4UhHtcNuljxvNTgcp966QNE9Qc7544CwGbp+j74IhzOdWNhApipsID/wmp4nzftGBkUALn8I6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611174; c=relaxed/simple; bh=RqGutPaeOBSCsEcTrudyJmazu4iScvgeh/9UPC+Uuv4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CXoDYcLS8pkU5e83XgEFKLYkLsXSeWzqM6TSTXb5lzHNfWDGsLNFZQRkIjDVPfUdV+Viw+mWcNHd42zgHZsgZz6KhLpQN9zQ6s4gMd7uyV03DNNAe7R7ds6i/2hisex8ppujcvMBQqGD/CJ5ydHN/7vhLs71b4Gp7e181RV+1yI= 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=WswLpmnZ; 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="WswLpmnZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611171; 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=YrgiZ49sQunTmrqMKdld9hch4IKkKrvZflApmSxvjSA=; b=WswLpmnZcE47UDyjlAveLvDGDd7+rqMwUh8X7lE3ZKHJUmrl3hYncylFFOA+V1WFgmeJMK 8Tyh0H401H7C8qixW0kIIViTnjWDXwPBjX/QWF9rcpPQ+RZpj2jKD8BwqJQBoLgjHdX+jm zZ8NrNFAnu5e/niK0wUrp3uCUURhcNM= 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-530-uDGuDDr9OG60jZZ-aeahkg-1; Wed, 02 Apr 2025 12:26:10 -0400 X-MC-Unique: uDGuDDr9OG60jZZ-aeahkg-1 X-Mimecast-MFC-AGG-ID: uDGuDDr9OG60jZZ-aeahkg_1743611167 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 C3879180AF56; Wed, 2 Apr 2025 16:26:07 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 60C70195609D; Wed, 2 Apr 2025 16:26:03 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:46 -0400 Subject: [PATCH 08/30] panel/panel-ili9805: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-8-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1423; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=RqGutPaeOBSCsEcTrudyJmazu4iScvgeh/9UPC+Uuv4=; b=kevIf1b2kquK7pRf6kHLhhfV3E93ZOplX4boa0iFlGaABOmFaBpXpFVaIWG36qrFhyaRNbw+4 ZYDaExJX1/zAOYUNxTyPy6quR/0KeoKNLH7knMOrCN2uEEe8My74MOn X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Start using the new helper that does the refcounted allocations Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9805.c b/drivers/gpu/drm= /panel/panel-ilitek-ili9805.c index 1cbc25758bd2bc0ed1ea64eed61edc7cdda68f9e..bda585e00cf980575b8b858149f= a39fbaf2182df 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9805.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c @@ -307,9 +307,12 @@ static int ili9805_dsi_probe(struct mipi_dsi_device *d= si) struct ili9805 *ctx; int ret; =20 - ctx =3D devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct ili9805, panel, + &ili9805_funcs, + DRM_MODE_CONNECTOR_DSI) + if (IS_ERR(ctx)) + return PTR_ERR(ctx); + mipi_dsi_set_drvdata(dsi, ctx); ctx->dsi =3D dsi; ctx->desc =3D of_device_get_match_data(&dsi->dev); @@ -320,9 +323,6 @@ static int ili9805_dsi_probe(struct mipi_dsi_device *ds= i) MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_NO_EOT_PACKET; dsi->lanes =3D 2; =20 - drm_panel_init(&ctx->panel, &dsi->dev, &ili9805_funcs, - DRM_MODE_CONNECTOR_DSI); - ctx->dvdd =3D devm_regulator_get(&dsi->dev, "dvdd"); if (IS_ERR(ctx->dvdd)) return PTR_ERR(ctx->dvdd); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 2F75818B484 for ; Wed, 2 Apr 2025 16:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611180; cv=none; b=N7iTQ7aof3e12cUfMpfHS8p36bu6aMg1YtxKwkfsxg2eisNykfw8QR1ok2CKTh45oioWB+9lQu200lIVhCO69tzZ15N4DzCOFRhz1g90vTaLLMJccYBPlnsequ/f9PjrZHCAbJCPGj6rHl9CWspHKCi9nqnWJdfR/jku0atd7oo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611180; c=relaxed/simple; bh=4eWfrEodut6F3HYcks94PehYeotYmzpncyJ8elUkjEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RV0h+miag7EdcmvuhIKIdcZs94BXSXP5ImfZSUe5Bzal6N5rnjTfVtR/kywD3QhC5RoHoM3Dn+Jj/0EtoU2r4Wt91etAPX2oQTs5DmKRYBeoMA0+1EKXos2WK9ouI3FFfgBxvAl8sasfgnagHwAmg5B+OvPjhVk1PVUmUSorOTc= 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=RgWyJDMs; arc=none smtp.client-ip=170.10.129.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="RgWyJDMs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611177; 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=37VJonNfJWu5HWSE9xB/hB14m3+MT+BSZYj2Q28pWug=; b=RgWyJDMsDlneD9LVUmyj1me42LdMxXm0L2TieuXv+M8l4KQn4h7VzM+mVhBXaefCieI/lO O96zXRs3nyHX5JWiz1RcQlkHinOejXlGJxRINPJnqY2DouB+GtSRxJZO42FNyo90v9NcM3 Pz+pp3OYmHhSh0BIODIctenIp7RBYZI= Received: from mx-prod-mc-02.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-691-75qWkN20NeGGP3qm19R-aw-1; Wed, 02 Apr 2025 12:26:14 -0400 X-MC-Unique: 75qWkN20NeGGP3qm19R-aw-1 X-Mimecast-MFC-AGG-ID: 75qWkN20NeGGP3qm19R-aw_1743611172 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2491819560AD; Wed, 2 Apr 2025 16:26:12 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1A8D8195609D; Wed, 2 Apr 2025 16:26:07 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:47 -0400 Subject: [PATCH 09/30] panel/ilitek-ili9806e: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-9-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1400; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=4eWfrEodut6F3HYcks94PehYeotYmzpncyJ8elUkjEw=; b=YqEbBCKbd8byspai9Du4OLK3t0CQUsjyY328wtuCruZVQ/XhQCqTWDKjMVPqGrD8lj3M1Up1+ wZecwodoD0iB85UP0Svq2cguCWH5FCRfmOJzIGxBdgIgOBqHWJwrkg3 X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c b/drivers/gpu/dr= m/panel/panel-ilitek-ili9806e.c index a3c79ad99d0bd03f37442c53d4d9dd0e32012ac7..18aa6222b0c557f4ca703922a97= 28f74ad2848dc 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c @@ -166,9 +166,10 @@ static int ili9806e_dsi_probe(struct mipi_dsi_device *= dsi) struct ili9806e_panel *ctx; int i, ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct ili9806e_panel, panel, &ili9806e= _funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->desc =3D device_get_match_data(dev); =20 @@ -192,9 +193,6 @@ static int ili9806e_dsi_probe(struct mipi_dsi_device *d= si) dsi->format =3D ctx->desc->format; dsi->lanes =3D ctx->desc->lanes; =20 - drm_panel_init(&ctx->panel, dev, &ili9806e_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D of_drm_get_panel_orientation(dev->of_node, &ctx->orientation); if (ret) return dev_err_probe(dev, ret, "Failed to get orientation\n"); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 3E6C71C7014 for ; Wed, 2 Apr 2025 16:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611184; cv=none; b=P9yUR470diaQwQuwKfN3yjaowil4F7Ui3ccTL/dP/RHfioUajQBtu8eQByeSq8WkSOgbKA/rCzGfiRw2PZqKavMfnbCEFXriDn7QD+PbQH8drxtzyVmPT+8TO9NwYni4SX2Or6ju6gwJPS71E4l5x40SAAsD3qTJRIYjeBA0SAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611184; c=relaxed/simple; bh=4NECJWEGNcCzkUexn1VzkV2SkLcEjReKiF0klndVbl8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kGiBfbHVS2McRqVZwUeRObbSQy1jx2svdWlupElPy3YC7q5R+d3C0uESdq1y2ThzqH91/ju0jv+AMuLaIzhawlwwEgpI7OklB2Q8BJxrDwRL3A3R6uTGuj6r4OC1NMvhaijX2pEuk+chtq4TtHzktSzRi9ZQIZu00xAHJEjSlOk= 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=NfaKw64A; arc=none smtp.client-ip=170.10.129.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="NfaKw64A" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611182; 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=lkk6+P8kz4b/Qa31/Ssl4swVSnk002BGAZpApGFTvXM=; b=NfaKw64AUCR0Jh9W7qF5HtSQQr3opoSOjXLpAeSPZJ3b7juYmOMoRAl5ayewojFxTerpoU 10wU1O5SxOfIr6cT8w++Eo0b1KomL/IBFlCY2Y1ip+8baYrf0qjRGLNDsX5+kKjNkBZpJI x5oKbsr8ceY/cgNDJxVjwp5xazp0Sco= 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-441-Dr0IbInTN0qayJUWiB7LhA-1; Wed, 02 Apr 2025 12:26:19 -0400 X-MC-Unique: Dr0IbInTN0qayJUWiB7LhA-1 X-Mimecast-MFC-AGG-ID: Dr0IbInTN0qayJUWiB7LhA_1743611176 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 62B8C1801A00; Wed, 2 Apr 2025 16:26:16 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7296C195609D; Wed, 2 Apr 2025 16:26:12 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:48 -0400 Subject: [PATCH 10/30] panel/ilitek-ili9881c: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-10-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1306; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=4NECJWEGNcCzkUexn1VzkV2SkLcEjReKiF0klndVbl8=; b=p+sd4NMCJM/MyUF25c/ggqMXE3ykI0Vz9CJApZGMFozILEr0KZqA9bHVXk7Ivbl+glk5BqoNK IVmAUzAf3MSDi3OQMPt5Ep8IvFMY9sUXqNvCcoKXIUN+SVlVPyoQIQ+ X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/dr= m/panel/panel-ilitek-ili9881c.c index 28cd7560e5db1d5734b10babdb4e4e553c6e07d0..aa4192def09353afa40c1981d0b= 105064fe95b02 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -1506,16 +1506,15 @@ static int ili9881c_dsi_probe(struct mipi_dsi_devic= e *dsi) struct ili9881c *ctx; int ret; =20 - ctx =3D devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(&dsi->dev, struct ili9881c, panel, &ili9881c= _funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); + mipi_dsi_set_drvdata(dsi, ctx); ctx->dsi =3D dsi; ctx->desc =3D of_device_get_match_data(&dsi->dev); =20 - drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs, - DRM_MODE_CONNECTOR_DSI); - ctx->power =3D devm_regulator_get(&dsi->dev, "power"); if (IS_ERR(ctx->power)) return dev_err_probe(&dsi->dev, PTR_ERR(ctx->power), --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 0ED9119415E for ; Wed, 2 Apr 2025 16:26:29 +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=1743611191; cv=none; b=DeM+/T3mTu/almAr4xvZrnJ0KnV2Dauj5q1IWrdP67qamUtM7bVfmNBTzmqa4eWXfIYd9GKaC6MvZQSWPK72Vh29lDIzT7DrK7pbjRTCxayfUEQLDOD1+I+kOJ+1raxPKgkW5WS59LTIa8HKAQsQ52nnaNQXGkgjwRYRLu3Zr3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611191; c=relaxed/simple; bh=EuyM0klfe+I7/TbF4SujatT69lvtURfeKp1CiiGFgHk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dCj3q+Mm3xG89cfFL6UbkCdy3D6T3+jzCtQlYMpGJ4F32ojJ4L9o7uy59XKJ7tZEIMIgQLIg6SJSKGGOmxw8kr1d5gH03Txba04n+AlPst3RBa8UpWUb5bJ4Rj0laYGc+ucFprc4paRlk4vsQboAKlk7/I8Tli0oVRYaK4o1zGY= 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=A+4YAlg4; 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="A+4YAlg4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611188; 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=HSEO70ahAubWGEM4TPHZlNJ5/BiWYj6e1K2ja+EnewY=; b=A+4YAlg4tS+mikGHdsfwoUMNzq9ntL23uNv+ydBrKiX/eL5CDcSJXy9aXw+cNLUsfOym4d oVt5D3wmjafy3mt5+0VAh8g0EzGVEtcomQkZB/SZI0qWAUTrFX9U8HU+U8+TEnJhsfnj0a bqE3WX2eeDbNvNTYSkk94v4BMsKBEKw= Received: from mx-prod-mc-06.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-458-C3aW6570P7ilLtWgnmWP9g-1; Wed, 02 Apr 2025 12:26:24 -0400 X-MC-Unique: C3aW6570P7ilLtWgnmWP9g-1 X-Mimecast-MFC-AGG-ID: C3aW6570P7ilLtWgnmWP9g_1743611181 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EBF0A1800265; Wed, 2 Apr 2025 16:26:20 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id AE240195609D; Wed, 2 Apr 2025 16:26:16 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:49 -0400 Subject: [PATCH 11/30] panel/innolux-ej030na: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-11-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1339; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=EuyM0klfe+I7/TbF4SujatT69lvtURfeKp1CiiGFgHk=; b=aFfSovD+14j5EtKmbY581WDEB83u02a65C4XKUkEmsDPraj9d5PZCNTII5gHHaioVQAp8wLis miNVTPzhY6iBRJ4ujlkJx5MHP6Gi8SsYlXmy6d3OTe/+GOkfuZJkfGq X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-innolux-ej030na.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-ej030na.c b/drivers/gpu/dr= m/panel/panel-innolux-ej030na.c index f85b7a4cbb4206bea7b5a019ba1de1dd05b13fe2..b2309900873b28f98707f79f433= 2763369a27d72 100644 --- a/drivers/gpu/drm/panel/panel-innolux-ej030na.c +++ b/drivers/gpu/drm/panel/panel-innolux-ej030na.c @@ -204,9 +204,11 @@ static int ej030na_probe(struct spi_device *spi) struct ej030na *priv; int err; =20 - priv =3D devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); - if (!priv) - return -ENOMEM; + priv =3D devm_drm_panel_alloc(dev, struct ej030na, panel, + &ej030na_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(priv)) + return PTR_ERR(priv); =20 priv->spi =3D spi; spi_set_drvdata(spi, priv); @@ -231,9 +233,6 @@ static int ej030na_probe(struct spi_device *spi) return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), "Failed to get reset GPIO\n"); =20 - drm_panel_init(&priv->panel, dev, &ej030na_funcs, - DRM_MODE_CONNECTOR_DPI); - err =3D drm_panel_of_backlight(&priv->panel); if (err) return err; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 3983C1C8605 for ; Wed, 2 Apr 2025 16:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611194; cv=none; b=Lo3hMb2Q1tx95nijsYUg51f1ipkTpDKr8GV6d3lw5E97SXXAC6WG8x6J+taUu4H1NVguxD7OLFH7nysTuPj1FN862wAn23Rom7vDvdivuKSkx2n517vaijUg0B7TqEGR6KtXf/genmwVC4vG9J6w3XtOG6noRo4Xwa+lxhDjgHI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611194; c=relaxed/simple; bh=yuWW0Q0YBFIEbQSgj1FeCraiDLT2hSb2Iu0fLuf7uAU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bIUmrjAGQyp4q0F1s+rNuLeSpd7uE8kFDhcr7NnHXXgFtX6b2dDTg5VchbOSThw6uvlVJV1Ve7jN5giEsvl0ntqaVm7WzWhjBYp6q2BMC4CbplnRJOIpduDHTTrVa+Q7SfcEOpgrxSclx9eDxX+VvQGQ2ymsAg/LRoTFvmL5RwY= 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=CR4J5TTD; arc=none smtp.client-ip=170.10.129.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="CR4J5TTD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611192; 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=xZa/fH42jj3tgaR5qpbl8nKcJkKxRA3VALVpWq6pgso=; b=CR4J5TTDO9pwdDAVyZ4KEZpnwpT6qPol56/ebmTmcrMzyolivBoVeutg7ldC1HgCRGfYTq Lz90UBohKrRtQt7KlniBsJRWjWrLOqMrUqpSqn4NyN6+2JB3ltyFPngn7eWMg75CV6e1u2 /wF4nBoajJ5C70OJmHtA1jdHlR0StW0= Received: from mx-prod-mc-01.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-237-Q2F6QY3yNGCFrZYsiwAm2Q-1; Wed, 02 Apr 2025 12:26:28 -0400 X-MC-Unique: Q2F6QY3yNGCFrZYsiwAm2Q-1 X-Mimecast-MFC-AGG-ID: Q2F6QY3yNGCFrZYsiwAm2Q_1743611185 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4FC0B1956053; Wed, 2 Apr 2025 16:26:25 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 44BAF195609D; Wed, 2 Apr 2025 16:26:21 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:50 -0400 Subject: [PATCH 12/30] panel/innolux-p079zca: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-12-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1331; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=yuWW0Q0YBFIEbQSgj1FeCraiDLT2hSb2Iu0fLuf7uAU=; b=duAjSqCZaS5bkGdMGQo6zAJtCZ+AXgjNCLByOBoBPKuBKqSCGfOOomVKIszIeLou7bfHpEpeK Hhx4uyJqHBJBgu+D68qmStP0Sk/dFBGjCvbZyDXP9sPiMUbdwNaT6n0 X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/dr= m/panel/panel-innolux-p079zca.c index d95c0d4f3e3534d70901864fa9ed0fff8f37d236..80afeeab9475fa13ddadb44cd03= a1519d448e24e 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -382,9 +382,11 @@ static int innolux_panel_add(struct mipi_dsi_device *d= si, struct device *dev =3D &dsi->dev; int err, i; =20 - innolux =3D devm_kzalloc(dev, sizeof(*innolux), GFP_KERNEL); - if (!innolux) - return -ENOMEM; + innolux =3D devm_drm_panel_alloc(dev, struct innolux_panel, base, + &innolux_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(innolux)) + return PTR_ERR(innolux); =20 innolux->desc =3D desc; =20 @@ -410,9 +412,6 @@ static int innolux_panel_add(struct mipi_dsi_device *ds= i, innolux->enable_gpio =3D NULL; } =20 - drm_panel_init(&innolux->base, dev, &innolux_panel_funcs, - DRM_MODE_CONNECTOR_DSI); - err =3D drm_panel_of_backlight(&innolux->base); if (err) return err; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 7ACB3194C61 for ; Wed, 2 Apr 2025 16:26:40 +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=1743611203; cv=none; b=UtunvIDPQ4aDiCS4qpVhqaJvltqwngPskG4B2/Ui4H91YhNrXTT1Ug/8UgIgQKb2x9S5wZbVtDdhQnr1y7zN182RNAy3xAfPb5ILpWOB/LBmiICf1cjwommsNnplY7u8vQXf7TaonsoXXhHLnlfrk1M2XNUeS7usHWdoOlp+wII= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611203; c=relaxed/simple; bh=IMFre+7l7tWbk4mIS8m6SZxjRxqcMTkoQU9WfWpKabg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LmGPmcInmr/IHfF0P4YWzdYuByAklzAvqtaiWx0JjNoJ2SiFdMcmfx24yvchDoV9aPDle65Mmnkhxs37SO6SPNLEj/t1jb5BzCCR4ozYGWI5QFqCOU97ND2a6eEyvPk8sTtmUj/4CMtwIatyHjOGj4kRs+qNpBb+E3swcafMHVU= 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=UP7QQAvX; 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="UP7QQAvX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611199; 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=npvZMXfvWV8eo3hpNGDEvptxCke1n/j0iwAHzQnv9eU=; b=UP7QQAvXq7OuIESK544S7nnTH9WSnOD6D+31JUFRt7BBrhC5DDl7WZkshozeL2ZWyh8i8N Co+1WrBkZjp1XtIO8WM5NIKTlsdbfhIRnNhH8w58aEA23a/EFQDCCzT4amqbme0RIA27oT CBxkegC8Xh6bYmjY9/0Twxkr9Df+o5M= Received: from mx-prod-mc-06.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-94-TKHCiYN4Ms2LV3bRiZtoRQ-1; Wed, 02 Apr 2025 12:26:32 -0400 X-MC-Unique: TKHCiYN4Ms2LV3bRiZtoRQ-1 X-Mimecast-MFC-AGG-ID: TKHCiYN4Ms2LV3bRiZtoRQ_1743611189 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9249F180025E; Wed, 2 Apr 2025 16:26:29 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9B554195609D; Wed, 2 Apr 2025 16:26:25 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:51 -0400 Subject: [PATCH 13/30] panel/jadard-jd9365da-h3: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-13-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1465; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=IMFre+7l7tWbk4mIS8m6SZxjRxqcMTkoQU9WfWpKabg=; b=2FSpbmOvXfcINUMAYycqUf/pnm8cHIiO41KUyMkAKzkiNVBDC7eE3BtcejqyuqNaHJGws2peh A0DB6ZXoHZrAJkz/xFkRm12K3t0F54y/qXm1ZQLx1b8VOd0Wf5qVKet X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c b/drivers/gpu= /drm/panel/panel-jadard-jd9365da-h3.c index 7d68a8acfe2ea45a913dff25eb5e9f0663503f08..6b02923de3f0778f45a6f9ce20d= 70d667772c64c 100644 --- a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c +++ b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c @@ -1120,9 +1120,10 @@ static int jadard_dsi_probe(struct mipi_dsi_device *= dsi) struct jadard *jadard; int ret; =20 - jadard =3D devm_kzalloc(&dsi->dev, sizeof(*jadard), GFP_KERNEL); - if (!jadard) - return -ENOMEM; + jadard =3D devm_drm_panel_alloc(dev, struct jadard, panel, &jadard_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(jadard)) + return PTR_ERR(jadard); =20 desc =3D of_device_get_match_data(dev); dsi->mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | @@ -1148,9 +1149,6 @@ static int jadard_dsi_probe(struct mipi_dsi_device *d= si) return PTR_ERR(jadard->vccio); } =20 - drm_panel_init(&jadard->panel, dev, &jadard_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D of_drm_get_panel_orientation(dev->of_node, &jadard->orientation); if (ret < 0) return dev_err_probe(dev, ret, "failed to get orientation\n"); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 80FAC19E97C for ; Wed, 2 Apr 2025 16:26:43 +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=1743611205; cv=none; b=b9VqZUpDf/+tMZsS6fhWMzHwHFY7zp8WF3ZD2drBdDHPc3yhxeaXcBlORIypZC8dkeLwZiZLkFghecIXT5an7j64MRrPcy6JQV+N5hQwUN/WUhqwyav3gUil+O9Rf+6wTIS2fqQHHp104s0TmCU+VnHabsV2FkUUGYVlyF+fLLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611205; c=relaxed/simple; bh=MUubzhBIT/tBA0ZkFrrwe4LiNLnixIB2l5RiEsbEzyA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vh3oOR/T8gEqm96Fz8sjM8tHXbECHVe467u26Iofhbvb4YuhvRYRbZStVpfXzns313CcPSScBRclFIPLBbkpc8PRCuODNMH3dNKWZwwCZSL/xm7AE8i+g6hmI8qMnu0rNefLF3e218WxFX27KC2cpKuR5+sjJ57HoErSpl3Axso= 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=KK5SplDc; 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="KK5SplDc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611202; 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=zANFerpHyAu2ZHtog7iY2NUNxtSmaThhCiijywQ5+n8=; b=KK5SplDcDrfH/N+ElR8bvV9S9EcvGONmouJ0ltzcM40Zn0u+7QwRZrbS2LbIrOdl2IaM7k Rso/DIY2I0ziHqZ1J3TCemvFLfiA2Pzpcsxo1uFWNT+d57NEmRifcD4hnn+5PpIMUaV23x y9xihnowQpeIsD8vGLhR0rOfDf1m0Zc= Received: from mx-prod-mc-03.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-556-MiPz9hCoPtidFUobSqnkCQ-1; Wed, 02 Apr 2025 12:26:36 -0400 X-MC-Unique: MiPz9hCoPtidFUobSqnkCQ-1 X-Mimecast-MFC-AGG-ID: MiPz9hCoPtidFUobSqnkCQ_1743611194 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D028A1954B33; Wed, 2 Apr 2025 16:26:33 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DD903195609D; Wed, 2 Apr 2025 16:26:29 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:52 -0400 Subject: [PATCH 14/30] panel/jdi-fhd-r63452: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-14-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1435; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=MUubzhBIT/tBA0ZkFrrwe4LiNLnixIB2l5RiEsbEzyA=; b=Hk8DOliFaUzrpfcJoyoJwnEdf+94I6/CQVoR7OO8jx44FhF1f+xLyh0ZauV/mmhsAuL4LVvwJ KtgoknZ9v8uCnNc5BQ0O1XPrIc9swQjtYtyOoPbW9ZZ37dNdklV7X/0 X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c b/drivers/gpu/drm= /panel/panel-jdi-fhd-r63452.c index 4eb71e85e9e9f2acaa2bdc23dae563f04da64f8c..cbe354b51bce35ec07b6f075897= 3fd5dffd92c42 100644 --- a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c +++ b/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c @@ -175,9 +175,11 @@ static int jdi_fhd_r63452_probe(struct mipi_dsi_device= *dsi) struct jdi_fhd_r63452 *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct jdi_fhd_r63452, panel, + &jdi_fhd_r63452_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->reset_gpio =3D devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(ctx->reset_gpio)) @@ -192,8 +194,6 @@ static int jdi_fhd_r63452_probe(struct mipi_dsi_device = *dsi) dsi->mode_flags =3D MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_CLOCK_NON_CONTINUOUS; =20 - drm_panel_init(&ctx->panel, dev, &jdi_fhd_r63452_panel_funcs, - DRM_MODE_CONNECTOR_DSI); ctx->panel.prepare_prev_first =3D true; =20 ret =3D drm_panel_of_backlight(&ctx->panel); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 53B1D1A238F for ; Wed, 2 Apr 2025 16:26:46 +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=1743611207; cv=none; b=Ws7LZHMQtvP4ZrMj0itwC6KVmGU3+ul3Zt0AD4k470NQtCbhsTDqhp6joVNTeylMYXnwI4i4RhR/1mC3MnNnvhTgXUImO61OTdUAhU73M301EHate1KMqKvN0XsFPnyhcAMkpXQ2xa9FN980mOEMRet78QUeiIoqBoKVRTrxYp8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611207; c=relaxed/simple; bh=IW+sB0QwRF536c+A+uwLvp4w4qO8M8YKFG2pNq59bEY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZTc6z7j0JGNCAshNA2nWK2EPT9swKHD6lpBMKblkVCOgxHMQAwDgWgwVmNphTGBD/uuuHQ3JWdH/72UY/YkrqH+g2LAqqFL0FTeUIoHXjrvjOmC54hotgQM2pD46vzf87Lp89gORArWJtRdzN0VPCM1Ac3abNgV3Keh1qIQZdGc= 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=eJbuiPNm; 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="eJbuiPNm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611205; 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=Ir83fRrJOKOtB4N99fmwHMC3qXOutBoCSdpTSy/qe0A=; b=eJbuiPNm4GyMCTtFS97/53oIkx5487/blsJftCSTozed3AHElenmjLIE1U1AD5HXNBJFSD ftTzb2782GVf2SjhfV3CcXB7emcA/ellnhcNNq7OdD1XQ4hZxQqVyat6ja2kw6nXnmtVao NV3I3FdSmP4W5gzubu/D+1D0z7e907E= 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-588-SqxVDYnmNXWJFlQ1KguJag-1; Wed, 02 Apr 2025 12:26:41 -0400 X-MC-Unique: SqxVDYnmNXWJFlQ1KguJag-1 X-Mimecast-MFC-AGG-ID: SqxVDYnmNXWJFlQ1KguJag_1743611198 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 99843195608A; Wed, 2 Apr 2025 16:26:38 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 79FAB192C7C3; Wed, 2 Apr 2025 16:26:33 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:53 -0400 Subject: [PATCH 15/30] panel/ltk050h3146w: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-15-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1420; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=IW+sB0QwRF536c+A+uwLvp4w4qO8M8YKFG2pNq59bEY=; b=LrnX1i3EJvm9qPa7o/zFglJw/+wa0642ozC9dkH4/7zyUMvmrhb84UgM1H3qlJvL1UAmFPPf8 JJ1DddNjMm5AemTOxYLwYx39jfmgFzWAQ1tRT0OyWHhLQVWARbUVwKD X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c b/drivers/g= pu/drm/panel/panel-leadtek-ltk050h3146w.c index 77f74e6c467e566ca2fd7b6a5cc29b2fe09b9ef5..9a384149b86ea2fd03feb1a21d2= dd532412a966c 100644 --- a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c @@ -548,9 +548,11 @@ static int ltk050h3146w_probe(struct mipi_dsi_device *= dsi) struct ltk050h3146w *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(&dsi->dev, struct ltk050h3146w, panel, + <k050h3146w_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->panel_desc =3D of_device_get_match_data(dev); if (!ctx->panel_desc) @@ -577,9 +579,6 @@ static int ltk050h3146w_probe(struct mipi_dsi_device *d= si) dsi->format =3D MIPI_DSI_FMT_RGB888; dsi->mode_flags =3D ctx->panel_desc->mode_flags; =20 - drm_panel_init(&ctx->panel, &dsi->dev, <k050h3146w_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 A8EF21A3173 for ; Wed, 2 Apr 2025 16:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611214; cv=none; b=CtDaytAIN+JsoHM8qUrue7nhB3Gn9vwj/x0aIrUY9pSM0gYYJVP0VKzmPr/xDNTVN97P0nNPtnl7o0GKK3Du+GJDXUlQN2pAN4pbrCc9ixEDyRfyoxIkCSC80t1j/us2dKWcpxX9xR1TRROz680IiaXmzssGzDRgh39VmxBzNxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611214; c=relaxed/simple; bh=WQN1jtCNj1e3ALqEqeBlyZ/+Clo9wX0eGvJ+byH2R3c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p8zJeT81lPbdzIqhOoAqem+kuHbHFXMwyDhY/H4dDcHCJPSXFGt5HiYwnON5MGlLEosmOe6hBs94wiRKCnce9dzb0qeF1QhC5wB6i+QaD9cgCFteqsEIkX2syNa3/iW6YZPYnzcQMfWA2Io5+OQY4TxyWybNLxLojg850svi1e0= 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=gZBuEESd; arc=none smtp.client-ip=170.10.129.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="gZBuEESd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611211; 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=1qqEFD6mfX7xFXXMzkU7JIeRAygmpR9U6m0biArAvvU=; b=gZBuEESdYpg59tIZTObwPFDR1aibL3jedkKmfWZ6iNXLDBh4dw6qCseoGt+sWjCYyZx8Wm MCEuZkccEf5EqV7Dox8DrdDID8vfvH3D5WNiXsJ38eP1w+Ho/xSilzvbv+nS2W9LT3QOh8 fMIhMUeeZQGMWoK4swOTFvmmztbd7WY= 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-57-bdBxYQmaONuNVSR1QHb1Qw-1; Wed, 02 Apr 2025 12:26:45 -0400 X-MC-Unique: bdBxYQmaONuNVSR1QHb1Qw-1 X-Mimecast-MFC-AGG-ID: bdBxYQmaONuNVSR1QHb1Qw_1743611203 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 EC76E1809CA6; Wed, 2 Apr 2025 16:26:42 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E2B76195609D; Wed, 2 Apr 2025 16:26:38 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:54 -0400 Subject: [PATCH 16/30] panel/ltk500hd1829: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-16-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1465; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=WQN1jtCNj1e3ALqEqeBlyZ/+Clo9wX0eGvJ+byH2R3c=; b=LZyVhpm6k1Zm3E1qPsdNfGh38cnR4pG4nbeXy0UM1+e23GvEf9M4kDgy+Bc5hRO/i9qUYQABD 0ctYOwJjXS4CY/Lo1h/MKSCkmnfcZHNtIHOSp7z/ZH9hspWyRTwsgFa X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c b/drivers/g= pu/drm/panel/panel-leadtek-ltk500hd1829.c index 6b18cf00fd4a7a1d12a3577eced49ad6f9c3e955..7f19fd5b80600c2db3236f2d0e3= ee44fd91fe4f9 100644 --- a/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c @@ -604,9 +604,11 @@ static int ltk500hd1829_probe(struct mipi_dsi_device *= dsi) struct device *dev =3D &dsi->dev; int ret; =20 - ctx =3D devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct ltk500hd1829, panel, + <k500hd1829_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->panel_desc =3D of_device_get_match_data(dev); if (!ctx->panel_desc) @@ -643,9 +645,6 @@ static int ltk500hd1829_probe(struct mipi_dsi_device *d= si) dsi->mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET; =20 - drm_panel_init(&ctx->panel, &dsi->dev, <k500hd1829_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 F3F6F19885F for ; Wed, 2 Apr 2025 16:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611215; cv=none; b=DKdgq4k2z7QZuu7yAxd53e+Ar5JmkmaizqBJLVwWiT1HqYGHgj7ZLCTcdVW+lKIMMWE2xgZ5Hbejg8OHzgURDI5ij7AQ2xXg1jgAaX/w5QrNkioY3HAItJRIcHWeLKavSAlhGGRpf/k80iUaTWQkMf5DPB/TVwIgkmoibKg7vK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611215; c=relaxed/simple; bh=op4q2pliKJa3cUfNAwn53eqZVcDkeIvRaZBUXhBrYHI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Jf8G1UxnuayzuTsb2wmDzga8RNd5AeE+dxs9WMWwrQk81GCN/4ssboGEtY+PeqITJ+9nOOQJWTSe34L+eaxysmfFuR52DVyLAbEt2QGHfaCUELKmakYrrKL4K+mqXCY2nbcdDnnm4FxTk5rAP9ce539B8r+xSU4xJtMkimsqV10= 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=T1pSPzEW; arc=none smtp.client-ip=170.10.129.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="T1pSPzEW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611212; 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=cAXPb/RTY7H6dz1SuwGg5qQ6DgcS9natTkvCebzHKYY=; b=T1pSPzEWz+2GooNk4hJIcQD2sR3k0vaSNDUZ9hA7eiLJOhlkLB/WjgdPyKl/7Tm5yN2DwG F/iBUBuG27OXKD6LQStZ+CmxgpdJJNAQ6xdBvdV6XPDolr/ohI4o2B5OQlAydPfbsK13EM 0IxLx+1SKWHiSjhUUEFhW7UJm+s7jXs= Received: from mx-prod-mc-04.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-55-GTIrtU3ZNCCBuTcY0dRgFA-1; Wed, 02 Apr 2025 12:26:49 -0400 X-MC-Unique: GTIrtU3ZNCCBuTcY0dRgFA-1 X-Mimecast-MFC-AGG-ID: GTIrtU3ZNCCBuTcY0dRgFA_1743611207 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 53B831955DCE; Wed, 2 Apr 2025 16:26:47 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 47342195609D; Wed, 2 Apr 2025 16:26:43 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:55 -0400 Subject: [PATCH 17/30] panel/lg-lg4573: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-17-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1184; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=op4q2pliKJa3cUfNAwn53eqZVcDkeIvRaZBUXhBrYHI=; b=RQX2h557vuYo/KBqgiUELMTQY0tzHUof/jGHS2SAHB7ucO7L3M0/pkl+/O+T5H7wqYhOG/GU7 C03Bp0hrR5HBsgn9UOeidIFT1TQPuHZ9dFhg4U3d70kG1xNgXjmiEOl X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-lg-lg4573.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c b/drivers/gpu/drm/pane= l/panel-lg-lg4573.c index cf246d15b7b628a0b3821bfb2697842b6e484319..dec619902c15f8fbfdd138ef3bd= 2aa7cae921375 100644 --- a/drivers/gpu/drm/panel/panel-lg-lg4573.c +++ b/drivers/gpu/drm/panel/panel-lg-lg4573.c @@ -243,9 +243,11 @@ static int lg4573_probe(struct spi_device *spi) struct lg4573 *ctx; int ret; =20 - ctx =3D devm_kzalloc(&spi->dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(&spi->dev, struct lg4573, panel, + &lg4573_drm_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->spi =3D spi; =20 @@ -258,9 +260,6 @@ static int lg4573_probe(struct spi_device *spi) return ret; } =20 - drm_panel_init(&ctx->panel, &spi->dev, &lg4573_drm_funcs, - DRM_MODE_CONNECTOR_DPI); - drm_panel_add(&ctx->panel); =20 return 0; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 D4C241E47A9 for ; Wed, 2 Apr 2025 16:26:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611219; cv=none; b=FSfUot4VIHsj75aLN18kXa4a58nRSXdI38Jxn05e2mavIE2B6xZkyWjUCGtaScKFxGaZXlXLajjg/EJ1yVqfz4DzLaL+J+yvRajEXXaPlDgDb6s5ir+75TeaXRFsLXIMA/SNCaJUJi6qaTgCbIef+jebw7b+aUNW+iGH2UmCROw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611219; c=relaxed/simple; bh=BPdSeUjyavHQlLqxv/q0dWl/OXLbabxuJZzn3plQWOg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XBHMzM/qR5Rs7fQT/wnAg7lcfBWnw97gQl9Wh7jmBHRilPDz70bXXfG07vx4J5JWdQmuwoqH3G9kRcaC81wV4FcCyKZ7dsNWaPmTd9+ACylD8sb506AwWj1eyo7ZaOZv+UOYCMAJmEXjsWSOK7BRK0Q3NvcHUhwJs5wIbUM+0ik= 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=ONaz7ZDY; arc=none smtp.client-ip=170.10.129.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="ONaz7ZDY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611217; 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=epE71qXnPf5K5pc+Z9ENDEN6udnjeC2gv/4reT1wp5w=; b=ONaz7ZDY6+kdtCRGyaUGGeC9eKeEqmyrIJUT+/r3nfttussSHCvT8RuywXB/1VF4WYNxcv Rka/tGH+jA/wPtMaZyYDaOYWylQARB6sLypH1pUnJWXiyJCU7oOWgkl/zwcs86ZQkkOX8l oCxQNCtYszW+azpoIPAmv5CQl48LstM= 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-515-uCOz6hAjMfebgOmWlaxCnA-1; Wed, 02 Apr 2025 12:26:53 -0400 X-MC-Unique: uCOz6hAjMfebgOmWlaxCnA-1 X-Mimecast-MFC-AGG-ID: uCOz6hAjMfebgOmWlaxCnA_1743611211 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 67A92180AB19; Wed, 2 Apr 2025 16:26:51 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 80676195609D; Wed, 2 Apr 2025 16:26:47 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:56 -0400 Subject: [PATCH 18/30] panel/lincolntech-lcd197: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-18-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1468; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=BPdSeUjyavHQlLqxv/q0dWl/OXLbabxuJZzn3plQWOg=; b=YasvvlQSr5zoz/QAeb3BNLNfSxsoG0QFIf5SgY3H8S/wPZREf6IxA6D/xcC7uc+bK2JP6Usy3 QFycL1tvDulD73Sq74D5E0xteEZMkhp6hjKpRm293kqsg7YcvC4V/1Y X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-lincolntech-lcd197.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lincolntech-lcd197.c b/drivers/gpu= /drm/panel/panel-lincolntech-lcd197.c index 032c542aab0f788e8a244721c838d9d740af98fb..54ad17704072213b00292df487a= 9f28cffd45f6c 100644 --- a/drivers/gpu/drm/panel/panel-lincolntech-lcd197.c +++ b/drivers/gpu/drm/panel/panel-lincolntech-lcd197.c @@ -190,9 +190,11 @@ static int lincoln_lcd197_panel_probe(struct mipi_dsi_= device *dsi) dsi->mode_flags =3D (MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST); =20 - lcd =3D devm_kzalloc(&dsi->dev, sizeof(*lcd), GFP_KERNEL); - if (!lcd) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct lincoln_lcd197_panel, panel, + &lincoln_lcd197_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 mipi_dsi_set_drvdata(dsi, lcd); lcd->dsi =3D dsi; @@ -214,9 +216,6 @@ static int lincoln_lcd197_panel_probe(struct mipi_dsi_d= evice *dsi) return dev_err_probe(dev, PTR_ERR(lcd->reset_gpio), "failed to get reset gpio"); =20 - drm_panel_init(&lcd->panel, dev, - &lincoln_lcd197_panel_funcs, DRM_MODE_CONNECTOR_DSI); - err =3D drm_panel_of_backlight(&lcd->panel); if (err) return err; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 3DC121E7C0A for ; Wed, 2 Apr 2025 16:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611223; cv=none; b=kGJ75TaB4SvlvljQSkKch5e5abAJ7znsXnRS/AyjOm3A9bEK/XJ9JRtEItjqlUl25SJfWcccgRMdZTahNkVwGZe+EqXIiRluWYaECIDFqoWQ6D1rYZnqjQLT4dr3PukeHQMnOT8oiajr/BAX0TVblVSoqvo38acJ13ISEMADt3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611223; c=relaxed/simple; bh=Dc8uKXlqTDknhwrvVeBmpqtls+s5KcMmvtGSnNVdukg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i3PnPOfu6SFF8Iha9IXdXwIAO4/8tcoQ85PZsxrXssia7pORV4xsrTGlv20t/JUlRnY2KovfM9ybi4KQtLJ90vV2cpVunxG3f80xYNdmavXMflwzpOdwly/FGj5nZQz8AqbsiMXy/COHApI/tCuRJzuGypz048zBf422ALExQA0= 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=BeQ4Yq+y; arc=none smtp.client-ip=170.10.129.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="BeQ4Yq+y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611221; 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=PF3326fVU7EkcW3hdKGVCgStfM4AKl0CPV6LOBOueVY=; b=BeQ4Yq+yuoW4UPC9XYGKN2fJb9aK4pJLNThCBwiTAgju8nyCp4/GykwSk28OVbzovGVxfX 3PfiAuykxh6cNrxYAdmwaCMWRTrC52In+bLrUnnFus98bVMm/kJY29nXKSdsjbAY20T90N +nXCSHHWJHgMr5k/2fKHH+pMrHwMUFE= Received: from mx-prod-mc-06.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-685-o1h0161CNnO7F6tlJ6PPkA-1; Wed, 02 Apr 2025 12:26:58 -0400 X-MC-Unique: o1h0161CNnO7F6tlJ6PPkA-1 X-Mimecast-MFC-AGG-ID: o1h0161CNnO7F6tlJ6PPkA_1743611215 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B914B180034D; Wed, 2 Apr 2025 16:26:55 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B241B195609D; Wed, 2 Apr 2025 16:26:51 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:57 -0400 Subject: [PATCH 19/30] panel/magnachip-d53e6ea8966: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-19-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1421; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=Dc8uKXlqTDknhwrvVeBmpqtls+s5KcMmvtGSnNVdukg=; b=5dtBANBxn6IdGQaEVw0WdHGM8TCjfStG01MD+kqCQI/IpGBIaSCdtgarS1pw/y80QsNEEnJ6U HggUToInNvjD40qSwWXSImkjBv3zDBK5LPMEakNPL8pkYKFQDVMWfft X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c b/drivers/= gpu/drm/panel/panel-magnachip-d53e6ea8966.c index 799c2161fc85b24e1fb236fd63b397bf66fc15c8..ee225286ce6df0ce48cf7a2c60d= 600332d02ed86 100644 --- a/drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c +++ b/drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c @@ -370,9 +370,11 @@ static int d53e6ea8966_probe(struct spi_device *spi) .node =3D NULL, }; =20 - db =3D devm_kzalloc(dev, sizeof(*db), GFP_KERNEL); - if (!db) - return -ENOMEM; + db =3D devm_drm_panel_alloc(dev, struct ili9881c, panel, + &d53e6ea8966_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(db)) + return PTR_ERR(db); =20 spi_set_drvdata(spi, db); =20 @@ -425,9 +427,6 @@ static int d53e6ea8966_probe(struct spi_device *spi) db->dsi_dev->mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BUR= ST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT_PACKET; =20 - drm_panel_init(&db->panel, dev, &d53e6ea8966_panel_funcs, - DRM_MODE_CONNECTOR_DSI); - if (db->panel_info->backlight_register) { ret =3D db->panel_info->backlight_register(db); if (ret < 0) --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 02D5E1BD9E3 for ; Wed, 2 Apr 2025 16:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611228; cv=none; b=X9pkuiUXbbfDCgmJxPIHC8jV1RLi3gQnweGUzCWqwXBNCAubWHs7Oe+h/ul/hYqYbLykmHsyzdPNZtZv+6bQl+kfSSL1fE/zeoGHx1S6TR2sGx9kZXrVTbU1moc6XEZs9exx3LAp5mtfEIj9wJd4MFZw+IBl9gvbfjp6XZiqIBw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611228; c=relaxed/simple; bh=yDL1X2KRlQleOoI9y6keJaGM798Sa3CZHFZtCRX2hRE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ROkoSxDNF8kk25l0AM2Jyr5TMJ3lJd8JHcTmojE2pgQaxfVG3fJOzuQW2B11Sxw3B+E4h4xVRg/5xZwhWm/Tgs9pnivO4AdQYDLKYlZBOvbXh1BZyUxzvO9cIrrh/vgt4KjFGOyU1YkpZ2OZRRXxdByGypU0vggZsYX2gcntHTY= 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=R0zhe3Xi; arc=none smtp.client-ip=170.10.129.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="R0zhe3Xi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611225; 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=5lQ8TI8gl4MIGsUjiBcrpgYYt0M7hW5xnXkDy9c8nOw=; b=R0zhe3Xi2x7Eh5twwdN0Dz6oV1ooldLRCLTx7XvXV3F3Lye3+/cL1jD6yEX7DvJyJyfAie ekW2LdaQwiCDjy5Dx8vPSSqH7mBCbTyjdKO2uczQg5m6wB4nwStuHTqqfOsQL99PmRUFUQ wWnPObhR7fCvcDuBZ8dUdUchDkLIzHw= 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-389-TH1pFjSMPPaqJuqU-lxkwA-1; Wed, 02 Apr 2025 12:27:02 -0400 X-MC-Unique: TH1pFjSMPPaqJuqU-lxkwA-1 X-Mimecast-MFC-AGG-ID: TH1pFjSMPPaqJuqU-lxkwA_1743611220 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 2272F180882E; Wed, 2 Apr 2025 16:27:00 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0F70E195609D; Wed, 2 Apr 2025 16:26:55 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:58 -0400 Subject: [PATCH 20/30] panel/mantix-mlaf057we51: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-20-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1435; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=yDL1X2KRlQleOoI9y6keJaGM798Sa3CZHFZtCRX2hRE=; b=UlEP6GntIrHDZn+PRY99gPD8R1muqGxGxXztpKE6QMJ4f6fgUGEO/lQPXMZN0BINBnawm5owg Lcwg0JcdJXxCibgpWmsm8k4CjUOnYmdqb4Ja74RJJ06Zk72u3idODj4 X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu= /drm/panel/panel-mantix-mlaf057we51.c index 4db852ffb0f619a398c04ba2358e503733db108f..55664f5d5aa5d4c45ad3974119a= 3da492db4bdad 100644 --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c @@ -234,9 +234,11 @@ static int mantix_probe(struct mipi_dsi_device *dsi) struct mantix *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct mantix, panel, &mantix_drm_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); + ctx->default_mode =3D of_device_get_match_data(dev); =20 ctx->reset_gpio =3D devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); @@ -271,9 +273,6 @@ static int mantix_probe(struct mipi_dsi_device *dsi) if (IS_ERR(ctx->vddi)) return dev_err_probe(dev, PTR_ERR(ctx->vddi), "Failed to request vddi re= gulator\n"); =20 - drm_panel_init(&ctx->panel, dev, &mantix_drm_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 3293A19307F for ; Wed, 2 Apr 2025 16:27:14 +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=1743611235; cv=none; b=bulzYz0s6J6Z9hvHQhREK4YE/5kprthTyeXWLgaTBwxOqSgDORTZCiX1WxNuS0cdNuXvvYkwleq5I2s1KIKpx/aN9QMd80jHayMVbEmc4CgZiiGIrnDEFbsRLzSNxf/J6RMQHjsmJBjqyHezdidxtOK/OhFBOxulwVs2iXqTrwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611235; c=relaxed/simple; bh=9YW9rJHLIGdRGLO4GFRhV8IbkrEU3vBnytV2vJcRvwc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SEadxcZFH52D2XEXfqn3UO4VHyDwIzHS7jCK3sQ0s8NbTwxQkFV71aEb1JepuAY3d/pUlhbLTBDCUXx8NtPpUPI0DccZQ9j+VwldyA5cYE7KYYdsd21SyIsd4nwrN1skja1MOKlZMGFZmpt+yrmMx1HI/cqXgtowt1z03Vvb3K0= 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=BeOO101i; 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="BeOO101i" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611233; 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=j19z0lwtHbM624baP4fRU9+KrIrspaRG92RuhXMc604=; b=BeOO101iXkvN9BRxwuL7yPNfbi831LRICWsQggM9p4sDaQXDWNNslmWx8Zh86Uh1j7hqSV 7x/z7i6OpT/2g6Fzv0QopIMXRg/WdbuhyKnSMe8J7/qFOjF+SQxv8VAIY8MBDx9XDg9EER Tat88bj9rNVpIlH38wh6LxvicVjOgiQ= Received: from mx-prod-mc-03.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-648-R5eTwx_MNKCxFe4SifAJhA-1; Wed, 02 Apr 2025 12:27:08 -0400 X-MC-Unique: R5eTwx_MNKCxFe4SifAJhA-1 X-Mimecast-MFC-AGG-ID: R5eTwx_MNKCxFe4SifAJhA_1743611224 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7C48C1955BC1; Wed, 2 Apr 2025 16:27:04 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6DAF2192C7C6; Wed, 2 Apr 2025 16:27:00 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:23:59 -0400 Subject: [PATCH 21/30] panel/newvision-nv3051d: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-21-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1350; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=9YW9rJHLIGdRGLO4GFRhV8IbkrEU3vBnytV2vJcRvwc=; b=/7SG9D90J9C8RfkGeq9/2mxMEkRV5cXebMrOoT0sD5WKISiQ4Hy996ipS/r5XGa5J6h0/Ip1E tmQWR0RRJ/ZBhtqtek7Teg/jx2MTCpsFzsjZsGmcMlGgsuoghp+GkUl X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c b/drivers/gpu/= drm/panel/panel-newvision-nv3051d.c index 5d115ecd5dd44c8e5e7d1fb8afe573324e987f59..083e314310c5ea15268a32c7011= a9191e30cc16c 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c @@ -361,9 +361,11 @@ static int panel_nv3051d_probe(struct mipi_dsi_device = *dsi) struct panel_nv3051d *ctx; int ret; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct panel_nv3051d, panel, + &panel_nv3051d_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->dev =3D dev; =20 @@ -391,9 +393,6 @@ static int panel_nv3051d_probe(struct mipi_dsi_device *= dsi) dsi->format =3D MIPI_DSI_FMT_RGB888; dsi->mode_flags =3D ctx->panel_info->mode_flags; =20 - drm_panel_init(&ctx->panel, &dsi->dev, &panel_nv3051d_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 5F7A81EB199 for ; Wed, 2 Apr 2025 16:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611238; cv=none; b=iP28cuaixTq/QqiJpvazlrGx5emsfE3Ics+2ZIGwBSyxTbh4kX96t8WCLCte0AvgCiCAUSrd2R6nKHJ6/Uz2n8/sJnRCDAdEX/WsLriRHlm8jgEXZAcFY/2a4lpTmZ28yEtb5aEflhTxXRxswazGZXWeIGPAtTz9/Y4ewFER9dM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611238; c=relaxed/simple; bh=6GoWxokYmPAF1A56XB7LaL9Vb/FUCA1ecKXpwfONqmQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XUVdhIxWFtQiyoD7vZADfc1ao3KjQ7XuYEzloUcjtJ80WMOi2IIGF4FEERrLlC6AJB6qvYkEcuBIb+kXS8xy6ShOS8bBUs/9OeaDkoLvM0ZKkGs5XQzv24o8kWZeM34kUTTdGd85bYV++Taz8S9d4pUoVHDjygn99ko8vpahdcI= 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=KCmmBCmw; arc=none smtp.client-ip=170.10.129.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="KCmmBCmw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611236; 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=qiHgMjSkd5odbQqdgij+KRxFLrr73iYNN/fqbj4FvnM=; b=KCmmBCmwWLbJtKuYpADayqtEKe0hnpyFtkqW72SsEYtayNvKqZJ2HhzRvcqEzzGPQ6yI8Z tL+Wev/mDR0ElUpR1nitKTRfa8gTlEn/sIx/Q6ttH2BJ3KAXL1NTXoW7CHTBn/dp+Jjzcb 1goPSDwOSNW1zYs+BObq4QJxpypHhwk= Received: from mx-prod-mc-04.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-417-VkzY3yMCN0y65iBnTikCgg-1; Wed, 02 Apr 2025 12:27:12 -0400 X-MC-Unique: VkzY3yMCN0y65iBnTikCgg-1 X-Mimecast-MFC-AGG-ID: VkzY3yMCN0y65iBnTikCgg_1743611228 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B99031956048; Wed, 2 Apr 2025 16:27:08 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C6E6F195609D; Wed, 2 Apr 2025 16:27:04 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:00 -0400 Subject: [PATCH 22/30] panel/newvision-nv3052c: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-22-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1293; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=6GoWxokYmPAF1A56XB7LaL9Vb/FUCA1ecKXpwfONqmQ=; b=iwffykaHiHxudGYhemjKDmWzWLp8WCIEchCKoWH6Ok571worysWA/JlBmYjjNDl1nhPaP8KXW zXNosmY4ljPCXNg+F5Hfvs6L06HUVrdeMUHQpfLWVeY/x2cY0JdkuKy X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/= drm/panel/panel-newvision-nv3052c.c index 06e16a7c14a756b9a399347b29b410fd5f4ae273..08c99a48e06dc02677c6f0575d3= 44f890871e0af 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c @@ -777,9 +777,10 @@ static int nv3052c_probe(struct spi_device *spi) struct nv3052c *priv; int err; =20 - priv =3D devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); - if (!priv) - return -ENOMEM; + priv =3D devm_drm_panel_alloc(dev, struct nv3052c, panel, &nv3052c_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(priv)) + return PTR_ERR(priv); =20 priv->dev =3D dev; =20 @@ -803,9 +804,6 @@ static int nv3052c_probe(struct spi_device *spi) =20 spi_set_drvdata(spi, priv); =20 - drm_panel_init(&priv->panel, dev, &nv3052c_funcs, - DRM_MODE_CONNECTOR_DPI); - err =3D drm_panel_of_backlight(&priv->panel); if (err) return dev_err_probe(dev, err, "Failed to attach backlight\n"); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 1A7831EB199 for ; Wed, 2 Apr 2025 16:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611243; cv=none; b=e6N3TLRp6J9zbQhn7sBDDh8CXHUByj2faaP/lMI5knqVxRvNSOO3S3T2AlGB2xMsd9wygdfS+TGsSE3f3SaqxIo6VdMR5bmEjT9QKhq5rNJjqP1GG+TFhKZ8lqjM195Dz5XrduDZ/WDTXjdKr1qT0A/rThR8yTYcB/ff6xhwv0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611243; c=relaxed/simple; bh=I7W1h7y85hF3oihzp+50kZ9MQE3NLWSf3yckSqcNmYE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jNHE130F7gAOWKqnAQolSfplattw3gd0nKxLK+YPfDtcxIDWhokHqG+wgUknYIu+da7I2EJ3Ll79AQhI8y45bmiiFUwFZCbTKneDq7TwS6dgBns3xLOz51AwEtgxZ85yBa4FRtJDOtD4cVySsqONw+EHAMIE2QBJLAB6RwxYDfs= 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=jQyyaDzc; arc=none smtp.client-ip=170.10.129.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="jQyyaDzc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611241; 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=VVqEqYlEksIxNQfBqzZj+eis5ZBLA1H2NQkSXSycgoo=; b=jQyyaDzcsXwJLfsYup2AOZ/BfIL1ykBQaJfFXr1pvr1TVoec5DuAJG8VAqu3BMXOgXtups fwmqeccthV8CvfQWzx9M7botv8oxyRMTCzcdXvfen946ZAHdmcmVgju/x0CyvEPelkDwFf M7tsl4EnCGdIZWhS6CJZEP0KsotORQE= Received: from mx-prod-mc-02.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-627-CIREWCmDP6G_xv5r-5Lb7A-1; Wed, 02 Apr 2025 12:27:16 -0400 X-MC-Unique: CIREWCmDP6G_xv5r-5Lb7A-1 X-Mimecast-MFC-AGG-ID: CIREWCmDP6G_xv5r-5Lb7A_1743611233 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 27426195605E; Wed, 2 Apr 2025 16:27:13 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 10932191F245; Wed, 2 Apr 2025 16:27:08 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:01 -0400 Subject: [PATCH 23/30] panel/novatek-nt35510: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-23-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1368; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=I7W1h7y85hF3oihzp+50kZ9MQE3NLWSf3yckSqcNmYE=; b=67m0mbFT7Pqt5RCUUsx+HYtlwhX4egUNr5loKmkCGvx3Ens6umVxxC9e8A9i6yF6ZMy/HM8SY af59+8Fxd9rAxbTHUqaO1LqFeFFu62Z4W51ERFNa+onYNVsnGbeKmgp X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt35510.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35510.c b/drivers/gpu/dr= m/panel/panel-novatek-nt35510.c index 549b86f2cc288741897992ce5cad6325f4289dba..3189d89c7ca00074314a6f4fec3= 30a3e625c24f4 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35510.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35510.c @@ -1087,9 +1087,12 @@ static int nt35510_probe(struct mipi_dsi_device *dsi) struct nt35510 *nt; int ret; =20 - nt =3D devm_kzalloc(dev, sizeof(struct nt35510), GFP_KERNEL); - if (!nt) - return -ENOMEM; + nt =3D devm_drm_panel_alloc(dev, struct nt35510, panel, + &nt35510_drm_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(nt)) + return PTR_ERR(nt); + mipi_dsi_set_drvdata(dsi, nt); nt->dev =3D dev; =20 @@ -1142,9 +1145,6 @@ static int nt35510_probe(struct mipi_dsi_device *dsi) return PTR_ERR(nt->reset_gpio); } =20 - drm_panel_init(&nt->panel, dev, &nt35510_drm_funcs, - DRM_MODE_CONNECTOR_DSI); - /* * First, try to locate an external backlight (such as on GPIO) * if this fails, assume we will want to use the internal backlight --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 166DB1EE034 for ; Wed, 2 Apr 2025 16:27:24 +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=1743611246; cv=none; b=QxUsYZrAES9DmM+rXGOs8ERXDlYgfa0quF8kan9iuDe/519aPvoTW3jnEoNrM7K5Tk0nT7mV2xsxgZ/dNpSgptyA9g5sd25AN8ytEAnQ4/mgXX2pKBkDbLK9+6a8pSt/c2uIJQ6+yIZwAwVNWrOdVV2rjyCkRd5JsYaFsQDPJVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611246; c=relaxed/simple; bh=8sJ2Jy0vrHnyaFvxeGXJDie/WvS2uybFZmDRO8pBCQo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pal1MsKT3ahxuY6U3Ztbb/CvnwebwtWEj4nR49sBMbDkBzy8dFI12TQAStoO7qks5esVhQm92jCAAWSMs0puf0NAb+TZqfEXyorxq0186fmmyJymk5fwpDzw7W3msxSo6YNcKvxZiOdQ4dAJwEv25u4lyvMh+Lc9EtoJthKOiTc= 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=DLChygH7; 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="DLChygH7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611244; 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=qR9Gz5kP97CP87lDGBVrwrrkWFsK8as95hKEoMQXmnE=; b=DLChygH79xqGQh57ZF+A2r7lvOB3JnCUpV62MzXKsIxvccAq11jW5YPzQ0tI6//0CxJmNt 4nWSHAJiVtTHLvbr6NJfz5H4WeNwZXaPQrd1n/dOPpqaOb3ICV5FdwLMRU9eAVHM5x+DVu iedFyKiLMxAvX+EfN2a1/GIqA8yV5Lw= 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-518-3JF2WbHSNmaCqURCtYjlkA-1; Wed, 02 Apr 2025 12:27:20 -0400 X-MC-Unique: 3JF2WbHSNmaCqURCtYjlkA-1 X-Mimecast-MFC-AGG-ID: 3JF2WbHSNmaCqURCtYjlkA_1743611237 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 7E225180AF7B; Wed, 2 Apr 2025 16:27:17 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 74DC2195609D; Wed, 2 Apr 2025 16:27:13 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:02 -0400 Subject: [PATCH 24/30] panel/novatek-nt35560: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-24-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1470; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=8sJ2Jy0vrHnyaFvxeGXJDie/WvS2uybFZmDRO8pBCQo=; b=2ndFEtkKlBoGCZkYUsSG8gPZKpmdOJdU2+wIWUg74oydgnRBFaiUbdOml420kMUYnVzQ9sF3+ EyLBYQ/UzCHAqz97OzyrnYZTLwQj4kO/TP+YlhQbtWtFBmAdJoKkrIO X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt35560.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35560.c b/drivers/gpu/dr= m/panel/panel-novatek-nt35560.c index 5bbea734123bc003e3d691040496b1fc679ac94b..98f0782c841114439317e16ac6b= b4a5175374ac3 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35560.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35560.c @@ -456,9 +456,12 @@ static int nt35560_probe(struct mipi_dsi_device *dsi) struct nt35560 *nt; int ret; =20 - nt =3D devm_kzalloc(dev, sizeof(struct nt35560), GFP_KERNEL); - if (!nt) - return -ENOMEM; + nt =3D devm_drm_panel_alloc(dev, struct nt35560, panel, + &nt35560_drm_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(nt)) + return PTR_ERR(nt); + nt->video_mode =3D of_property_read_bool(dev->of_node, "enforce-video-mode"); =20 @@ -502,9 +505,6 @@ static int nt35560_probe(struct mipi_dsi_device *dsi) return dev_err_probe(dev, PTR_ERR(nt->reset_gpio), "failed to request GPIO\n"); =20 - drm_panel_init(&nt->panel, dev, &nt35560_drm_funcs, - DRM_MODE_CONNECTOR_DSI); - nt->panel.backlight =3D devm_backlight_device_register(dev, "nt35560", de= v, nt, &nt35560_bl_ops, &nt35560_bl_props); if (IS_ERR(nt->panel.backlight)) --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 5EC7B1C84AF for ; Wed, 2 Apr 2025 16:27:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611250; cv=none; b=f8omh7XmsY0Bc7/u1qaEKLDGXSWqOyT63OqciOnHUfkIlzIGCw7ZAD9uuh59IqM8EbDLV4gRIqnOQkBSFC9xv0Tc64eWUmSsxT4EikwQB2a7LHczZergyRfugZ9PA0gJRmbfY5UNXfLcxxeyhoJ3aHK2pzdeoskHic2akaQjhoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611250; c=relaxed/simple; bh=LwqSq4oKZvcHlRbJzaAP/suiJNWW5npADCQHzdnYEEk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nFKAJQz8y304DwG6CpLq+2CdZ+AnclHlPjE5KLWfOAOmGPJoXzKz7hq8uYzTgd54e1Yj+DtP6EY8QOnSL43KOcSfAI5vI533LMDVIvLqIQEuc1qL+oT/S2YQ3xHlLS31RLzNVlzIE6Fokfzu9LhNTKZIe8/0g1+wltz+ouWwTNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=fail smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RH4qAyvQ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=fail 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="RH4qAyvQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611248; 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=JMSY6BG+NT2RuPWqoFycvt4UrQtakGrNy8xvGs/972k=; b=RH4qAyvQldw7K52EgLjLmB/6eDxYpoWGcsTgVwR7UodEeV7VtV8luAcTUF9xG9YKSfYbyT dJdHND1Rnj3FWIjLNh8QX5nYnjiTMsj4jHmPqpq0SBfQIX7/07YTV5P9nGq4OUJ1kX9i+m XvUJMN7o/yQ6HYcXqdGpDR0mAwyNsv0= Received: from mx-prod-mc-04.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-479-DlLAs-z3MJCCf6mh596LeA-1; Wed, 02 Apr 2025 12:27:24 -0400 X-MC-Unique: DlLAs-z3MJCCf6mh596LeA-1 X-Mimecast-MFC-AGG-ID: DlLAs-z3MJCCf6mh596LeA_1743611241 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B90BC19560AB; Wed, 2 Apr 2025 16:27:21 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C9C23192C7C3; Wed, 2 Apr 2025 16:27:17 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:03 -0400 Subject: [PATCH 25/30] panel/novatek-nt35950: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-25-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1338; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=LwqSq4oKZvcHlRbJzaAP/suiJNWW5npADCQHzdnYEEk=; b=ItJfZaUyksn3tOUWukVCcXh1jOEJKd+DY2OvfVKaHQT3LzLeVaIiLis58aituaKRL6GAGpK4B iIGubQe5npmAITwUAMkcIGsiY2ySPt19iCsexTb87vTmtBEMGUIgE+T X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt35950.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35950.c b/drivers/gpu/dr= m/panel/panel-novatek-nt35950.c index 08b22b592ab0452973aa7373dd0692a9bf98e5f2..94aa6489d99fc88f1602c4dbbf4= f7f78c04799a9 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35950.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35950.c @@ -449,9 +449,10 @@ static int nt35950_probe(struct mipi_dsi_device *dsi) const struct mipi_dsi_device_info *info; int i, num_dsis =3D 1, ret; =20 - nt =3D devm_kzalloc(dev, sizeof(*nt), GFP_KERNEL); - if (!nt) - return -ENOMEM; + nt =3D devm_drm_panel_alloc(dev, struct nt35950, panel, &nt35950_panel_fu= ncs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(nt)) + return PTR_ERR(nt); =20 ret =3D nt35950_sharp_init_vregs(nt, dev); if (ret) @@ -491,9 +492,6 @@ static int nt35950_probe(struct mipi_dsi_device *dsi) nt->dsi[0] =3D dsi; mipi_dsi_set_drvdata(dsi, nt); =20 - drm_panel_init(&nt->panel, dev, &nt35950_panel_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&nt->panel); if (ret) { if (num_dsis =3D=3D 2) --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 816861F1500 for ; Wed, 2 Apr 2025 16:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611256; cv=none; b=Db6KXo1g/kB7ynP+z+fvW6uR9+Nrt/4NG6Bs9mgBQbG2Ig5KgTAaMRVjwPtUrN7ZRrIWDhkdPX7HoHf5SSHboiufNGSbnr3XPvn7YJbkuwk1P5xpsOjK0ra4jjxM/PODH/DqQZYg4OdypTTZ18r7yyyeHxVTX7fQutKLG1hyxs0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611256; c=relaxed/simple; bh=ScF0oS/ivreAcpssqYR+koYAxtpH61OnAgSFxandPHw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gFEsXcoseDU86OiT/jT7QXtpMpALnqpBsBeUFjzrNEUYPsZE3EAJaLRBvALHDOIPtf5KOsNhvMIfBkWyTvHpOLaLYHzd5K4N9wy2qNRwCq+wxbL7bXQZCC5ejylZN8D01Z2hoFLNJdp2Z5+2d7/iQuckK7FywdW3qzvkJe6B4Rc= 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=fWqiEPS4; arc=none smtp.client-ip=170.10.129.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="fWqiEPS4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611253; 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=jCVcmVWs590LHx3fAShanO97/SS0pZoRCdI+DCfpx3k=; b=fWqiEPS4YQpa5VrKLB+eCy6V6bz+JXJouz+Rie1ROouk2Jqo8w2vHLfOMrWxuwHGu2XEvj ylpjSDiBHr8wSh/N07areQep5r4859zwawIq8hayo73OxWdOePKEdCjVJ+S9dEME4AGYbL tlXq2CO1kHYZlaNV8g2brTrWQQIIYWE= Received: from mx-prod-mc-03.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-349-eJ9N_NysPZme2tYLyxzCjw-1; Wed, 02 Apr 2025 12:27:28 -0400 X-MC-Unique: eJ9N_NysPZme2tYLyxzCjw-1 X-Mimecast-MFC-AGG-ID: eJ9N_NysPZme2tYLyxzCjw_1743611246 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E4B4F1955BC1; Wed, 2 Apr 2025 16:27:25 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1121C195609D; Wed, 2 Apr 2025 16:27:21 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:04 -0400 Subject: [PATCH 26/30] panel/novatek-nt36523: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-26-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1394; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=ScF0oS/ivreAcpssqYR+koYAxtpH61OnAgSFxandPHw=; b=0EWpwYuJLu42AGq/FaMwsPJdSz7FgZuWooCEYFJe202lET1weaJg1nc+fIb/oN7zMIc6Hw7CT Ft5u1JqKm3pCpe0oR9+nzd3Kmf/oEAQDs0kvREbtcKp4uOHcllkpl6F X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36523.c b/drivers/gpu/dr= m/panel/panel-novatek-nt36523.c index 116d67bfa1140073cc537ec967b77195beeec051..32cf64c7c18be061fc3d3868952= 9f039bf7cea55 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36523.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36523.c @@ -1171,9 +1171,11 @@ static int nt36523_probe(struct mipi_dsi_device *dsi) const struct mipi_dsi_device_info *info; int i, ret; =20 - pinfo =3D devm_kzalloc(dev, sizeof(*pinfo), GFP_KERNEL); - if (!pinfo) - return -ENOMEM; + pinfo =3D devm_drm_panel_alloc(dev, struct panel_info, panel, + &nt36523_panel_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(pinfo)) + return PTR_ERR(pinfo); =20 pinfo->vddio =3D devm_regulator_get(dev, "vddio"); if (IS_ERR(pinfo->vddio)) @@ -1211,7 +1213,6 @@ static int nt36523_probe(struct mipi_dsi_device *dsi) =20 pinfo->dsi[0] =3D dsi; mipi_dsi_set_drvdata(dsi, pinfo); - drm_panel_init(&pinfo->panel, dev, &nt36523_panel_funcs, DRM_MODE_CONNECT= OR_DSI); =20 ret =3D of_drm_get_panel_orientation(dev->of_node, &pinfo->orientation); if (ret < 0) { --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 B03E019D8BE for ; Wed, 2 Apr 2025 16:27:37 +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=1743611259; cv=none; b=BzxLL/vUsz1lJuHCKzDzCktgeXPQ3qSgKGawOCq3CdEWK2mjzXMUTk9dYMhbhNBzlY5Cofwufxc2p8h91k8/Xjs0AJqfXx9/tVcEWzk+FPXZnv8/rGifNsp98HwwxvK+E93lGYMNMXMwLbRuNlconFcWFdh82oidxZyIIAWvzJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611259; c=relaxed/simple; bh=usXViKv02eqspzENJO9Be1fV1s9csWvAjxEFuLZ2qiw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V0YXw8FNWLQM3BkafCTXzFOzyYcbdLqibxzmJU14cGnULi1iZLoRqToAckiGwOUUjJFCM5fLXs7IH6tUIbwoT4nrw9j3GGMe3KL+kqXPk6dh21ZlZl/M2cMfD44+MFzHQtjnMmi7iV6WHU3sk/IOLMI8PcJeI+GjuebRoSwhTaY= 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=T4vlZjNW; 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="T4vlZjNW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611256; 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=MP0mQPob/NaxglglYTtJLQMKwaDtnjjAZ+fqpD006Q0=; b=T4vlZjNWTtWAWl6zvvBCkBrXrzfPjTOLMyJS5MQzmVtD9bQGv/rZ6ztXaAjfFzDX12+Bt7 LWZ/DGPL4PB8fumg3nYMHwY6wwmWL7A5roIN/uYXxLdDcMjLA+wA7LMShpEURuXKd2KuML cJdwQeP994+LlVljjsC64zMSVNaV6Lo= 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-390-tFDMFe4UNGiarUsIquna4A-1; Wed, 02 Apr 2025 12:27:32 -0400 X-MC-Unique: tFDMFe4UNGiarUsIquna4A-1 X-Mimecast-MFC-AGG-ID: tFDMFe4UNGiarUsIquna4A_1743611250 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 3FA82195608B; Wed, 2 Apr 2025 16:27:30 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3C5C6195609D; Wed, 2 Apr 2025 16:27:26 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:05 -0400 Subject: [PATCH 27/30] panel/novatek-nt36672e: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-27-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1422; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=usXViKv02eqspzENJO9Be1fV1s9csWvAjxEFuLZ2qiw=; b=FCV4GOz2buSHwrt+V3/pq+2CQj/12zJH5oLp9Hp3Fg5lvqC9gswRymotadhssWLtMDRNvS4NQ LV1EGiym2RJB7JwQABwagDavKKn9uHKT4OvxeAzJ0xKFWlOFF9njFpG X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt36672e.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c b/drivers/gpu/d= rm/panel/panel-novatek-nt36672e.c index 8c9e04207ba96db93d18a845a9240d2a22ec6b8f..c5e00eb55722e483a97e8af3a35= 94cdb9030dae8 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c @@ -522,9 +522,11 @@ static int nt36672e_panel_probe(struct mipi_dsi_device= *dsi) struct nt36672e_panel *ctx; int i, ret =3D 0; =20 - ctx =3D devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); - if (!ctx) - return -ENOMEM; + ctx =3D devm_drm_panel_alloc(dev, struct nt36672e_panel, panel, + &nt36672e_drm_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); =20 ctx->desc =3D of_device_get_match_data(dev); if (!ctx->desc) { @@ -553,8 +555,6 @@ static int nt36672e_panel_probe(struct mipi_dsi_device = *dsi) dsi->format =3D ctx->desc->format; dsi->mode_flags =3D ctx->desc->mode_flags; =20 - drm_panel_init(&ctx->panel, dev, &nt36672e_drm_funcs, DRM_MODE_CONNECTOR_= DSI); - ret =3D drm_panel_of_backlight(&ctx->panel); if (ret) return dev_err_probe(dev, ret, "Failed to get backlight\n"); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 44C5D1C84B9 for ; Wed, 2 Apr 2025 16:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611261; cv=none; b=pN7zD8n2JHGwk82crQjOnn24sMpnDct5wltvJumuWsdGeHb4+lpMs5GM2VDscXF8ZoumdSxbEaV7ae6GTlULKbJWnLrln3hb1QoSltvRvGRvwD4xkFKbLMXAaFRgA21XgyKkkwqFmWG9/rm4ftWGFyQZr5koe3Y2IpK7gaAUUS4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611261; c=relaxed/simple; bh=Niq8gbCDLPdaXJKvZgPPfcwhl8kkf6v8++wBNoX0yvk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mbr/ijFuQX06sb7xiWWwLNkSD85L/ZAVBkzz483PKBppkqmx2mzGdJQU5xOIa4fiE/oDTpUshQz9acG06B5kAdz8cwTN+tPiZvfkWkCvjwAOJwweGu93pcLxkcXzEAqb2aPPDHnx13PHUWaWZ9o0NpzpJidrgheT7rk+S3PwHDY= 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=PqwE5Qev; arc=none smtp.client-ip=170.10.129.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="PqwE5Qev" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611259; 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=n20sMf532VbVnrpCAXL1VVfimq/xFU4hBiyB9gxSCUM=; b=PqwE5QevV+uibyY5mWO7ZtI69FQmQEfq+HBwRCcLHcRACfKtHr6SqoSDzspJ+WYjbduaDW UkHnQPgp7oO8bimr2wd1/vBJsw0qgfbYIOrPEefkimqoQY5i2NX4WjnpwPO8yiEEctuMZs x6BjGdK0F1Eje733fXlaFxJJ4bu9UGk= Received: from mx-prod-mc-02.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-609-b9O-w6C_N8i3Gxnyh6wN3Q-1; Wed, 02 Apr 2025 12:27:37 -0400 X-MC-Unique: b9O-w6C_N8i3Gxnyh6wN3Q-1 X-Mimecast-MFC-AGG-ID: b9O-w6C_N8i3Gxnyh6wN3Q_1743611254 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8D49A1956087; Wed, 2 Apr 2025 16:27:34 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8AB62195609D; Wed, 2 Apr 2025 16:27:30 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:06 -0400 Subject: [PATCH 28/30] panel/novatek-nt39016: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-28-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1326; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=Niq8gbCDLPdaXJKvZgPPfcwhl8kkf6v8++wBNoX0yvk=; b=uUBjuu4uAf6zvsY7BdU2W9NZi3KL2l71OpE62cx6Qb43FdZK4WcIbFREATd8c1bzrb9LtfZHE vCtPpS1XB8NDS9JT/7pwHbb5DzBYLD4/tDogZQN3CEt0tTK2DE5mWl6 X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-novatek-nt39016.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt39016.c b/drivers/gpu/dr= m/panel/panel-novatek-nt39016.c index 9fa7654e2b6755fbc641b6bef3cc450e0e16ba32..b9c23be05d4f03c82f9770d3c05= d0e8afbb06c6a 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt39016.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt39016.c @@ -246,9 +246,10 @@ static int nt39016_probe(struct spi_device *spi) struct nt39016 *panel; int err; =20 - panel =3D devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL); - if (!panel) - return -ENOMEM; + panel =3D devm_drm_panel_alloc(dev, struct nt39016, drm_panel, &nt39016_f= uncs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(panel)) + return PTR_ERR(panel); =20 spi_set_drvdata(spi, panel); =20 @@ -279,9 +280,6 @@ static int nt39016_probe(struct spi_device *spi) return PTR_ERR(panel->map); } =20 - drm_panel_init(&panel->drm_panel, dev, &nt39016_funcs, - DRM_MODE_CONNECTOR_DPI); - err =3D drm_panel_of_backlight(&panel->drm_panel); if (err) return dev_err_probe(dev, err, "Failed to get backlight handle\n"); --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 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 328841C8FBA for ; Wed, 2 Apr 2025 16:27:45 +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=1743611266; cv=none; b=l7pk/0tcRJxULSfUep1XB2piFncRB5ryUOdubugEOhn4hb96e+oxURhFl5SP73VaRt7tWEqpJ43QAigbuC3/WMVkZiw4dNeAYQ3x9XLD74pbcKGTdupN+AOnALX2vASYMakTnC4dv5TWeHbsgVLJ0eHh/Lbfs6FrZW6i+sihz+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611266; c=relaxed/simple; bh=+jsQl646bOU9X8y48TMvtQRkadDZ3AxzB7aFav6cb9w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=taSjbkfF2kIhdo34z5iSHoNUnXUYIibMqp+Pd8YYo4aEHE7DbOy7qGf0G8EcUrFbxq6kzveyIFoX5sfEVG9y/1RblXO3ZHL4xvncY3bJgZXYCUg7clGn1cA20y2KMirigHrzPN2uP+HBZHKDoeeSRrOIc7fCOEmo4JhZhPYojuM= 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=G9nP4FWi; 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="G9nP4FWi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611264; 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=5EzueVYpplGxvASeTRTyPsRiyFvto0Vy2Kcau66JwAs=; b=G9nP4FWiV4o/N8/WYTcTk/6G2N+MlRuy3xxnSQ1yb4bJ3HWPj0klM7L28ncJMykYuUpTNA g1JWuga6Y0d7uj3JC/BFftWfcTd+mEB2zKxLq+GxGiKfrcM1G2YS3dCVsC469/URt4Zjnk 1apY4f4nEHDLH+Ah+boj3w8DdvWfgfY= Received: from mx-prod-mc-03.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-502-zZeRuaLzPJS1f346MLDk7Q-1; Wed, 02 Apr 2025 12:27:41 -0400 X-MC-Unique: zZeRuaLzPJS1f346MLDk7Q-1 X-Mimecast-MFC-AGG-ID: zZeRuaLzPJS1f346MLDk7Q_1743611258 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9E51019560B6; Wed, 2 Apr 2025 16:27:38 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B8A91195609D; Wed, 2 Apr 2025 16:27:34 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:07 -0400 Subject: [PATCH 29/30] panel/lcd-olinuxino: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-29-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1392; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=+jsQl646bOU9X8y48TMvtQRkadDZ3AxzB7aFav6cb9w=; b=mmc7dvs5cgJDC72L+gor9D4R7BopRqNGGmjJ7fbK2JWxzYG5U7h4QgerROTSHLZ53ftW9kV2X qG+C/miz5x/DegTpKAVxmLLkweOKwmzBtcU26ltz17Y0mk6QOXfVP2D X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c b/drivers/g= pu/drm/panel/panel-olimex-lcd-olinuxino.c index 94ae8c8270b8fbdf47009dac6232ddf6885c2369..66f99982f360fe4445b0c0cbc1e= 57c4db4be5eda 100644 --- a/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +++ b/drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c @@ -175,9 +175,11 @@ static int lcd_olinuxino_probe(struct i2c_client *clie= nt) I2C_FUNC_SMBUS_READ_I2C_BLOCK)) return -ENODEV; =20 - lcd =3D devm_kzalloc(dev, sizeof(*lcd), GFP_KERNEL); - if (!lcd) - return -ENOMEM; + lcd =3D devm_drm_panel_alloc(dev, struct lcd_olinuxino, panel, + &lcd_olinuxino_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(lcd)) + return PTR_ERR(lcd); =20 i2c_set_clientdata(client, lcd); lcd->dev =3D dev; @@ -234,9 +236,6 @@ static int lcd_olinuxino_probe(struct i2c_client *clien= t) if (IS_ERR(lcd->enable_gpio)) return PTR_ERR(lcd->enable_gpio); =20 - drm_panel_init(&lcd->panel, dev, &lcd_olinuxino_funcs, - DRM_MODE_CONNECTOR_DPI); - ret =3D drm_panel_of_backlight(&lcd->panel); if (ret) return ret; --=20 2.48.1 From nobody Mon Feb 9 20:42:41 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 5E9171F3BBE for ; Wed, 2 Apr 2025 16:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611271; cv=none; b=coVXSA+PkbTo/fuPw77sq0PmmBIiq3YOzf/8t//52aXi9XinNvl3u6JF1wqKB1UAFMcZg0n5V5nxvRQ+TIFH5SxqeO0443D6akF9GqC3CSiAlmklh1+sMoYsf6oQOXb0hDkumR4uqDKNu/l6qK9vvakE2P9WRNWI2YkXY75v+lY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743611271; c=relaxed/simple; bh=o4EPDV0aZd5aebRCtAzJHstJ3xqapBa1C3808IhKyF4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=shi5J+KvWm9zqzk7kzc3lNsrsGen/bTL86szc8X2QD+lifp6/fW/9tnN4KNnZrg3vuTZj9WJ+RWDqPWtrjSJJzBLOVgxOL7qFr7hsXKeEKvVqdAMMdyrQV0ELfsIlTyKESTUxNRasb/vNs8aAxD8yeRZ9KvXBdDptvBKZ5fxM8M= 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=h5DbXHFU; arc=none smtp.client-ip=170.10.129.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="h5DbXHFU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743611268; 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=9PD6OmDX45LDR7+nbtGPkK9QX6P2gjTV1BpF+hq9cvw=; b=h5DbXHFUICCuuIpPRActnunhMIA1OeduoSiwMZ9slBbtSGaiX3s93Thse1s+fjhMaMXTIj ZCtbZeVPaN8LtReReMjf/T+52ut6YdCfNWcdM3u3WQjiwneaR1K17Y/69FIu42LOHdqViw RsPCkJHVr5Milk+glVEM47f5o9z+2To= Received: from mx-prod-mc-03.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-253-MnCVOWQlOE-CQsqJq256Vw-1; Wed, 02 Apr 2025 12:27:45 -0400 X-MC-Unique: MnCVOWQlOE-CQsqJq256Vw-1 X-Mimecast-MFC-AGG-ID: MnCVOWQlOE-CQsqJq256Vw_1743611263 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D00771954B32; Wed, 2 Apr 2025 16:27:42 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.30]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EB2D8195609D; Wed, 2 Apr 2025 16:27:38 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 02 Apr 2025 11:24:08 -0400 Subject: [PATCH 30/30] panel/orisetech-ota5601a: Use refcounted allocation in place of devm_kzalloc() 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: <20250402-b4-drm_panel_mass_convert_part2-v1-30-903b70999ea6@redhat.com> References: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> In-Reply-To: <20250402-b4-drm_panel_mass_convert_part2-v1-0-903b70999ea6@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Icenowy Zheng , Jagan Teki , Ondrej Jirman , Javier Martinez Canillas , Michael Trimarchi , Michael Walle , Jagan Teki , =?utf-8?q?Guido_G=C3=BCnther?= , Purism Kernel Team , Linus Walleij , Jianhua Lu , Stefan Mavrodiev Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1743607440; l=1321; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=o4EPDV0aZd5aebRCtAzJHstJ3xqapBa1C3808IhKyF4=; b=BVaohY7WGETvX3RovtLsktqY1+PIhCXrnlCpEDxR1cOZ7BoVwBKiBqXeM8stZxc4dq9T+HT71 nCF/6+64E/tB79uroCVimFiZs0E49dwNfoqF8e/78jY3L2Z7iGs9Scu X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-orisetech-ota5601a.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-ota5601a.c b/drivers/gpu= /drm/panel/panel-orisetech-ota5601a.c index fc87f61d4400d49814953d7f453a7c6e84004f29..3231e84dc66c2bf319f5287fd53= bc437e24e0d5b 100644 --- a/drivers/gpu/drm/panel/panel-orisetech-ota5601a.c +++ b/drivers/gpu/drm/panel/panel-orisetech-ota5601a.c @@ -237,9 +237,11 @@ static int ota5601a_probe(struct spi_device *spi) struct ota5601a *panel; int err; =20 - panel =3D devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL); - if (!panel) - return -ENOMEM; + panel =3D devm_drm_panel_alloc(dev, struct ota5601a, drm_panel, + &ota5601a_funcs, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(panel)) + return PTR_ERR(panel); =20 spi_set_drvdata(spi, panel); =20 @@ -273,9 +275,6 @@ static int ota5601a_probe(struct spi_device *spi) return PTR_ERR(panel->map); } =20 - drm_panel_init(&panel->drm_panel, dev, &ota5601a_funcs, - DRM_MODE_CONNECTOR_DPI); - err =3D drm_panel_of_backlight(&panel->drm_panel); if (err) { if (err !=3D -EPROBE_DEFER) --=20 2.48.1