From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E530040628A for ; Mon, 20 Jul 2026 11:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784548386; cv=none; b=AYMkLxqamlUIEm1051B51c067h3dbMTOT7HgxoTUFxQwlcj94TbSajCw2vgzw3xsfUqCdg8s6xue2QNL/3di9pWBJlYjwkBZNK0jIwflo4038cHLO8q0+8qL250Hf6AMlqYtgc6v5Ek6BP1ubfypZM5yAmmrMPSYUoeFz308+jI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784548386; c=relaxed/simple; bh=9mtpO4RHdD6opo1v/glUC4txIFlWJ0EzuU756nyvPwA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SdpaF/+Gg5xi/4pirOgTf49ZXAyAGHALYAWcrilrBdP+Zzw32ZlYTBftkaVPNP2DzJ2kJf6nCdyQ9BsHM283bl0XKW9svPGNN+TClaxMXw6VmhpOgRNI4di/2saiCCXvuBY/Ljt0mdZe5ODyXGnRSQsTlrxs5s53yyFZOkNFco4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Bw9J+NQj; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bw9J+NQj" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-47f7444576cso768627f8f.0 for ; Mon, 20 Jul 2026 04:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784548383; x=1785153183; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=7plU2/kVmQSn+LOCEtFWHQX2WddsHW3wUI2HcoGLNVg=; b=Bw9J+NQjB1KRAK/U/diNxdacZwSabKx+bF0sTC1OWzahyoaYt/ad48z8bZQjTajeWK IlB1/OA+q5dOxz7oBmFbdha2/HVAHKMeP68HYKaR+dkTCQ8GgOt7/nUuLf44XvgxzJxB Dc0C/RCor7OnxGdzlIl2BkxfxSAos/ThaYNbKQ8tD5jfcMt74wHdZ8ll9tnZ+75DDiNC kTezQ2jxYYGKU0jBCSZne3oR+YQs1DUumVM6bM9a+tpbcSeODxA1kA/DLv8f3LpwQ1Fh OcgE7c5uj36pa+D1kdmG94sLI63p7TRAsRlzd3fO2QOhW4rdwE2dG6JiASugwMZUl8yB gk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784548383; x=1785153183; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7plU2/kVmQSn+LOCEtFWHQX2WddsHW3wUI2HcoGLNVg=; b=FZH2UKDCDMbbViYcnAOpF0yjLXjto1j3eD6M/p6jlEYF3KwZpyPnUZz1JKpnzfOM9A 1VCgEDWP2wDUs071xvTuyTaHo5LJEqhNCAvN77pSulZarOFxAWuzyvuU2kdfRGB035pc ljvkx3lxo2keoAPuuTQSlJxWkd37CJxu+H4DH1nNWx+e7Oi/qKoxnks9CI4WXSinYENI 3w0f/beMzwZKO3bJ5zxwkugoO37tiF602kZGpZzFdRyLgWuNJsytiuz31A6n6PwkCmhu puRHvM5cJGf1S0JoTuoV7CO412dkjQNANNTb/y+IMJ7vgLFpzo9CC1qbLRcr+D9XZ4ix bi8w== X-Forwarded-Encrypted: i=1; AHgh+RoPHhnxeJRLx5Vm7f+qgObRJdjKErFXEd5GTDaRw2FqixMNZFMWGwPdbA8H+VaIfHzPZTi3N45DTQY9Tdg=@vger.kernel.org X-Gm-Message-State: AOJu0YzUjhYTpVTIvOky+WBcTISiRH5ERSv6dxjnj1sWTz5ttOnEpUfZ dcqKGEUtF6bdyq+ndfgWfsURWgDuyi4lZVl8ugbcWAMSViC5lW7VDiOV X-Gm-Gg: AR+sD13xrytSidFYwZXkzMWEUWK1Ew+I3Nrb0GvQbPMYjW1rvyQgY1XyBRTPTx32hwe P4P1I0CsnED6fRbzS8q8AhptpFHwKNMQYD4qymR1FE+j33ifrpVf7+RB0mo01MKC57OIW8GIioc lo11/SYgMJvRKIJ3ndVVNyV99f9v5d0KP20FmGLl9HbHMvZRypqjS9CtaLCx8Y7gDxZkuAiL2pe p1koDJuOcVSmIlWwx8GeRFUI81bt71YaiA3zKuXiWzmkqwRlFWQ9q5oPksuiSIg1SBWqOe4mt7K 8WcvyiSG+YmFmm5/+6D8Sq6HKcmfIYxGn8kxjvfxtcTW5e3goNi9iKt45oSO7gX/JvVSrZR0E5S 3KxWsHw0QyBd0fCAe6Il1pH6Aw868WVt3QIgH19WowOKYCYDCGfcRgCFzU1EvJFw5A0DOdURnzZ UXmpoMpRL3axA= X-Received: by 2002:a05:6000:2613:b0:47f:7114:7d6c with SMTP id ffacd0b85a97d-47f71147deamr7069056f8f.44.1784548383122; Mon, 20 Jul 2026 04:53:03 -0700 (PDT) Received: from fedora ([2a02:2f0a:7305:1100:2d17:dc4a:b635:9a95]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f63ec7ea1sm30204633f8f.24.2026.07.20.04.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 04:53:02 -0700 (PDT) From: Robert-Andrei Mercea To: Neil Armstrong Cc: Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Robert-Andrei Mercea Subject: [PATCH] drm/panel: osd101t2587: migrate to newer mipi_dsi* functions Date: Mon, 20 Jul 2026 14:51:26 +0300 Message-ID: <20260720115126.666363-1-robertandreimercea@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Migrate osd101t2587-53ts panel driver from deprecated mipi_dsi* functions to their *_multi variants for improved error handling, as specified in the GPU subsystem TODO list. Link: https://docs.kernel.org/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions Signed-off-by: Robert-Andrei Mercea --- drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c b/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c index 2334b77f348c..63ae9dc5712f 100644 --- a/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +++ b/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c @@ -32,11 +32,11 @@ static inline struct osd101t2587_panel *ti_osd_panel(struct drm_panel *panel) static int osd101t2587_panel_disable(struct drm_panel *panel) { struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel); - int ret; + struct mipi_dsi_multi_context ctx = { .dsi = osd101t2587->dsi }; - ret = mipi_dsi_shutdown_peripheral(osd101t2587->dsi); + mipi_dsi_shutdown_peripheral_multi(&ctx); - return ret; + return ctx.accum_err; } static int osd101t2587_panel_unprepare(struct drm_panel *panel) @@ -58,13 +58,11 @@ static int osd101t2587_panel_prepare(struct drm_panel *panel) static int osd101t2587_panel_enable(struct drm_panel *panel) { struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel); - int ret; + struct mipi_dsi_multi_context ctx = { .dsi = osd101t2587->dsi }; - ret = mipi_dsi_turn_on_peripheral(osd101t2587->dsi); - if (ret) - return ret; + mipi_dsi_turn_on_peripheral_multi(&ctx); - return ret; + return ctx.accum_err; } static const struct drm_display_mode default_mode_osd101t2587 = { -- 2.55.0