Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp240022ybi; Wed, 29 May 2019 20:26:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqznpL6gkd1bCsQVsToRguijfVafEVzItwfGL08n2JNoe+svO63Nj3yQFah15FKPwcWCWw51 X-Received: by 2002:aa7:9217:: with SMTP id 23mr1521943pfo.80.1559186782632; Wed, 29 May 2019 20:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559186782; cv=none; d=google.com; s=arc-20160816; b=WjKOKnvPOVmPj+53SA6tlP/mTf07feoG88CNuF2PEX/l/ldswKJQ0qGv6yLi/ThSsa SRigNMYmVTVfYgaTNUqV99naGwTP2pWs0cCkYg9WwrqaHNrdqgPQn8f9VFU4DRZvd90J rYW+HdXguaC36F5OOi1ubL8ds2Hq6i7c20o/81BmniIDuZ9E3dTapKmgEkzQK0Muh/vz /fNa8bDVTdHkXCwxu3HrEGHlHIatkIqsnbcatPl7E2+s29o5N0SfTZvtZYkVk3NtcH2j O/wHJOUGFX8sFwsQPrh8IK6F8xVCWIzGSdnk8UsJUVuhFNwPvbb3xXc5w8/GbtL35WdR 9pgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OOWqSyz2kAwBBikj04fqqI3IQPfzcobKrYrETzlKpYc=; b=nPGZA/1YAfV1jdicd46H5/i/4NRZX0ibfRhLnFS/Bmmftc2NUyMt/J7SMVf06VJCW2 QtMM1WbjOo5ktvLlrZSHwaC24xA/FxogHWG86NophYyb7ioKO52R80yPrtmF9HyptxiK lm7F8hR3uj+IiGmA8heeKhfJHC4MsGeSso6/Na4JoLVzBHwrBX1pxVoCQ9Mb38Crx8tN yueipVslyQsvDVBDVl0NW+HWG8ClmM+Z7oZCIsiqNNymW/RgqDog83Um8GKcoyCiFGpZ lDi4Gpfjr9mu2vxGoxUHEQB0jj/ZeZH0+xPhJikM7+tJWvCDJ/algq0DmDI0fx7ULio2 vzRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Govy9GKy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si2074178pfh.200.2019.05.29.20.26.06; Wed, 29 May 2019 20:26:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Govy9GKy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733217AbfE3DYI (ORCPT + 99 others); Wed, 29 May 2019 23:24:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:48276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731248AbfE3DRr (ORCPT ); Wed, 29 May 2019 23:17:47 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4B015246F4; Thu, 30 May 2019 03:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186267; bh=uaRMoL5wlZ6kDLSuDyHVPV2xn/4AO4FX8g0HIPN9Oco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Govy9GKyA8CXpPM+VZ6GKrZzgUWw4ZG86RwOG4xAO9Hf+AprTGxKXQMgJKz7/rn33 SYVYnoFnHZM4dCAHP06h8x1ol3IDYxpfZwp314ySWgJgGRiG9BRwRYJA+3BBreXoHR HrubZO7VRqJM5SndFJb+DKag8o9YlkM9vvGgUoXI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Yannick=20Fertr=C3=A9?= , Philippe Cornu , Thierry Reding , Sasha Levin Subject: [PATCH 4.19 203/276] drm/panel: otm8009a: Add delay at the end of initialization Date: Wed, 29 May 2019 20:06:01 -0700 Message-Id: <20190530030537.820652297@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 0084c3c71126fc878c6dab8a6ab8ecc484c2be02 ] At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen). Signed-off-by: Yannick Fertré Reviewed-by: Philippe Cornu Tested-by: Philippe Cornu Signed-off-by: Thierry Reding Link: https://patchwork.freedesktop.org/patch/msgid/1553155445-13407-1-git-send-email-yannick.fertre@st.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c index 87fa316e1d7b0..58ccf648b70fb 100644 --- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c @@ -248,6 +248,9 @@ static int otm8009a_init_sequence(struct otm8009a *ctx) /* Send Command GRAM memory write (no parameters) */ dcs_write_seq(ctx, MIPI_DCS_WRITE_MEMORY_START); + /* Wait a short while to let the panel be ready before the 1st frame */ + mdelay(10); + return 0; } -- 2.20.1