Received: by 2002:ac8:7144:0:b0:40f:fb00:664b with SMTP id h4csp1900582qtp; Mon, 18 Sep 2023 07:21:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiLeaumesygaOVKTwxCwYwa0DGZZp9VPn171vXcHmKE14aagbReR7ko38g8ydhro7mCB+y X-Received: by 2002:a05:6a00:1805:b0:68b:ff3b:e14a with SMTP id y5-20020a056a00180500b0068bff3be14amr11126733pfa.18.1695046904915; Mon, 18 Sep 2023 07:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695046904; cv=none; d=google.com; s=arc-20160816; b=OXmQxlE8OPyz9imxUcU3vB4p70eKBetEpFVpR2I8op84NGKbRkT5eAI9eBXhiR6s9r EC6bBNXed0PDcX7qd3h5Q3eOqrayG9pWrm62V1ivJWI4HHPQv2r081MyeIXoDA+Jw/ld pFuIjeAKNl99PLt7ruQGjzE98vwE1twuLIstDf0gOMm9MHU7sDzSMmHm75gHS3eFGxWZ O4wEOqSlFHHTfwLn2aIA6fSSQUBgtVmXwSrQf3Y/UqSq7pkxK8tEp0TR8/SJPKduZqdD w6hwjOgWwXP4nkcO4s/NDTdEFnmHMckPmFYMvXDfsADs/Uuso/jantmFo9tsqVIKasFr et1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZJIBmn1MRAFelLIOs/v4ao97mYf3xkRoyjgfFYfZY14=; fh=5op+vZ8ZrQJmWba1Le7ulO5lcdsd3PPtOBYLc/nCXxw=; b=bVGlRVUPq8ogI4YcjC4w1o5YB+O29Ny/EfyFdRL6S4uC+vnv/OSFGGCTyh0GvKdyYm E6o4lnt0Iw4mCEWF2vhpuJ3LSSy2bEM93mAapLWfetlj+e5mxrb5fECmBjTuMJD58hm0 UsbHHHRuat2QROj6mqFYMfXUyQ6AjR/8A7hliRWKpGD4tgAY4xWMCFNcxymmal8CUfzj M4lMduVYHJZfVLJkfBlVCbgTFLRGFfdGxzI31Ck8zIhgtVBc+UYJ8otm7m9BDq610NNJ CMid6D7k19NUY4xHlSH99YgUdqT1rmgrsQVQZxbbK2YKDd/s50FrUcMEnAiwLzHFDVyO mw+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=Eis19EUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a23-20020a62d417000000b00690b6d83e0bsi346060pfh.186.2023.09.18.07.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 07:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=Eis19EUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2602980E6FF6; Mon, 18 Sep 2023 06:01:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242130AbjIRNBP (ORCPT + 99 others); Mon, 18 Sep 2023 09:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241965AbjIRNAs (ORCPT ); Mon, 18 Sep 2023 09:00:48 -0400 Received: from out-217.mta1.migadu.com (out-217.mta1.migadu.com [95.215.58.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB01171C for ; Mon, 18 Sep 2023 05:59:49 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1695041988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZJIBmn1MRAFelLIOs/v4ao97mYf3xkRoyjgfFYfZY14=; b=Eis19EUqt8F5IEwvw8k8WICesKIk8mVKQTgQ2JtVlQ/Nd4QR4TvsAVTHDbc7M7b42hC7p0 HS5d2/tBiclp2l0szNn3Okmly9q+c3ItDNH4jvU5omvCbV7IKjoubgcAtTLWHMJs1TA31C +WlvwkLUU08ypgbbDuXItBJsRZrGhswphsJlKkfbY5BoaoDtSPqEqUO9w+6X2mUgCAdoWG rVh6KTD3HCE1JP+1fNIXeyjTQ92DDOp2Sofq66TDpgiEkUdyPlGZBE47KfCFmhLfZb60Zy 9bXFmY14ySAJWn4Rh91RL4BCJtw7WYIKn8egenwedBwEaekOLajEmgrVA7on9w== From: John Watts To: dri-devel@lists.freedesktop.org Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Heiko Stuebner , Chris Morgan , Jagan Teki , John Watts , Paul Cercueil , Christophe Branchereau , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 4/9] drm/panel: nv3052c: Wait before entering sleep mode Date: Mon, 18 Sep 2023 22:58:48 +1000 Message-ID: <20230918125853.2249187-5-contact@jookia.org> In-Reply-To: <20230918125853.2249187-1-contact@jookia.org> References: <20230918125853.2249187-1-contact@jookia.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 06:01:53 -0700 (PDT) The panel needs us to wait 120ms between exiting and entering sleep. Guarantee that by always waiting 150ms before entering sleep mode. Signed-off-by: John Watts --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c index 2526b123b1f5..307335d0f1fc 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c @@ -289,6 +289,9 @@ static int nv3052c_unprepare(struct drm_panel *panel) struct mipi_dbi *dbi = &priv->dbi; int err; + /* Wait 150ms in case we just exited sleep mode */ + msleep(150); + err = mipi_dbi_command(dbi, MIPI_DCS_ENTER_SLEEP_MODE); if (err) dev_err(priv->dev, "Unable to enter sleep mode: %d\n", err); -- 2.42.0