From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED59AEF586F for ; Sun, 15 Feb 2026 08:52:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D2B5810E357; Sun, 15 Feb 2026 08:52:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="F5tQ+SJc"; dkim-atps=neutral Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7140A8994A for ; Sun, 15 Feb 2026 08:52:06 +0000 (UTC) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-b8f9b5240a2so318132966b.0 for ; Sun, 15 Feb 2026 00:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771145525; x=1771750325; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=apz6SKQjxrkiY9Y8cAWfLh3BY8/2ZKfxWZr/8LI9FLs=; b=F5tQ+SJc1+mfVtfnGOlYIVQmVZxG96N95p4E1FTIROipiaVrawKIr6bTrYwz8azQXa EL4eaF5UqYJ0UlxTKVJ0JWj0fg4r5Zm2ifBIHWiQtFLsXMI0nOA7n5u3AOc+YaB2g1ir pazIGmo/mpX5XuXaG99gVaky1MfrR+V0jFo8r4HIkm3F6tMQsaRubGpg925JbJqJRJU+ KA/UfeTGY/Y7B3AUVGxAT1UJ1vw4jQ0keKTHrRQvIqV0UnHkQ1wwrIaE29efNxNRLwmo kOxhPOaCVlSrZoBdM+x5ciyAEf+2KfKOPg+d8QDBR3wa2sL8gpyIOA1lufqDatT9zGX9 z0rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771145525; x=1771750325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=apz6SKQjxrkiY9Y8cAWfLh3BY8/2ZKfxWZr/8LI9FLs=; b=OByeOwzXUMOOgOlylNoWl7N0LPdF1dwp1d8dbQn0RXzWXFzOBhl7BWiXY2PsNgsgiL xmXPRCCIoV6owKEi7q1bW8Gh4LWoF6Lg09ooyRU34oNstA8uHxUIRkj4Ny6cqjauloxI nqviDOM0/KUq6thrh2XLBF1ldsypwPX6tfj/bXgtCkk8/SEDNgcLqQK3Zkk3hSEeLYQN 7wnJ5S6jx1gxiH1MjcKjQxjkFPUQ+4fsY+CjPNmGDH9zP5joFvjL26NFn5H5JfgXrOS/ Ir875yczvGLiAw8Mg4QCkbZrPYRxqJ3Kmjd6oMHr+Tr+JTVF30XLmchfA3upMG4P5/Gj /N4w== X-Gm-Message-State: AOJu0YwKDfThRkbIY0AiSoenln8+RWwNQr4Ngft9qa6ZIMzxHUKksQ9i ta7fGswZCpalwu6165/32SierwkWCQYT0+6+04/HmrAvTAtRshNC4gYc X-Gm-Gg: AZuq6aKoDmPkzC0hrheUHUWOE++d61j/M+Pq0KHIwy/6cDh7uf5+KTru0BO/mNltnrb YFJ8ECVCpU3JoLmbkicEFuIinGLRtFuQjE/lH0h7FHBH04schPMchLiLtME5IDu3UsjF7X0OlDV 8MrR98Eu0QKSoC6lXZw7Q0KphAPok/KFfAO9/QggvZPUyTUclG/TGzZ1r9sYbJXEkQD7KZk7FkG pHbzAnivimOlR7xThwomVbmTK7tqgo8KuoPbszpM+wTmwPYSz8rMhQZz4pJGyKCvySNeH//kteW 36R4nwI+cYPbScXoSKORRzk1i6p3PyfhRTfBhKGhssi7gfvSRr7Jn5Z/qSQfrkicLTjv11AAIax oLEac+cDmDSHiUERpjCr81HHKvmh6uZOvIyfTxUMLks9O+xnMNL6AB+pH/z994ZIDcHkPsgqGBW B6FHe4r3UqzjbP X-Received: by 2002:a17:907:8690:b0:b86:e937:d097 with SMTP id a640c23a62f3a-b8fb44767d7mr372985466b.38.1771145524794; Sun, 15 Feb 2026 00:52:04 -0800 (PST) Received: from xeon ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8fc7629b63sm139799766b.35.2026.02.15.00.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Feb 2026 00:52:04 -0800 (PST) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/5] drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach Date: Sun, 15 Feb 2026 10:51:39 +0200 Message-ID: <20260215085140.20499-6-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260215085140.20499-1-clamor95@gmail.com> References: <20260215085140.20499-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Switch to device managed version of mipi_dsi_attach. Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/panel/panel-renesas-r61307.c | 7 +------ drivers/gpu/drm/panel/panel-renesas-r69328.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-renesas-r61307.c b/drivers/gpu/drm/panel/panel-renesas-r61307.c index 70bda074dd0d..d8185cc1b5d6 100644 --- a/drivers/gpu/drm/panel/panel-renesas-r61307.c +++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c @@ -261,7 +261,7 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi) drm_panel_add(&priv->panel); - ret = mipi_dsi_attach(dsi); + ret = devm_mipi_dsi_attach(dev, dsi); if (ret) { drm_panel_remove(&priv->panel); return dev_err_probe(dev, ret, "Failed to attach to DSI host\n"); @@ -273,11 +273,6 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi) static void renesas_r61307_remove(struct mipi_dsi_device *dsi) { struct renesas_r61307 *priv = mipi_dsi_get_drvdata(dsi); - int ret; - - ret = mipi_dsi_detach(dsi); - if (ret) - dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); drm_panel_remove(&priv->panel); } diff --git a/drivers/gpu/drm/panel/panel-renesas-r69328.c b/drivers/gpu/drm/panel/panel-renesas-r69328.c index 0ed143f77e50..bfe2787f8f53 100644 --- a/drivers/gpu/drm/panel/panel-renesas-r69328.c +++ b/drivers/gpu/drm/panel/panel-renesas-r69328.c @@ -217,7 +217,7 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi) drm_panel_add(&priv->panel); - ret = mipi_dsi_attach(dsi); + ret = devm_mipi_dsi_attach(dev, dsi); if (ret) { drm_panel_remove(&priv->panel); return dev_err_probe(dev, ret, "Failed to attach to DSI host\n"); @@ -229,11 +229,6 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi) static void renesas_r69328_remove(struct mipi_dsi_device *dsi) { struct renesas_r69328 *priv = mipi_dsi_get_drvdata(dsi); - int ret; - - ret = mipi_dsi_detach(dsi); - if (ret) - dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); drm_panel_remove(&priv->panel); } -- 2.51.0