Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp268756rdb; Mon, 18 Sep 2023 14:42:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGL52B5FVDdY4ZQuCA/sJ7Deyd4/1HfN1V0aIx0+bp2iaLDtOr2bnwSf6gGOODU42Th0hBv X-Received: by 2002:a17:90b:1911:b0:261:685:95b6 with SMTP id mp17-20020a17090b191100b00261068595b6mr9175681pjb.13.1695073348172; Mon, 18 Sep 2023 14:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695073348; cv=none; d=google.com; s=arc-20160816; b=Oo78ShmrycaXK887u/KFlQKWboej0SZhABzk/L6Sbx14Yom6Arqw4ezVr+JDcjC2wr wW8r2PEdBFp9GZBUDIMFsRkyy/jBDXeFnmjfwQnaW7enhpNM6EN/XqkdO9R6mksZtJTL Yt0aazVvYTBmP/acMf8eZ8CUOH7DUKxDHaZosQNDzQJMNNG9iyT7WHLyBqzDSTGOIpFz tbVVDK7fW6I+PzTJCaAQkHkCaA9AAWEohlodcRhAA9NsLySN7Y+6vt0YW6GsK439C249 JMpCIXfLF7asIW8CabdVqKzHFdRVr0iWdlhU4DX4zbhE6/EuMTR8kdjqhaSOhLF4BvH0 TBCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qoL1peJgI4Z3/seMES33sPfDRXNv7Ya2/T8Tlk0Bs00=; fh=wXvi82uT1gXzEZed0YaOOizEY7KTpL6HALqPcdd9RYk=; b=Vvlg3uKeiUBA6+7lnuWohU6r0ZvWOjg15HQaxePfTWQDzqFghJhLr0mjGCEkcVn1VG fWDLWfWnZx5Skv+h3xfr3n0R0PWRKxnXcWF7bf5c2RF1cyP+5ouJ/5/0Z83hrZw83nng nsfj9Dot1Wljv0UyAZ1p5ni3v5dtDyEGKUkTek8xvPme7ytg6BTaojqJ7O+ROiaqfLY0 qwVVMrvxJjwP4Dyh8sPoSoWKNJ/rPr5Xp7z30ntFp8muSo1LWO7GYSjQPTy5bR2FnWru EvTV8EAQFibkBFRWHyUms5NP89FzCGJav1WPqP541tKHzuHKJs3aYhSjLF2CocoahU+X HA6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Tm40X+na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ck16-20020a17090afe1000b00274d3f62044si4008263pjb.111.2023.09.18.14.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 14:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Tm40X+na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id ACDC4801C593; Mon, 18 Sep 2023 13:19:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjIRUTb (ORCPT + 99 others); Mon, 18 Sep 2023 16:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjIRUT3 (ORCPT ); Mon, 18 Sep 2023 16:19:29 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E0A210D; Mon, 18 Sep 2023 13:19:23 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38IJVARB008267; Mon, 18 Sep 2023 20:19:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=qoL1peJgI4Z3/seMES33sPfDRXNv7Ya2/T8Tlk0Bs00=; b=Tm40X+naZD9DpiigjEk8e29h8Nr3A3yT3OfQ2KQzKDc8MDPk7CU20uh3r8IYWESGU1LO Yq8l287eFkzRwhHTyTfdc66ktaO7nH/Zw4PoHkgPpKTBJdorf3SSzIz0lPjlULJaJ182 W4MSqHwumoBCGR/APBswTKfRNXjLbuN9wjZ2d9E+NXAHsvnD30+vgGVnuX4mgSM5zpBB CsWmGPFN3rGCdWPBXMo2yemFTVzL7jKhiH2WT4cMl8JJb4kl7LbZootZOHtB51vQPj9L 5wK715T1p74gLizTargvvvrsqg7ZYlLRgZcoEwUDHT69Y+p/R0/8WRyACGCM8vqgLRWw Uw== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t6trqgbj6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Sep 2023 20:19:05 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38IKJ47X027242 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Sep 2023 20:19:04 GMT Received: from [10.110.125.66] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Mon, 18 Sep 2023 13:19:03 -0700 Message-ID: <7fc1ca68-ca7c-59b2-0b70-27bc34d83cee@quicinc.com> Date: Mon, 18 Sep 2023 13:19:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 3/9] drm/panel: nv3052c: Sleep for 150ms after reset Content-Language: en-US To: John Watts , CC: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Heiko Stuebner , Chris Morgan , Jagan Teki , Paul Cercueil , Christophe Branchereau , , References: <20230918125853.2249187-1-contact@jookia.org> <20230918125853.2249187-4-contact@jookia.org> From: Jessica Zhang In-Reply-To: <20230918125853.2249187-4-contact@jookia.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ayYnVZ53QKPnSQW0EEoa2IqOF-3MnFQ4 X-Proofpoint-ORIG-GUID: ayYnVZ53QKPnSQW0EEoa2IqOF-3MnFQ4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-18_09,2023-09-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 impostorscore=0 clxscore=1011 lowpriorityscore=0 malwarescore=0 mlxlogscore=999 priorityscore=1501 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309180177 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:19:46 -0700 (PDT) On 9/18/2023 5:58 AM, John Watts wrote: > The current code waits after resets for 5 to 20 milliseconds. > This is appropriate when resetting a sleeping panel, but an awake panel > requires at least 120ms of waiting. > > Sleep for 150ms so the panel always completes it reset properly. > > Signed-off-by: John Watts Hi John, Just wondering, is there some context to this change? I.e., was this made to fix a specific issue? This seems like a pretty significant increase in wait time so, if it's not a fix, I'm not sure if this would be an improvement on the current behavior. Thanks, Jessica Zhang > --- > drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c > index 90dea21f9856..2526b123b1f5 100644 > --- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c > +++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c > @@ -258,7 +258,7 @@ static int nv3052c_prepare(struct drm_panel *panel) > gpiod_set_value_cansleep(priv->reset_gpio, 1); > usleep_range(10, 1000); > gpiod_set_value_cansleep(priv->reset_gpio, 0); > - usleep_range(5000, 20000); > + msleep(150); > > for (i = 0; i < ARRAY_SIZE(nv3052c_panel_regs); i++) { > err = mipi_dbi_command(dbi, nv3052c_panel_regs[i].cmd, > -- > 2.42.0 >