From nobody Fri Nov 29 10:27:25 2024 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 5594E19A280 for ; Mon, 23 Sep 2024 13:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727098968; cv=none; b=IJv+OQIjPK9itjgVZGrNcljNAYxfkkdqjCsb05FU2VEFIUTDLHXGd70vpXNXfRtKI7kLDiL2Cp9JNTcbjafvUHttOubKi7f+QJt410hNGjlW38OPMkEakbQrBJnap5kkjR3vIem6o4papeRBZ5f5Vsi4PIDSLiB172exgrJdEmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727098968; c=relaxed/simple; bh=dvY61XPOEDJOu4nGQOpPZE7AO1OSZx66f6S6u6qvpfw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=r9onlXNumOY4zjh8ok6bFJueRdTs0+Bvf/LnR+Kg09SgTQG7BuM0/dRoIo0DrKSRckryhQRY7Rm8MS2fiB0CE/ed81D5Fwiz9uqj4bLLbiPMOvwhOOUUK1OAq81746z3dk9a5W8RapE0xZkwAA3/NaLqvyrhohblpHK/odUsJAE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=e4CumCGX; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="e4CumCGX" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-71797e61d43so381030b3a.2 for ; Mon, 23 Sep 2024 06:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1727098966; x=1727703766; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=rPhqRjNNh/t9DBBH4x5Du2CMHjjsRIVHlcU5KXqqEs0=; b=e4CumCGXVyfUlWmqK2Ksj2/KU+mtH59ePogk8rmd6Ah1evc5v1JpFLPpQjBbbqRwsh Cr3pWUbumFxZQOwlt+gI6AHAvqhTDQCQ4BCX5tA+q8fZyFKwxtivWwK7/p9De71nbFus SNc6TZDLUY51Z06znmtyHCNPCLfcdSskLZkgLkBcfgyKiiWc3XmooMzpRhxceOn5h/W4 E8rQ9qbJml/6P1hyQyE+hWovTn+29llepRNRFE1IA/BF78PdoKfZ4WE8W7eF5Xv7igzR k1+5rmXnpXmeL+5RUXIoTb2UI88lpRxhXeW5neFozvQAhvJnvYlDsis5DssrMebEywQw QecQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727098966; x=1727703766; h=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=rPhqRjNNh/t9DBBH4x5Du2CMHjjsRIVHlcU5KXqqEs0=; b=aprYwALU5h64dnKze4CvrSJA84ETFVV/IO1/bO0wjwfliMP2/ivDcImUmGugiBxhY/ 8ugVvDI0OZ2hsIkFtk0s7hwBIcxmMXE4SkpExMGzJekOszFGk3OVRFG9NUaDOlpH22XS R92mMJ6hufWJ+0B+QlVNGE59Y7q9Nu+7I9/KB6M3DOoPsuxssweVHAdoavYiXWk0E8X5 HBXmPhBz0hAaQdIRA028pb+85VIOK3JWM5KdEWETPKVmAorsG0AZJFJRPSPzU2PylsJ7 0Y0e7DhRlfMzgyERRHE687jCtkNqBDlZvwWvTNQq84soOa2VA6uoL3N+l7oOm5JT3x8K 1LdQ== X-Forwarded-Encrypted: i=1; AJvYcCXcx0iOqiMXuI2pkR+nayPa1REPFejEp0hAWolav/PNlg9WylDgsfV0P/0vRp9855qMmtAM2v8B9p9V2b0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3Rt8zrc0wQTw1b7sokkdEF6XLq4KaWZxbrelBDFhjVburDklk vocdQ51vCgbqm9BJqBk/PROFawcKxe3c6yI0QvwbEBLDYVKCyytSTkGrRHbEaUM= X-Google-Smtp-Source: AGHT+IFUaJAwMUGDJFH9Es4pl65+q0d8XrzZ89GzAkgl6X5XV1I6vVd20Bxg+YXdCaCdc9bgokljqQ== X-Received: by 2002:a05:6a00:3e17:b0:70e:acd0:d8b6 with SMTP id d2e1a72fcca58-7199c8456d1mr6828766b3a.0.1727098966486; Mon, 23 Sep 2024 06:42:46 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944b97302sm14376009b3a.147.2024.09.23.06.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 06:42:46 -0700 (PDT) From: Zhaoxiong Lv To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, dianders@chromium.org, hsinyi@google.com, awarnecke002@hotmail.com, dmitry.baryshkov@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v2 1/2] drm/panel: jd9365da: Modify Kingdisplay and Melfas panel timing Date: Mon, 23 Sep 2024 21:42:26 +0800 Message-Id: <20240923134227.11383-2-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240923134227.11383-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240923134227.11383-1-lvzhaoxiong@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In MTK chips, if the system starts suspending before the DRM runtime=20 resume has not completed, there is a possibility of a black screen=20 after waking the machine. Reduce the disable delay resolves this issue,=20 The "backlight_off_to_display_off_delay_ms" was added between "backlight off" and "display off" to prevent "display off" from being executed when the backlight is not fully powered off, which may cause a white screen. However, we removed this "backlight_off_to_display_off_delay_ms" and found that this situation did not occur. Therefore, in order to solve the problem mentioned above, we We reduced it from 100ms to 3ms (tCMD_OFF >=3D 1ms). This is the timing specification for the two panels: 1. Kingdisplay panel timing spec: https://github.com/KD54183/-JD9365DA_Power-On-Off-Sequence_V0120240923 2. LMFBX101117480 timing spec: https://github.com/chiohsin-lo/TDY-JD_LIB Fixes: 2b976ad760dc ("drm/panel: jd9365da: Support for kd101ne3-40ti MIPI-D= SI panel") Fixes: c4ce398cf18a ("drm/panel: jd9365da: Support for Melfas lmfbx10111748= 0 MIPI-DSI panel") Signed-off-by: Zhaoxiong Lv --- Changes between V2 and V1: - 1. Modify the commit message=20 - 2. Modify the value of backlight_off_to_display_off_delay_ms. v1: https://lore.kernel.org/all/20240915080830.11318-2-lvzhaoxiong@huaqin.c= orp-partner.google.com/ --- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c b/drivers/gpu= /drm/panel/panel-jadard-jd9365da-h3.c index 44897e5218a6..486aa20e5518 100644 --- a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c +++ b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c @@ -858,7 +858,7 @@ static const struct jadard_panel_desc kingdisplay_kd101= ne3_40ti_desc =3D { .reset_before_power_off_vcioo =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 10, - .backlight_off_to_display_off_delay_ms =3D 100, + .backlight_off_to_display_off_delay_ms =3D 3, .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, }; @@ -1109,7 +1109,7 @@ static const struct jadard_panel_desc melfas_lmfbx101= 117480_desc =3D { .reset_before_power_off_vcioo =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 10, - .backlight_off_to_display_off_delay_ms =3D 100, + .backlight_off_to_display_off_delay_ms =3D 3, .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, }; --=20 2.17.1