Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp143352lqo; Thu, 9 May 2024 15:38:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtUA6b8jYb6OnVbxtaWB8ziG4+FttBzS/EiYvihtcJPQ9KWj4csBXSF4Hhw+L0nMAT1Monv0EMDxeB7ebMeRHCkYMS3onrlmeQLBip0g== X-Google-Smtp-Source: AGHT+IFyupUV9mXuPckgSswVTvGZV8+fDR5KIg5Qp7YW0+pke/razhcqShnXVlqZ+rmworIuFEVo X-Received: by 2002:a17:906:2bc7:b0:a5a:278f:7830 with SMTP id a640c23a62f3a-a5a2d57ac75mr46122766b.26.1715294293900; Thu, 09 May 2024 15:38:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715294293; cv=pass; d=google.com; s=arc-20160816; b=fwB0eOS4KMkTTxO4oUNdhoDXCW0AdfCc4d02HXvY9Nw+quhrKeJw2/hWqbaXbCnwrr 77+0bu52LAiyAMPdkN7xwsz0OjUp5PT+jnW/R/jxbW3nF+IpD0eB8RWI4gElHSq0HwPL eO59wm0N/n1ufogz5Iw8uObs51yW//e/dRpCijse5VFTL47yyDpodfo26eM1XyQcYpaA n4CmYYDtO+7N68CD9FnHN6UmJdfIkBHx4Ybanhs9Ql9juRqhUfEKl5SuIz/2AYm2oFxW E2eNNWuvBtYsIU1iAG6oJvgcZsrE6KCwsSvoarzK5ZYZxfBE8auN0iwyxXowKRjGIuBy cg/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=XPxTEl/rjN+bSOjCHxAgRV15YEB3RII6eshoI73E95Q=; fh=gZVxIx7LOylkeoSdRrZggYZRQaA6hKhQe9GC+zWbGwI=; b=lHLLoFnN6NrATWHB7Zy9DXShOL/1zMnK6nm7UbRyRErcFHzfNdjLYn4T3NGtucEgeW IW57bdneVMy1ylbTS6gTxOF9pSUIynQg8RSvTI55xfuqQPLo5t8oTYRCke65okQNn1RV D2418MeneMMol8S9J/ON4jqNS+notr3JC3Or0hb9T85F8O5ft6eanAJIchfvT9Kf1NM/ mkiq7E81W8VWkDTbnri+/a1lUKl5Tm1gdO8YBXwO5kCdj3cNsBSI/uK3WWEY6UmprrbB 2ppMcwZ09HeBbJY2nRcZLCuZ40M9SHnV9ww6Ijy9lUxHZ2oLQdbFq+geJDbyL8BRT6j1 Fr0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X2KeVncB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2cc57si127242166b.995.2024.05.09.15.38.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:38:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X2KeVncB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9E01E1F22B18 for ; Thu, 9 May 2024 22:38:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E1CA130A5D; Thu, 9 May 2024 22:37:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X2KeVncB" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 90091129E75 for ; Thu, 9 May 2024 22:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294262; cv=none; b=YTc0AUgwvzxkFy8/tDJjgmONQKbcwLLeOo2WlrY0/KtL+KeNAR/iQGip0eoZIL6jm22iMjrxvF/VnnOx07m75clsRg5/PhBtN1bdTJLoigz3ri5TObzKo6WTMDybtfgmET0fmORXpvt47bUq995vyKnNEYEtlQ/Nh9th/in8L/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294262; c=relaxed/simple; bh=/ICGqi9rxo6d+dzzW1CgRoe58bcq3pT7pDZm1a8aL8Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IC1acvT9WzKmAPqAU9ifYwaatWQ5QYf6enZyRsSOGa4ujFaAl50EJ1DtwvvTnupDhGi4EgTo0H3a5TWYodUvBl2oSN8MRA8zgn4zDItn/P/HO9nR9l0a3Lly2XuLlbwJseH3jBZ0GVTYcRqsAMuXjIEJs9WmuLuyUtAG2XO3sAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=X2KeVncB; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-51f2ebbd8a7so1511140e87.2 for ; Thu, 09 May 2024 15:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715294259; x=1715899059; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=XPxTEl/rjN+bSOjCHxAgRV15YEB3RII6eshoI73E95Q=; b=X2KeVncBnVBLj3kn5H4eNM5welccjNpHiilra53EapqDzvRpNL+b/R+EUmTtE7MmAo 6cHE5Pgzeoe48YACgzs3tF5MMnsyuyxhXO/eDo0mY4d2mZex6orVm4Q9hgVxcTK8hkq1 O9LWnjtx4RNZHSmKZp/EkXTgUm+1VB0w/hYpmzwQhYJeXbEexj5HC/JiFf5kvb/wOhai 6cjsUx0tVRS1ewgz1uk5/APzCIxPuQ0p1ErzmWLOPdH+yanlo5lmTV2ja3VKYZlPg2NU eWzHdeEYc+08xTaIu56ioF1fNEJC8qfar9AMdJXl5WGLUfGiTGicFznDS/fSJyjysVJl vukg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715294259; x=1715899059; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XPxTEl/rjN+bSOjCHxAgRV15YEB3RII6eshoI73E95Q=; b=u2qnfAJdwe5d8TdY1smRZdhJ/90BJ8IpCTXkmhOryurq6F+Id13PFSavbp3NZUomhg HSOb3+DBuHwVRX9GUYhDyJPblA7EFqOspBqnunVcE+RNqyx+BhNNjccXp1WDjJe1xH0r qxUVzQPS6phSy39ed7wsE1FLSd28BDWuYbxm19R9ahJhTT7RalRu9RsIdhOg7H9NdsqO I485p4Y4SHAEoBlumhLQo+84vR80N3m307DDvg0/M6uDJogyxNOMzXX/g95Ky4+5Vo05 wJ0LUHpvtIkus8a0tLv8AkjCA7L4qyNBsRm3TPDWy/T1UAKzYoZl3fSzWVmy1sOPCG1L pbjg== X-Forwarded-Encrypted: i=1; AJvYcCVFkx5x9ZmsVGSMaxARzVRHoQcAduXIZ6r/TmF8CpKHdglndOAj9fHpaN81J7U2hsdLnjC+VcStKnn0nQXHMCbvvtwnttP98M23QzH2 X-Gm-Message-State: AOJu0Yz1g+rGWwZu+EmrAAjOWffol8qGWuFvWoeYPH5vi+N+3aSrvYpH bmbRiSvYDVw2l9nnYz9j6XxKZXG4X/mpsK6nWn7ObrkYsR7Z9ho61lvpN2Fkpt0= X-Received: by 2002:a05:6512:4012:b0:51a:b933:b297 with SMTP id 2adb3069b0e04-5220fb6983emr569030e87.2.1715294258864; Thu, 09 May 2024 15:37:38 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d32f1sm457974e87.181.2024.05.09.15.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:37:38 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 10 May 2024 01:37:37 +0300 Subject: [PATCH RFC 4/7] drm/panel: innolux-p079zca: use mipi_dsi_dcs_nop_multi() 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: 7bit Message-Id: <20240510-dsi-panels-upd-api-v1-4-317c78a0dcc8@linaro.org> References: <20240510-dsi-panels-upd-api-v1-0-317c78a0dcc8@linaro.org> In-Reply-To: <20240510-dsi-panels-upd-api-v1-0-317c78a0dcc8@linaro.org> To: Douglas Anderson , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Sumit Semwal , Caleb Connolly , Marijn Suijten , Vinod Koul Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1349; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=/ICGqi9rxo6d+dzzW1CgRoe58bcq3pT7pDZm1a8aL8Y=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmPVAv+hJcCRRz/1N4z/5nZnoSCFPmnaflwApji eYhLOpmvgCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZj1QLwAKCRCLPIo+Aiko 1QBmB/kBfZNnW8LsfL5YALIrGr1vlDsGY/TMulRiyB3ma/rYpTdqKUWu2IcP/mVYN5f8PoptNqR zmmQx3yamiNeQSO2YVPk8YA99zhDUhm+NFbaDQXYLqgjLyVesZZxyGO4/jB9oWLwMQ97S+WV+SI SNKHeE1Bry/mghLEjJE+r76Br3C019t5P57GDJ5aNZoREBMDi5WpR/4D9TS4ToMTsql0/nLAWMN OtX894c98lOz+uz6VHWIkaDRywhOKJUBIVDyMxSiYkxQOmr3n2aTrGV9/cnbbzUJVprWsCc0aKP LO3pRkNP3pg/29EV/4A+hsP44tCYINaYPPKK0K5vOEemn9NP X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Remove conditional code and use mipi_dsi_dcs_nop_multi() wrapper to simplify driver code. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index ade8bf7491ee..0691a27a0daa 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -224,21 +224,14 @@ static const struct drm_display_mode innolux_p097pfg_mode = { static void innolux_panel_write_multi(struct mipi_dsi_multi_context *ctx, const void *payload, size_t size) { - struct mipi_dsi_device *dsi = ctx->dsi; - struct device *dev = &dsi->dev; - mipi_dsi_generic_write_multi(ctx, payload, size); - if (ctx->accum_err) - return; /* * Included by random guessing, because without this * (or at least, some delay), the panel sometimes * didn't appear to pick up the command sequence. */ - ctx->accum_err = mipi_dsi_dcs_nop(ctx->dsi); - if (ctx->accum_err) - dev_err(dev, "failed to send DCS nop: %d\n", ctx->accum_err); + mipi_dsi_dcs_nop_multi(ctx); } #define innolux_panel_init_cmd_multi(ctx, seq...) \ -- 2.39.2