Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp446032rdb; Mon, 18 Sep 2023 23:16:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqKJtKG2lUoUiA2Pi3TVEpJxkT2WZZ52tveI9jT6VRpUik65sxgSenIfTxA5D+fEwidHCw X-Received: by 2002:a17:903:11cc:b0:1c3:be1f:5a20 with SMTP id q12-20020a17090311cc00b001c3be1f5a20mr14146054plh.23.1695104179202; Mon, 18 Sep 2023 23:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695104179; cv=none; d=google.com; s=arc-20160816; b=IgbnawBCMbjFLE+fxZMdOSVSS7YJP4RKasEtsSfKjdB56+mhlouS5k9S/oHGkOHShm Y0hI19/q3pUiw6nFdnzPCwTqwjUYRDdqYIF6dpKE5EObNtp6PtYQN+gsIgiNfodSC63h BEvdpsceQvB+RVVTEijl1fLqmu16GB4kKSwS0bHsrZ1iVW4YtVVvqfnsE2abRVfW6MzM n51ieKytNwBi1Zb5JJF7jjJzxgDbDW/Lpbg5uCVw7RoM60AzFgaGpBPl/tuXXeV1DdLY WZFo79laxZUq35PubaX7XmjlX0qOW3b2uJPUezHXnK1JoKSbvBwVYsUZvztI86nBe/iX HprA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=xBjUrTB1h6HTKFJu/vUBibZ6e10SxFFPD/tWImLBD8M=; fh=gEuqQnskuLp19ZkxZDJtCpEyDtJ3ksmci/m082LpoGQ=; b=kki9XRsKiRx9ebVdWdKZRedwQpnXtDEQtMZTFxdNUM/aUvJ2fhHtGLPh5NXg+cwNlX Ebpa9rFIiqXyBtGYUFD9NelNtxFJNV5OPKywIoXhKn9/vQhWKD69J5yVYQnhNPSufrv2 KmHhX+wXmSZa3Ic5LA5ThbzGOi64ms2wyMHE0ghYrknEvj3KwDnULXbjcsSzdOX5qL12 3A7eD0Cga+XiiQD0u61CMh9ogke3J/y6g1E+n3SO0hPl5wV+sm7LLVevJ7GQ0fh7IfvT /4gqO0ZqMs3uX9q5JgOAjj2Epz5A/biGRp1IWONxMStpBm0BJlUrq1G4IcGDQwPutmOr wqsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=aQOTQq7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c16-20020a170902d49000b001ae40e07fb0si9468258plg.216.2023.09.18.23.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 23:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=aQOTQq7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 89396830D375; Mon, 18 Sep 2023 14:35:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbjIRVfB (ORCPT + 99 others); Mon, 18 Sep 2023 17:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjIRVfA (ORCPT ); Mon, 18 Sep 2023 17:35:00 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 429C18E; Mon, 18 Sep 2023 14:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1695072893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xBjUrTB1h6HTKFJu/vUBibZ6e10SxFFPD/tWImLBD8M=; b=aQOTQq7w9HVWKEl0ATGzAh6PQ68Fgak1vuBqlFH2PMpa73jk/hz3ktOCyM6KqF5vPaQVDD T6WzM8kGPKD3VyhTy/yiueGnkmcvCz7ayvx/2IyJrx3Ju0jTaZirSFgcSwh14GGtU1Lc5R h1botIamZ9WUbqAXcIve+PAvDpwEJos= Message-ID: <0d6b0159552b10548391a9bd88449d12c13fdcd6.camel@crapouillou.net> Subject: Re: [RFC PATCH v2 3/9] drm/panel: nv3052c: Sleep for 150ms after reset From: Paul Cercueil To: John Watts Cc: Jessica Zhang , dri-devel@lists.freedesktop.org, Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Heiko Stuebner , Chris Morgan , Jagan Teki , Christophe Branchereau , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 18 Sep 2023 23:34:51 +0200 In-Reply-To: References: <20230918125853.2249187-1-contact@jookia.org> <20230918125853.2249187-4-contact@jookia.org> <7fc1ca68-ca7c-59b2-0b70-27bc34d83cee@quicinc.com> <4d2079d66249a7052acded0abf30169a4e95d151.camel@crapouillou.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 14:35:00 -0700 (PDT) Le mardi 19 septembre 2023 =C3=A0 07:08 +1000, John Watts a =C3=A9crit=C2= =A0: > On Mon, Sep 18, 2023 at 11:01:15PM +0200, Paul Cercueil wrote: > > The datasheet does say a 5ms sleep time is necesary after a reset. > > I > > assume the 120ms delay you quote is when a *software* reset is > > performed in Sleep-out mode. The code here does a hard-reset. > >=20 > > Cheers, > > -Paul >=20 > Hello Paul, >=20 > Section 7.3 of the data sheet (AC characteristic) says that the reset > can take > up to 120ms to complete if the reset is applied during sleep out > mode. >=20 > John. The driver is guaranteed to always reset the panel in sleep-in mode - as long as the panel was off when the driver started. What I'd suggest if you really need to support a case where the panel was enabled by the bootloader, is to read the 0x0a register after enabling the regulator to read the mode, and sleep 120ms if it was in sleep-out mode. But that's only if it's a case that you can test with. I won't accept a patch that makes sense on the surface if it addresses a corner case that nobody ever tested for. For what I know, this patch just adds a huge delay to panel boot-up for all existing users for no valid reason. Cheers, -Paul