Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 C285119CC37 for ; Sun, 21 Sep 2025 18:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758480001; cv=none; b=IALVanvACevBsn8lkVJblE8gsAE90KuyN9Ahlru5/9Xwyba/ZnMext8VvtxmuStBmXCTvscQvfAh6RvOFuqU0UMknkTUjtxpZ1B/XNNcocs++9dozwe0eRY4PRs+Pg8yLgQs0t7q4PmrrFumjZKzeEB4t0rqwS2dHtDQx1gK3zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758480001; c=relaxed/simple; bh=GXW9MbqWA3jLNU9CtKF7MwkNis6w9KLGzmXQONCs8K4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QUGTT5D0SV3Q7sr7T3BN4/R5UPZ7GWCGCNQOVyb2Xj8TjxSN7JOcqjuIB6wt9o0ridNJ412OO20K+WjLypj2TS7dYh9PPwF1MaQaQXs6QICVV/aDhmNsLuRN9i21sKQ4MfTcM8ooyu5J0rwbZgEnmqrBO6Mr/bMQZoxTVVAtDjQ= 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=fD1FWs1R; arc=none smtp.client-ip=209.85.214.170 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="fD1FWs1R" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2570bf6058aso49414495ad.0 for ; Sun, 21 Sep 2025 11:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758479999; x=1759084799; darn=vger.kernel.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=VoB7cKQN4+UN4qFZ4riutgjHBwdWBXWlGksmHEe4AKI=; b=fD1FWs1RoYb4ZrtewnsI42ZaxwrS/7ddD4gBE9N62c8ycvqHQrAEXI/M6hBsjzCM6/ P6yhQAuQy93Wc8iXoo+VBxhJubWWQhKV3RxT8GavV3QYENXcMczR+FADX5a4p3Y6c6Mx AfywTbr8JZ5GCw67IUEDQcMB/hKspqh9wyv0OMpJXbZgiPX47gVoydmkdlTCW/pz8gqc Mu+/3pInbZBwVkdt7igyXzUKhMYfCc+jOyK+iFld7fHMWpZoLUvPxT3xQE5A0Px1Q8yN KJftHGBq++NNRsFyTktl/wbPpJajTU/20WqMK5OPMp87hSSVAIIVuuOsqfmgnERMiXFp l9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758479999; x=1759084799; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VoB7cKQN4+UN4qFZ4riutgjHBwdWBXWlGksmHEe4AKI=; b=YMLGSHhOwfwifxXK7aYiN6oaVLxW44A+EtvFXHwiqCMaNpeDW0h9+dxJGOeohIPeWc FdTI2jKGWDou+811uvS5jmCfCfVB1Pdw1eGhzR0dzjeWnSR5/qvccK5asmXsRO9Vxt5b 6s8AkX1m6k3uuljsbfsDitrm8tW5xqTfj/ehN60QfLJGU0eoKPKGrWpbqli6jPPJGN5p a4YOj/i5D6EhR8TBlNgXmk+2+4jXnIwVV5DZ1SrVqWLbagilgtE1qHQcLwxLub5b4ZfK WEh+XVaAy8ZqdRaFRO6EbxDM8fPiVCyeg3JPBxM1vGzWOkjT4M6TzUEgzEetASHNhH58 aMvQ== X-Forwarded-Encrypted: i=1; AJvYcCXUFEFJaVd6pVHO2/C8eEyWjSaBDDZfQj+4wCz3mjnejKCPgfGbRlJivWZgiozshnlQfC9r6cYhREE=@vger.kernel.org X-Gm-Message-State: AOJu0Ywb2CL432xBFVMwiqf16q/XNrDvZVkAE3RGhnjZJM00gge7Y5XL RmPn1023Ft/6JzOujLjn8yPCS2d5BYliFu+8Fykub19VaWY39X+4xQhh X-Gm-Gg: ASbGncvbHSN/uRa62sjQGpaG8J9YoEB89KTjfv5Q5DahpPnW7zoKBaK80IY3GG7Gy9b ssxcexETDUEnBwDpg6IzWnRXi6czEerPStLNcJ0hEHjWyJWq8PSeZ8Sb5mulZgT79GNtWlDSwkj 1DaYD0c5sUYk3fJINnbeNbgTO7AvCahyh1m+EohYveoRy/KM+vzx51gWyqBr/R9qe1LtmFTDFHQ IWCXFgGcsbyfOFdOyEflIJRU0JgiZp+iB6xfERj3YRwsI1j1j+hf5p0GvL79+p8ZG6cuUDk/7SS /ev8aPSfgXpTbpghFGx8mK/MrutQmE6wv9Dh6EUkB+enHM02jk5em56WRiyO+Et2jpneoMU3euP PIl1e+Qk/IfLKQIB9AA== X-Google-Smtp-Source: AGHT+IGHyO6EN3VS1Dx3b+5swr3ajzqvhmea+cALQsD7c13Q589dV7pWvt5n7lRWNnlqSlv2oFO2+g== X-Received: by 2002:a17:902:fc4b:b0:26f:7db2:3e1e with SMTP id d9443c01a7336-26f7db2410cmr91789895ad.47.1758479999035; Sun, 21 Sep 2025 11:39:59 -0700 (PDT) Received: from fedora ([45.116.149.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-269802dfcbesm111053795ad.88.2025.09.21.11.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Sep 2025 11:39:58 -0700 (PDT) From: rtapadia730@gmail.com To: neil.armstrong@linaro.org, maarten.lankhorst@linux.intel.com Cc: mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, jessica.zhang@oss.qualcomm.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, corbet@lwn.net, Rajeev Tapadia Subject: [PATCH 3/4] drm/mipi-dsi: remove deprecated mipi_dsi_dcs_write_buffer_chatty Date: Mon, 22 Sep 2025 00:07:22 +0530 Message-ID: <20250921183720.237761-6-rtapadia730@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250921183720.237761-2-rtapadia730@gmail.com> References: <20250921183720.237761-2-rtapadia730@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rajeev Tapadia The mipi_dsi_dcs_write_buffer_chatty() helper is redundant and non-intuitive. It has been removed in favour of mipi_dsi_dcs_write_buffer_multi(), which handles multiple DSI writes with proper error accumulation. Signed-off-by: Rajeev Tapadia --- drivers/gpu/drm/drm_mipi_dsi.c | 32 ++------------------------------ include/drm/drm_mipi_dsi.h | 2 -- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index bc847ab5c822..c2fcc219cb58 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -926,40 +926,12 @@ ssize_t mipi_dsi_dcs_write_buffer(struct mipi_dsi_device *dsi, EXPORT_SYMBOL(mipi_dsi_dcs_write_buffer); /** - * mipi_dsi_dcs_write_buffer_chatty - mipi_dsi_dcs_write_buffer() w/ an error log - * @dsi: DSI peripheral device - * @data: buffer containing data to be transmitted - * @len: size of transmission buffer - * - * Like mipi_dsi_dcs_write_buffer() but includes a dev_err() - * call for you and returns 0 upon success, not the number of bytes sent. - * - * Return: 0 on success or a negative error code on failure. - */ -int mipi_dsi_dcs_write_buffer_chatty(struct mipi_dsi_device *dsi, - const void *data, size_t len) -{ - struct device *dev = &dsi->dev; - ssize_t ret; - - ret = mipi_dsi_dcs_write_buffer(dsi, data, len); - if (ret < 0) { - dev_err(dev, "sending dcs data %*ph failed: %zd\n", - (int)len, data, ret); - return ret; - } - - return 0; -} -EXPORT_SYMBOL(mipi_dsi_dcs_write_buffer_chatty); - -/** - * mipi_dsi_dcs_write_buffer_multi - mipi_dsi_dcs_write_buffer_chatty() w/ accum_err + * mipi_dsi_dcs_write_buffer_multi - mipi_dsi_dcs_write_buffer() w/ accum_err * @ctx: Context for multiple DSI transactions * @data: buffer containing data to be transmitted * @len: size of transmission buffer * - * Like mipi_dsi_dcs_write_buffer_chatty() but deals with errors in a way that + * Like mipi_dsi_dcs_write_buffer() but deals with errors in a way that * makes it convenient to make several calls in a row. */ void mipi_dsi_dcs_write_buffer_multi(struct mipi_dsi_multi_context *ctx, diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index e4d26ed7a62a..cda981a41bc6 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -326,8 +326,6 @@ enum mipi_dsi_dcs_tear_mode { ssize_t mipi_dsi_dcs_write_buffer(struct mipi_dsi_device *dsi, const void *data, size_t len); -int mipi_dsi_dcs_write_buffer_chatty(struct mipi_dsi_device *dsi, - const void *data, size_t len); void mipi_dsi_dcs_write_buffer_multi(struct mipi_dsi_multi_context *ctx, const void *data, size_t len); ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, u8 cmd, -- 2.51.0 Test patch