Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1264917ybh; Thu, 16 Jul 2020 07:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8iZXTYslhxBugKCgpT3TonAe2zjOkXP3D3o+hjomCb/sYgacAoWgIK+DnCoxv9lLD6HpK X-Received: by 2002:aa7:d70f:: with SMTP id t15mr4581587edq.237.1594910098972; Thu, 16 Jul 2020 07:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594910098; cv=none; d=google.com; s=arc-20160816; b=ETTMtE4EctwrT0a69EKwtXT3Uvxvv5IDkWVV7BdQ/sE76xRNEHiZLSYUJe2GX6zFU5 GIpRTs4U8Ib2f54HxXDh5zdDOuiE9fTPyN+AvV0ulRFetFCfEY8frsEsHQDHWqk4A0Wd i27hIXh5eiqp7CPnKxG5LB4hSYZjTL0T4h4NxXDtvAR6AEvbaw4Jw/SQjfDhqyBfPxvi 7EUdMDj1AtLutRU2hUeWRQLf4ML20ilzQluGA4IsnfJnbC63q8oi+AImGAXpIhI3ygkL gyK5pP2kkB8LW97qtHSeCIyPtk/mrq8fh3dyTfAAJT5WIGUxTm8yw6Zh++PW5PdaTff9 14vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=sT8/6Nr3hJ8876dBoU/4G9IvrgZ6QIsrRwUvGt1Ddo0=; b=M8VqTfwE5tXGwisMvBPAv+Y+yvOfhHX395fcTo96oIuCEOM0OfFao46n8ZgAmUNDrb fpizEy+KD1lM3KRNxV9UuHOnJo934rlXQskT5KQAQppxX9ABi9da6GZvJYfNs1fIm+C9 2Q+n/nZrCFCWVr7Z0IhsIhTnn9LAkeqMTT7nQs4XmSReB3pKUDJ0750gewxn4b3gPWlP q9e7J8Fhs3KsaEpHT4KU4Ry5qXqr4DPY8ut2Mb6GfpSmMpsldLU9GPHUl8mRGHN8ZHbF toKasG1vD6QNsQ0GZepTki612fdk0RMVtkKqcn1rz2hoEq3Llq8MGyRA59i/WmNswZpH 7kbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=EXRaTdQm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df7si3881642edb.462.2020.07.16.07.34.34; Thu, 16 Jul 2020 07:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=EXRaTdQm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728672AbgGPOcN (ORCPT + 99 others); Thu, 16 Jul 2020 10:32:13 -0400 Received: from vps.xff.cz ([195.181.215.36]:44908 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbgGPOcM (ORCPT ); Thu, 16 Jul 2020 10:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1594909930; bh=V69aiwDzkzUM4CoHOHIEvrPpK78moRqkyd0I/xBuBCE=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=EXRaTdQm+G4iiJOFAeywJsc51E3Y9wDj53QyGao+stlDebBm2u55L64mwCKGaY2UO aHJLztq75TuWnIrQLV31nFORZeREq7/eHt5+H2pU/XixNBGBFa6jv/A+FPQWEWJV9y K0QRCLzREBA9OLCBeC2y7Mnp3eevJvpp+FpSyylo= Date: Thu, 16 Jul 2020 16:32:09 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Guido =?utf-8?Q?G=C3=BCnther?= Cc: David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Fabio Estevam , Robert Chiras , Samuel Holland , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Fix st7703 panel initialization failures Message-ID: <20200716143209.ud6ote4q545bo2c7@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Guido =?utf-8?Q?G=C3=BCnther?= , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Fabio Estevam , Robert Chiras , Samuel Holland , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20200716123753.3552425-1-megous@megous.com> <20200716140843.GA359122@bogon.m.sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200716140843.GA359122@bogon.m.sigxcpu.org> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guido, On Thu, Jul 16, 2020 at 04:08:43PM +0200, Guido G?nther wrote: > Hi Ondrej, > On Thu, Jul 16, 2020 at 02:37:51PM +0200, Ondrej Jirman wrote: > > When extending the driver for xbd599 panel support I tried to do minimal > > changes and keep the existing initialization timing. > > > > It turned out that it's not good enough and the existing init sequence > > is too aggressive and doesn't follow the specification. On PinePhone > > panel is being powered down/up during suspend/resume and with current > > timings this frequently leads to corrupted display. > > Given the amount of ST7703 look alikes i don't think you can go by the > datasheet and hope not to break other panels. The current sleeps cater > for the rocktech panel (which suffered from similar issues you describe > when we took other parameters) so you need to make those panel specific. It should work on rocktech too. The patch mostly increases/reorders the delays slightly, to match the controller documentation. I don't see a reason to complicate the driver with per panel special delays, unless these patches don't work on your panel. The init sequence is still suboptimal, and doesn't follow the kernel docs completely, even after these patches. Controller spec also talks about adding some delay before enabling the backlight to avoid visual glitches. Which is what enable callback is documented to be for. Currently part of the initialization that belongs to prepare callback is also done in enable callback. I see the glitch (small vertical shift of the image on powerup), but personally don't care much to introduce even more delays to the driver, just for the cosmetic issue. regards, o. > Cheers, > -- Guido > > > > > This patch series fixes the problems. > > > > The issue was reported by Samuel Holland. > > > > Relevant screenshots from the datasheet: > > > > Power on timing: https://megous.com/dl/tmp/35b72e674ce0ca27.png > > Power off timing: https://megous.com/dl/tmp/dea195517106ff17.png > > More optimal reset on poweron: https://megous.com/dl/tmp/a9e5caf14e1b0dc6.png > > Less optimal reset on poweron: https://megous.com/dl/tmp/246761039283c4cf.png > > Datasheet: https://megous.com/dl/tmp/ST7703_DS_v01_20160128.pdf > > > > Please take a look. > > > > thank you and regards, > > Ondrej Jirman > > > > Ondrej Jirman (2): > > drm/panel: st7703: Make the sleep exit timing match the spec > > drm/panel: st7703: Fix the power up sequence of the panel > > > > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 29 ++++++++++--------- > > 1 file changed, 15 insertions(+), 14 deletions(-) > > > > -- > > 2.27.0 > >