Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp18990lqo; Thu, 9 May 2024 11:14:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU51UtUXNAo/a1UcWkyKtsQhw6amiu+srKJiq883S3NgK05axPXk2VHtEDwYQF3b/2C/55fgwA8GS2c+HfIZTJ0BN16FUaGX8/aUvnnyA== X-Google-Smtp-Source: AGHT+IE6VONacCPpGQLNr5CPX+Qto7fe9HJcln+RC1w7nDJBlJZHiPbGRL9E7qdLfm+ohaufIZaX X-Received: by 2002:a50:f68d:0:b0:572:df77:a71b with SMTP id 4fb4d7f45d1cf-5734d5cec46mr395214a12.11.1715278468941; Thu, 09 May 2024 11:14:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715278468; cv=pass; d=google.com; s=arc-20160816; b=qHFkxBU3zmfZWL0nvHoUupKqMnLIjk/fKEU2nfclG+4xOtY14hNJgyJ8/kogKhqRQr YEy6EYk1g3XFLpeC82gSJNwqJZF01SyZPn4Hs1xIYYfn/Y3bQK16cBVNRz7GMlVR+Yur omHqMGY+RE7Y8S6NH+TaKOgb5+xcvVelCBkWJfZNWyP3sKovVeX/oG84fAgv9YgBbV3K KbGUGKLEdFahrblkOyWsyfM+nYLOOIDzxQdraoz6ALDgW8uPEBMVXinycoaPwD5BOsh2 4lhC/vSn/gPfVJQcxdViIH5mF2pxp2v6t/KyYNooA+G/U/vWo/atn3n+bI839Ov6pagE S+0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=ZGgT1hFMgp8SCEUMu0ofv/nKd4SmFdvFXao6FIoI+VY=; fh=cMc1l7/Ziau+3M1LdIHEIJSm2emWwZMHHuzvKBxv2j8=; b=X+QvuvrilfMdQ3cNn49ceWq31RN5CoamvwFwp9odH4wTZPkweiAbpnm1DaB3oSkTee AxNleV2ee38O/E9jre6jajJ2QgwtDHmbMV53armVsY52R81TfRgpwNZuEKaYtfWkK0J0 DC5nR5IVqTPKnaoiDLYQ63yUxNtkX9KsMulRhcJxEikJIWerfEKuvKxKiWARjVL04yoN Q7MT7NdPN6eU6Vdhw+V9MJuXMaQqNow908U+meLPGOAh2ilzyvGdCCtd2LFnbNMvV+ok U4rtnqLQgWG7+/HTKQc910PmCewErrjDUQ2+opLMwV7atjjO7RKWbcPvOZtvk+P3zQxl XNvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Aal0Vrql; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733bbc2d7esi1084006a12.0.2024.05.09.11.14.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:14:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174756-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=@gmail.com header.s=20230601 header.b=Aal0Vrql; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 9FFFB1F21EB8 for ; Thu, 9 May 2024 18:14:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B402A770FD; Thu, 9 May 2024 18:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Aal0Vrql" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 4EF6A2556F for ; Thu, 9 May 2024 18:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278460; cv=none; b=bqihNAPyF/tPFPhuospxVuKJeaCPz/WdllacPiZtR/PRePrQFkkFe4XqVA9U5eeGKjMWHXPMN3UFki+V0gPlMTOdY0MLjLdara+QUeZBUznV7zmobKz0cHuAMHsFTslOqgAtbAf5Zzs6+WeOiiTA4Ucpyw3RrioslN+kyvG4jH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278460; c=relaxed/simple; bh=u4dvkwzWHVULogOsMWvSG9SUp30Sev0URzMg9QiiN+s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=CKTApKdoY8EtdnOVLoDNgGuDTjuYpbn8J/hBJUra39leqejnWxgdQnD0B55T4dDxRvWONzhUKmn3PfRjRrfLhwnbUueXJWd7duxW8NY664okPBKY6Rrcp+TCjqtfsd/6aXpee/Q+to8qzdRAaBczaUOW2LoNGJzOd0AGG6kWEYU= 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=Aal0Vrql; arc=none smtp.client-ip=209.85.221.48 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 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-34d7d04808bso819685f8f.0 for ; Thu, 09 May 2024 11:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715278457; x=1715883257; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=ZGgT1hFMgp8SCEUMu0ofv/nKd4SmFdvFXao6FIoI+VY=; b=Aal0VrqlQkrwJmQwSO0wScYb0g6azd5/Bnd0tockjN4UmkziOxGOB6m+agau7cz+9K HG1UGa1P0l7KOhgTRwcSRDli5HvzfWVDlaH0DhFiPBwBHVmcy5r/kpWoedn+8Nfmv4NJ Pe4gT5QxrAxfVVE6EMYoXJfbZIjYwyu8plD4GFjDoUJH5yQ8NcFO3N56RH3vy7/LZzXe Xt6V9B/VB55MNiraz/U2WicOCEUBrlk94BZRXrtx97NPAr6F+WkYMNlwWF6w4fCa+gdx dGydYS+vL+bxFN9FVcZyA/xBtjr0oxsyb68l3/S+oP7oWn/thSdpxleMnIXzg48HCinO EeRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715278457; x=1715883257; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZGgT1hFMgp8SCEUMu0ofv/nKd4SmFdvFXao6FIoI+VY=; b=pUdo6DiyNzDQT38i3rAO6V/VIzwrYi0PFYS1iU2ngt1i7/3PuC1I0jThlaeN+72rEj RGWxSSgxCMaSH8nbnVFlgzBpoL2mqbsHZqMjaTVhooKxUAJOIm7um62kl9puy5cAsfAZ IfhMZM8maOiR7V09yOSolQLU2khECEUL7TxVqj+9zwtyHERPYcXMjbwUETfLuwCbfWOE 9oz9ajaGmcC+FueN+PlLZWK/aRaVwAZM7p3lbXaf4rqxJ0LXHVpAm383gj95a5mbHxVX K3FBuHyWfPJeyz00Iad+nn8h+SiFK7FDiMI8ebBGvb9MxUmVuTVRQh6RiglEzyH34F6r OmmQ== X-Forwarded-Encrypted: i=1; AJvYcCVsVVdtwi17cm9iL1UqqaEH/GRo9GXu3zXRT9kiSEc5InjLwQAL1KhNPmPwodrWb2iZsU5AvQ0d7Jz0rJD3Kji5OexoB2TdTubbp5Em X-Gm-Message-State: AOJu0Yw5gHTwZDUn1pb4vEhX3bJyNBzNnPheNGRty+xxc/T+PsLHLiF0 fngGnB2g7pcZyn/W9mbfMl0lSCZQIAhl4y6QUnP0JGwg9gMVq4G4 X-Received: by 2002:adf:e785:0:b0:34a:7a97:caa1 with SMTP id ffacd0b85a97d-3504a61c7bfmr373895f8f.2.1715278457363; Thu, 09 May 2024 11:14:17 -0700 (PDT) Received: from [192.168.1.130] (51B6DCE0.unconfigured.pool.telekom.hu. [81.182.220.224]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bd40sm2350566f8f.4.2024.05.09.11.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 11:14:16 -0700 (PDT) From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Thu, 09 May 2024 20:14:07 +0200 Subject: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable 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: 8bit Message-Id: <20240509-jdi-use-disable-v1-1-5c175b2ea1ee@gmail.com> X-B4-Tracking: v=1; b=H4sIAG4SPWYC/x3MwQpAQBRG4VfRXbs1Jsp4FVkw8+NKaG6k5N1Nl t/inIcUUaDUZA9FXKKybwlFnpGf+20CS0gma2xpKuN4CcKngoNoP6xgwDrj6uB8XVCqjohR7v/ Ydu/7AaqscXRhAAAA To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.13.0 Move DCS off commands from .unprepare to .disable so that they actually reach the DSI host. Signed-off-by: Barnabás Czémán --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c b/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c index 483dc88d16d8..f7222974d6ed 100644 --- a/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c +++ b/drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c @@ -169,6 +169,15 @@ static int jdi_fhd_r63452_prepare(struct drm_panel *panel) } static int jdi_fhd_r63452_unprepare(struct drm_panel *panel) +{ + struct jdi_fhd_r63452 *ctx = to_jdi_fhd_r63452(panel); + + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + + return 0; +} + +static int jdi_fhd_r63452_disable(struct drm_panel *panel) { struct jdi_fhd_r63452 *ctx = to_jdi_fhd_r63452(panel); struct device *dev = &ctx->dsi->dev; @@ -178,8 +187,6 @@ static int jdi_fhd_r63452_unprepare(struct drm_panel *panel) if (ret < 0) dev_err(dev, "Failed to un-initialize panel: %d\n", ret); - gpiod_set_value_cansleep(ctx->reset_gpio, 1); - return 0; } @@ -219,6 +226,7 @@ static int jdi_fhd_r63452_get_modes(struct drm_panel *panel, static const struct drm_panel_funcs jdi_fhd_r63452_panel_funcs = { .prepare = jdi_fhd_r63452_prepare, .unprepare = jdi_fhd_r63452_unprepare, + .disable = jdi_fhd_r63452_disable, .get_modes = jdi_fhd_r63452_get_modes, }; --- base-commit: 704ba27ac55579704ba1289392448b0c66b56258 change-id: 20240509-jdi-use-disable-ee29098d9c81 Best regards, -- Barnabás Czémán