From nobody Fri Nov 29 22:56:15 2024 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 A6F0E13B590 for ; Sun, 15 Sep 2024 08:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387862; cv=none; b=F/lzu/zZJkY/POTZSsPedtaYkZTehIb9xZF6weyPUsLAgkkwJF8ZWYg3j5PRCJk5ddCOvhkYNkXXrEzerz70M3+Bav8k5fS5bzsJI5+chUkHwnH66qCXctViwuVsb9rHYVqlpNq11CiMzeoVNWbI/C/74VyUScFqSefW7oNCK9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387862; c=relaxed/simple; bh=1UAnYDW0MGQxfNhUqb3o5IVqhK9bipaUoybWUt7aUL8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=tHeBOAZcCpZCQsH0p6Fj2+uH8KQ/ev5PjqJ9VegVNiVbwuyUkcOalQNo5ueFqyBAUyR8UyFCxwg0fGE1YmZ7NSRTEX16ShrBeYMmeg5v6vGhJfYybDLBrGHIFFe923LNW8XbQvj8qAaUCIsH0hBN1MovHdT1Vr9xzsMQMJQtEmk= 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=DtuYbJOm; arc=none smtp.client-ip=209.85.216.54 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="DtuYbJOm" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2d88ec20283so292110a91.0 for ; Sun, 15 Sep 2024 01:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726387860; x=1726992660; 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=sRDTLwONqQd982ElhveII1b1cUAuGyre5X0fuHS6yLY=; b=DtuYbJOmq6xJ17B6OSanv/VKAzfqoae2uRoVYIHfRMna4sMRx8cCKLQO4iaOHJQj5x Ijosq4o6L0fnfmNB9MoES8IKNfT2Z17b4My3WudPhX95PYog7cx6zDFTcegYYa4MUHWl gQ/ej6EjM+eLRXx2P3qG/YcRPi95cqnaVDKf/E7Ez5mI4aGJYJjm6RTZF7EoDWPaIgMe wY6N1tLmMmmahOgvm7y62CNMI0/zEqrE+AtV6dY1JSvpaovfCvCXABLbpeiV7chY0yPn MX9stx23wHbOtymiyLkdSAh2yYaa3EBX1XCsGY+c+/OK+KTBT5H6wrKTl7PjkLsoTtEK ezbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726387860; x=1726992660; 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=sRDTLwONqQd982ElhveII1b1cUAuGyre5X0fuHS6yLY=; b=YZJmi1j5S4u/9lnNRYGOJ3RFWQGz36kQ75SW40jOfXsPOk8T/34QBJ5vBVUxYJX8cJ eCSL6xkCld0cA7utby79Yq0yxa7LkQXctRYuxwohQ8K+qfPgquVFHQQWOrenxC1l+/My BiIiPM5MDAP3efPkuX4GMA15wsY+IEpFyBxNX6GUr6Ag5vAzCnfii9fZj98HPtlcoIvz SKH8LcLwEz0NSD2GRADXZQa6u1SBLnhT+2B7nUmCOfKpBwzXzGgtHjTsq3YDHRpoSj4d yNCHAiD/jWtBE1BeBkPJfi27VuGAKzux0LsmvSN6/agH+YijMMCHjg6nlfdZ66FEzYF0 erzQ== X-Forwarded-Encrypted: i=1; AJvYcCWeHodKMLFe3+YiPKCVVuTXw2DXl9qm/rkQiJWHom0i/RslxK7KpvbpQ1D09LW3KgsX9kpk8JZxry2s8CY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7FuEnz6tixPXW/ouVe2i0Vl6R+LOZB1tckhb+UWiKqzULy7vK QEVOS8hBwFB0iHbXERLACxtAx2RcbtNFOxMmivhdcSSz6dbhUvJbpKwAC5xIljo= X-Google-Smtp-Source: AGHT+IGklY3LMqjEheyFTix+dZ97vdFbx9qbo4QLsOK0vJc+LXtmYTKaliThR6RCom4pnnRpY/hUkQ== X-Received: by 2002:a17:90b:104a:b0:2db:60b:3669 with SMTP id 98e67ed59e1d1-2dba007c325mr5338573a91.8.1726387859978; Sun, 15 Sep 2024 01:10:59 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbcfd26f2csm2662672a91.31.2024.09.15.01.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 01:10:59 -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 v1 2/2] drm/panel: boe-th101mb31ig002: Modify Starry panel timing Date: Sun, 15 Sep 2024 16:08:30 +0800 Message-Id: <20240915080830.11318-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240915080830.11318-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240915080830.11318-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 order to meet the timing, remove the delay between "backlight off" and "display off", and reduce the delay between "display_off" and "enter_sleep" Removing variables: display_off_to_enter_sleep_delay_ms Signed-off-by: Zhaoxiong Lv --- drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c b/drivers= /gpu/drm/panel/panel-boe-th101mb31ig002-28a.c index 0b87f1e6ecae..c2d0ec199829 100644 --- a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c +++ b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c @@ -29,7 +29,7 @@ struct panel_desc { bool lp11_before_reset; unsigned int vcioo_to_lp11_delay_ms; unsigned int lp11_to_reset_delay_ms; - unsigned int backlight_off_to_display_off_delay_ms; + unsigned int display_off_to_enter_sleep_delay_ms; unsigned int enter_sleep_to_reset_down_delay_ms; unsigned int power_off_delay_ms; }; @@ -184,12 +184,10 @@ static int boe_th101mb31ig002_disable(struct drm_pane= l *panel) panel); struct mipi_dsi_multi_context dsi_ctx =3D { .dsi =3D ctx->dsi }; =20 - if (ctx->desc->backlight_off_to_display_off_delay_ms) - mipi_dsi_msleep(&dsi_ctx, ctx->desc->backlight_off_to_display_off_delay_= ms); - mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); =20 - mipi_dsi_msleep(&dsi_ctx, 120); + if (ctx->desc->display_off_to_enter_sleep_delay_ms) + mipi_dsi_msleep(&dsi_ctx, ctx->desc->display_off_to_enter_sleep_delay_ms= ); =20 mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); =20 @@ -275,6 +273,7 @@ static const struct panel_desc boe_th101mb31ig002_desc = =3D { MIPI_DSI_MODE_NO_EOT_PACKET | MIPI_DSI_MODE_LPM, .init =3D boe_th101mb31ig002_enable, + .display_off_to_enter_sleep_delay_ms =3D 120, }; =20 static const struct drm_display_mode starry_er88577_default_mode =3D { @@ -302,7 +301,7 @@ static const struct panel_desc starry_er88577_desc =3D { .lp11_before_reset =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 50, - .backlight_off_to_display_off_delay_ms =3D 100, + .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, .power_off_delay_ms =3D 1000, }; --=20 2.17.1