Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp143196lqo; Thu, 9 May 2024 15:37:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXx8L8KN8ic8Dnrf6rik7FdbZRmQYkj70L4OZX+XV3/csv3tOJcqpgCCxfOmYazLzjPpWqWi6KWs2RveBYNkIL0yzSfT7IeSQPs7CIALA== X-Google-Smtp-Source: AGHT+IEgMR6Q+fSvQEsFgWEz/OQt5NDvEku2Aa388V/8Ed0Gn1nnG9MC4JbQql/m//Ef2/lC64gB X-Received: by 2002:a2e:330d:0:b0:2e2:176b:9e98 with SMTP id 38308e7fff4ca-2e5203a454dmr3434091fa.45.1715294268371; Thu, 09 May 2024 15:37:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715294268; cv=pass; d=google.com; s=arc-20160816; b=eaPIb1bCJICL65v47KBFQnPW0IraA5mJuxl9X27WCyMxngvVLMmD6S3gDesBjew7ga 1dLVoFMOTe3Slu+xB72CgWG8kSUx/S3tIezPgC8D4/MwyvslsctH5DZBkd2Q6qrxVuyR u8nJZ/SXCJKpyeImghomxGIDf+CHvgKVgsYG2Buv3/F/v43f8N/zIFDciix9qkLRe+Ww wwB96kJrlhMpK1h7ZPRU+UTjavh4fh8uhrc51TWGBJrBJCSdGCA11UFS2dBZcpIqTGuP aE2Y5qorvrh9hqswnqrCEXdURfSz+yw5IruW4PBY29bDEQultFWhw7FIyv3/i5kxNKG2 nraw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=IwDfo96K4ZN1gvjMKsnALPIr6uZujP2Mw+2zG530qIc=; fh=+HW6Ulv+dhvMitvsFLH+h8zj0OtmlqimS1D9oho3YYo=; b=MOFFlHRY3LFdn/Q2sUm73yhqEddm3GtYXZHLb86f7gCCtQMpIXKPiLn6MK/sZrZD6/ Dbf1SYs+8pmJxgP6t/uhxqEfmwCCYiEg4LqIlcNSzXFMcNEyQJ25SmMP4Kyy6swdfE1M ljliy195rrZmmgQMlBmXf/EfmOwqICmKhQtlaT8Rmsjp6NtpQDCIq/4DrAT1o8aV12NJ gL3aieWN/DUXvc11l/xIrYdkF3ggNfCjbOuouZlDuz7CCNGIUf5gLLtimhPMjD/ZVbTF tmjQTWmPIsPWCqFzj824RRIBjgTc/vnncwkGyo2s63VWSF6vm/bN+pXy7rBDV7yOQ13z DASQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBEI7HH7; 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-175038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175038-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. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d5c25si1185804a12.253.2024.05.09.15.37.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBEI7HH7; 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-175038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175038-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 1BEBC1F22D23 for ; Thu, 9 May 2024 22:37:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DC1F12D1F6; Thu, 9 May 2024 22:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PBEI7HH7" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 6C9D110A0D for ; Thu, 9 May 2024 22:37:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294260; cv=none; b=OEUv3FYOvbSQibYU1QO4xiHmkx8WzqM7b4zjVsKnkAv8zVmawsu1d+7aGNuuDDZMuClawRDLevZWQ6J7h1kFhXiAOZsliXOYf9lI2U3AaRtCmZl+feA2ZufkHZ1IU/sljW8jyYc+pEytwL1aDjvztTEXey+4vDIOdmPFyo5Dms4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294260; c=relaxed/simple; bh=VxcZp1w/YGAckFLVc2gsng7lHzErKTzZobRSJjoTank=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=JDaBUEDNEfciso2C9UBSWwIE98FY+ORcActUvLgexPp1CE9mJF92WHcmhVTz8zcmauPgy9R82GzI/05TzHLdAsxwrQLpx7WDTZLxUV8qH7tbNhExqKJ6+G4WwrjefE9wGPHs2frYmDMxDzyj/TB6C1rNTOki300+e3ObGB1WWW8= 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=PBEI7HH7; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-51ff65b1e14so1516979e87.2 for ; Thu, 09 May 2024 15:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715294256; x=1715899056; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IwDfo96K4ZN1gvjMKsnALPIr6uZujP2Mw+2zG530qIc=; b=PBEI7HH70CwVuPekImxaNAyhYq3s2G9xj/UxYdFcniwVAzoEQnbqnfCrSJMDrnELph 0mt0GfFM02pLFAxzcUwTR+z+vEtICpO6vR/9PajFHki/958QV7S9E/8akCFP8SYzyKe0 vsvMXkJA5c3a7MG4t+9EG8ofekiJAt+knjGB7/c1RKKufvvvTgEA9sBEDZpi4Xh2om+8 wNrMrB/qu1qjY4IzDWQKkwTvz0rrRFu+UVMTsmvBkOyo7XgXshWXEbL1hTNyZDLM78Il TIuGPE7xNnz6UBxL3ar+tAHlL11QV+G4fCslk7fiD9tI8f3CuYhvUC33GcDdCpHqF+ZS z3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715294256; x=1715899056; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IwDfo96K4ZN1gvjMKsnALPIr6uZujP2Mw+2zG530qIc=; b=f8rudbCsBPdDe4HoliWRfAvQnjdHCl5JxgZiMkuj4UXm4hmKmrfYKp7Ov4G8Q4RH5g hSLVh2pBXl7A1vwiPpnBt6cV4C4FhAojWWuyXwEa4wghQIS3EzInhRtlOn9bB71TzHua PIC6BcB4cuxv2pTqT3an9zx/7iyKSruuKZn+Yw5kP3yzAkdHcZfA/cJb9ugE1mYQOmh0 BmXVyk0g+uJGjgB0SNNTpPie/ymSpgSJH1j1cFwt7wfwDirf25x8xmzvTs0uxa/UhKvJ NnfomNEgwkm2HrJh6KlYZSlcgrVAom9DhQRERklbdZOnEmkeUOymOn9pk7WqJR1r18q5 djgg== X-Forwarded-Encrypted: i=1; AJvYcCXU+dlkqp85TgDyZlOhnCUEyQ4vEqVMraTtfi5EKN+0IC0cs0VMgPWTihsyn3hXltiz6anHQBCETN6oJ45EYJpeZ54iUA3YMhh3R0SZ X-Gm-Message-State: AOJu0YwEjDnKg6cEoWAieyYAFNGOcIS1kEcu65ykVFUf28QMSKz1syMO W9M7BWsVILJuPIL6u9OSSE8kJ7RW4+12C6keQOGmzw7gYmhP0Y8UXQ6IbuNxvvg= X-Received: by 2002:a05:6512:3b94:b0:51d:8b86:6588 with SMTP id 2adb3069b0e04-5220f76f343mr666423e87.0.1715294256332; Thu, 09 May 2024 15:37:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:37:35 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH RFC 0/7] drm/mipi-dsi: simplify MIPI DSI init/cleanup even more Date: Fri, 10 May 2024 01:37:33 +0300 Message-Id: <20240510-dsi-panels-upd-api-v1-0-317c78a0dcc8@linaro.org> 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 X-B4-Tracking: v=1; b=H4sIAC1QPWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDU0MD3ZTiTN2CxLzUnGLd0oIU3cSCTF0Tc8vElCSjJINUA0MloMaCotS 0zAqwodFKQW7OSrG1tQCYmgFLaQAAAA== 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=1721; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=VxcZp1w/YGAckFLVc2gsng7lHzErKTzZobRSJjoTank=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmPVAuMV3wx2gZaFh7kczhgwtAqtMTSfjEM9Uxj L8jsu8mx6mJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZj1QLgAKCRCLPIo+Aiko 1UuCB/9yNsgxlbxhybmzf+kdUFmXa5mewjR7yrDjRzsCLGxkMG2OfBf9EbH/LkBTpAJit6Kq/pw cxFlLPJ1hFzZ2m6uWekZJjT1waOHg/OsZvpB0EiSFjUh7O2giMM8BnM44eKsFsSBtsKco+LoU0I i6fJOFKnDmdGtPxNDT/X+cxjoslYCBdkaNa46lGpZ1qXaorPzgViDAyP9kBHP1LwbaiRG5GsEyj 6MCp83FWkGyrw4jeS6vNeMaws8dWFkLppISqsducdRIvzo+xVZM0XFegI8U8/0H7oB2czry5FSI lvn25E9NxdXCXOFY9wjJqKFKfsVWV/NECnx1ZfccC9aIMtTL X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Follow the example of mipi_dsi_generic_write_multi(), mipi_dsi_dcs_write_buffer_multi(), mipi_dsi_generic_write_seq_multi() and mipi_dsi_dcs_write_seq_multi(). Define _multi variants for several other common MIPI DSI functions and use these functions in the panel code. This series also includes a fix for the LG SW43408. If the proposed approach is declined, the fix will be submitted separately. Depends: https://lore.kernel.org/dri-devel/20240508205222.2251854-1-dianders@chromium.org/ Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (7): drm/mipi-dsi: wrap more functions for streamline handling drm/panel: boe-tv101wum-nl6: use wrapped MIPI DCS functions drm/panel: ilitek-ili9882t: use wrapped MIPI DCS functions drm/panel: innolux-p079zca: use mipi_dsi_dcs_nop_multi() drm/panel: novatek-nt36672e: use wrapped MIPI DCS functions drm/panel: lg-sw43408: add missing error handling drm/panel: lg-sw43408: use new streamlined MIPI DSI API drivers/gpu/drm/drm_mipi_dsi.c | 209 +++++++++ drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 73 +-- drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 30 +- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 9 +- drivers/gpu/drm/panel/panel-lg-sw43408.c | 74 ++-- drivers/gpu/drm/panel/panel-novatek-nt36672e.c | 587 ++++++++++++------------- include/drm/drm_mipi_dsi.h | 19 + 7 files changed, 578 insertions(+), 423 deletions(-) --- base-commit: c09cb909a4fba9c42baa343bb9a84986c15d5f01 change-id: 20240510-dsi-panels-upd-api-479adb2b0e01 Best regards, -- Dmitry Baryshkov