Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp150089rdb; Mon, 18 Sep 2023 10:38:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIhs1c49uoeRaBzrU5zx89ScPNCemUpaJEsWslziz4CmTIfeq76GAgz2g9TKtno292bMUE X-Received: by 2002:a17:902:e54e:b0:1bc:5e36:9ab4 with SMTP id n14-20020a170902e54e00b001bc5e369ab4mr382724plf.21.1695058727392; Mon, 18 Sep 2023 10:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695058727; cv=none; d=google.com; s=arc-20160816; b=GX8NZgtLcX6SO7e0t3AxqpdVA1mmRHGAXJDSvmbFH+JpzYSSEAFXl1qX2bl32Ac2CA B5f4rRd/XB3A1tbuwRb6vd6CGZI+esyDpfL1pl7FmP1JzDehcNFCxQDCJ7qvq4po7Hwd LWqVcmDa+oSrLV5OvOlGZ51ZdKZxOV5heG0UGQfoWUZ+DQlzajvw8ps9Fjj7WIf3ZdKf PicHw519A9xrawP7ahITkNn3a1FfUDImfmYfxsaQ9Bmd5ACotvox+Xps59jiJa30ZM4x enBFobooDu8bH0bXdnnLK20P5Oi9doTMOKpIxPhFW2znsir00FZ/E7BhCdCJVBnAtT2C vzmg== 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=QEybRG/z/QiYL8x5ls+wYPU1myIjvupP8IAsRIKh5xg=; fh=5op+vZ8ZrQJmWba1Le7ulO5lcdsd3PPtOBYLc/nCXxw=; b=p41VBTDlViItp4CDJGUmOsg3YAzCucEC0tigf6ApkOkgsiJzkXodPNhoQavRO8pFJP 1P/u+nGOXdFXo9OQuFNJHufkOaMqEQMvG2UKO7DA5EP9fmBVa1W0RNKlKGG2vbT64yjw XUaUdeAsLsAwqbrS3Lj/qF7m3dU4H+wY4ilNz0s6dTEmwPuUoGbTpelr1iD1gtDObmkC f7+hOpsBQJl+9I8LOFLQDzVINX1deKFQ5mxZthvy6TF0IGomYrOhQXz6nW7WXR/Lx3kS +PbHYzWxJ72qSfikc/4uahiKO1U4KZ44iGu/BDI0MV+qigQ9Gop4nKuPLrYjOuimi+XE g+6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=FEW+MOpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a15-20020a170902eccf00b001c0c4be62basi8639948plh.617.2023.09.18.10.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=FEW+MOpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 18E3E80870E3; Mon, 18 Sep 2023 06:01:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241815AbjIRNAo (ORCPT + 99 others); Mon, 18 Sep 2023 09:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242096AbjIRNAf (ORCPT ); Mon, 18 Sep 2023 09:00:35 -0400 Received: from out-225.mta0.migadu.com (out-225.mta0.migadu.com [IPv6:2001:41d0:1004:224b::e1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D79DCC7 for ; Mon, 18 Sep 2023 05:59:42 -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=1695041980; 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=QEybRG/z/QiYL8x5ls+wYPU1myIjvupP8IAsRIKh5xg=; b=FEW+MOpwp9cGHz48fZOCAK7zxLfyFA4CUAFrB6PZomcNlEIGsGhUu9YN+yjVZsm6WpQWNR DPyIrvPVPIkHZ81tGtQ/L+knTLJ0LPoF3thlOez1lfZ4zx3z+WQ4PcwvprhmkX53U9r4cG 6vdfCR8dAmEptpSNt3V8vFaaFd+cZ5a1V4F6+kbDS0g902b/8m4+nbiuqCDroZnmo0v5CC tfdFZMV3a9qM49QY0+4lEVVLCdfPdtpB/51bKPdu41g9mUNL1HsxBfMsh+XxcNE4/jKYhv yf4uBAXssBeKi2GcMBz7NmP8jEwSMPLU4ZX6qa8aOI+KkH5YTrkjAZXuPSlAuw== 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 3/9] drm/panel: nv3052c: Sleep for 150ms after reset Date: Mon, 18 Sep 2023 22:58:47 +1000 Message-ID: <20230918125853.2249187-4-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 06:01:22 -0700 (PDT) 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 --- 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