Message ID | 1673330093-6771-3-git-send-email-xinlei.lee@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2572093wrt; Mon, 9 Jan 2023 21:55:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXuH8zM6AsnBUw439KSJPGr1GmeiLlYzEg85wbG6T5wma65BYz3n134DnzeePYIEo/yl5We2 X-Received: by 2002:a17:902:7c95:b0:190:ee85:b25f with SMTP id y21-20020a1709027c9500b00190ee85b25fmr64085009pll.48.1673330135795; Mon, 09 Jan 2023 21:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673330135; cv=none; d=google.com; s=arc-20160816; b=N+F7OlVFfkceUbhYXEqGdpu5jkoEjlb72f9YB6awlaDbW2M26QYKStpuqR5oDh6oDr Z825TB8NHvFl+sD9m9XWoHcNLvmrSFeviaC83zT9noDkYRESJEwXSyqMCHzF82TiQ5wU bePGsB+H/RFk9njCTKLudS5y9Z5J/BBJFKJERyS5BScMvpHQU1Ck7RnmJvbgIDWc5SjG rqXspOtC4GcQdeKO6y3RxlHlk+AtkT4oC++pjvD4V5zQDRzKmJsyuZnI5K9LrIpkR7Sp uu8IpZi6XYoBQ+D/a88jleMyUSw2OI5bLm/1hTYwSNNGSTZcfVpZutndYSjh5Clk6uPK GoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nWLgk4eMZAsD/bVVJsuHq4USM6+AlpxQ1BjwEy3BOtI=; b=VYIzKrDc0cP4rWOLsnaN2F2zozFlPGteEF2sOCCiI22+KX4YGHUuHt78PWmJegmTjx 4K/tXhm+Sy5XQj7CN1sXAAc6Nz4g9uOVZdfL9Rr/03jl06mhuhwcSI8g1KV7cx487jnX eDeo5XWc4tohPyD3dWI78vFGe8l/mpaSnmFsbb31XL/YuN5O5t0brxm1d2kMm+SzFXxN F77Fd51Ld2yJb1ja54Aumpp6t6XtkT4LKdejBatnZ/7gwlv7BSrn/xvTY1+6/q7oJ8qb ehMVN3m27DNGQKlv/nx8TVYInSNQZczYKG+VSb3idDBkvHckvH49KI5JP0ZSwadl+3/D h+MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AjoFMeWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a170902ecca00b001899477302bsi11844197plh.588.2023.01.09.21.55.23; Mon, 09 Jan 2023 21:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AjoFMeWj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbjAJFzL (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Tue, 10 Jan 2023 00:55:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229825AbjAJFzI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Jan 2023 00:55:08 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31139228 for <linux-kernel@vger.kernel.org>; Mon, 9 Jan 2023 21:55:07 -0800 (PST) X-UUID: 9c63082d06cb413d83ea5259b7a679fd-20230110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=nWLgk4eMZAsD/bVVJsuHq4USM6+AlpxQ1BjwEy3BOtI=; b=AjoFMeWjSTcaoplCjp0Nj/sQ/wFeU1vDV8nmxX7Cu7KTN8PDLJxaCQv8MiAjiUOO7T+a4gcpctuHz7LD3RzPrxH0pgEfRcL3twUSHHC7mqYTs/fh+NnciZ9sxcnG7C+zMS8moVa3BkydKnB1JJcQDdC5IwAA/FXyPN9kodytpig=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:d6ec38e1-cd93-425c-820a-b82f0ea33da3,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.17,REQID:d6ec38e1-cd93-425c-820a-b82f0ea33da3,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:543e81c,CLOUDID:6a145bf5-ff42-4fb0-b929-626456a83c14,B ulkID:230110135504Y3UIY4NA,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0,NGT X-UUID: 9c63082d06cb413d83ea5259b7a679fd-20230110 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from <xinlei.lee@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1791422995; Tue, 10 Jan 2023 13:55:01 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 10 Jan 2023 13:55:00 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 10 Jan 2023 13:54:59 +0800 From: <xinlei.lee@mediatek.com> To: <chunkuang.hu@kernel.org>, <p.zabel@pengutronix.de>, <airlied@linux.ie>, <daniel@ffwll.ch>, <matthias.bgg@gmail.com>, <angelogioacchino.delregno@collabora.com>, <jitao.shi@mediatek.com>, <thierry.reding@gmail.com>, <sam@ravnborg.org> CC: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Xinlei Lee <xinlei.lee@mediatek.com> Subject: [PATCH v2 2/3] drm/panel: boe-tv101wum-nl6: Reduce lcm_reset to send initial code time Date: Tue, 10 Jan 2023 13:54:52 +0800 Message-ID: <1673330093-6771-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1673330093-6771-1-git-send-email-xinlei.lee@mediatek.com> References: <1673330093-6771-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754613820480887628?= X-GMAIL-MSGID: =?utf-8?q?1754613820480887628?= |
Series |
Reduce lcm_reset to DSI LP11 send cmd time
|
|
Commit Message
Xinlei Lee (李昕磊)
Jan. 10, 2023, 5:54 a.m. UTC
From: Xinlei Lee <xinlei.lee@mediatek.com> Since the panel spec stipulates that the time from lcm_reset to DSI to send the initial code should be greater than 6ms and less than 40ms, so reduce the delay before sending the initial code and avoid panel exceptions. Fixes: a869b9db7adf ("drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel") Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com> --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 1 - 1 file changed, 1 deletion(-)
Comments
Il 10/01/23 06:54, xinlei.lee@mediatek.com ha scritto: > From: Xinlei Lee <xinlei.lee@mediatek.com> > > Since the panel spec stipulates that the time from lcm_reset to DSI to > send the initial code should be greater than 6ms and less than 40ms, > so reduce the delay before sending the initial code and avoid panel > exceptions. Please change the commit title to describe what you're doing. drm/panel: boe-tv101wum-nl6: Remove extra delay in init commands ....and the commit description should also contain something like Reduce the delay after LCM reset by removing an extra delay in the initialization commands array. The required delay of at least 6ms after reset is guaranteed by boe_panel_prepare(). Regards, Angelo
On Tue, 2023-01-10 at 10:20 +0100, AngeloGioacchino Del Regno wrote: > Il 10/01/23 06:54, xinlei.lee@mediatek.com ha scritto: > > From: Xinlei Lee <xinlei.lee@mediatek.com> > > > > Since the panel spec stipulates that the time from lcm_reset to DSI > > to > > send the initial code should be greater than 6ms and less than > > 40ms, > > so reduce the delay before sending the initial code and avoid panel > > exceptions. > > Please change the commit title to describe what you're doing. > > drm/panel: boe-tv101wum-nl6: Remove extra delay in init commands > > > ....and the commit description should also contain something like > > Reduce the delay after LCM reset by removing an extra delay in the > initialization commands array. The required delay of at least 6ms > after > reset is guaranteed by boe_panel_prepare(). > > Regards, > Angelo > Hi Angelo: Thanks for your suggestions and careful revisions, I will revise my commit description. Best Regards! xinlei
diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c index 857a2f0420d7..f0093035f1ff 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -780,7 +780,6 @@ static const struct panel_init_cmd inx_hj110iz_init_cmd[] = { }; static const struct panel_init_cmd boe_init_cmd[] = { - _INIT_DELAY_CMD(24), _INIT_DCS_CMD(0xB0, 0x05), _INIT_DCS_CMD(0xB1, 0xE5), _INIT_DCS_CMD(0xB3, 0x52),