Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3390878ybp; Sun, 6 Oct 2019 10:54:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUAhYh9OZslajTYbStIIvllSuI/OPqh2GbBayJhRxLAnYFz0rUiyCiminxf5d8K3fYErYU X-Received: by 2002:a50:f0d4:: with SMTP id a20mr26163769edm.149.1570384443553; Sun, 06 Oct 2019 10:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570384443; cv=none; d=google.com; s=arc-20160816; b=rLKD/S2pl9D7yqOgKc0ym7X9H17Hr9cSYOtChSEvLxbBBPTULcijiLCOcuQwXsMNcu hFce/SFfMkD/0rMgFGDiabaSPidOBxXZReSF57QR9PcXmKC8Vs5Ms4rqzmPfnzioS4wo hff96gUIpLUWMs89iwPqL65N985VjdZkZ+/0pMaJ4iTRveRGN0rPz9+KyD+qshkOG7vp MMW4FAW15jXqUO146zCs/ydvBWHYYsvBxSu0swJnYLi2knLL4t1UYyQgMjmYZHYOnX6J XEsHWktFyGBoYia5bmKfU8IfDPbDpqYhFO96FnytkEulwj1N4PnG7nf6+/KkBrg/+XXN JEjA== 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=4UvBWIzVhauYGE50wrOMfEvdVHqhTD1cN99lFjjYkh0=; b=LHaUm9522+zoqdxeqzGqKOFbGqbqyVsVCPUJGLALhVvveQ+9vLlxfchBYDg20F31nf y+CGiNYFtXCEjbfrKJfiEMHnt4mu5jDnKpJbB8CK4wuzhstV/YXI/fG5lGzzQL+0zc12 2hnQ6wLtjd3SfINs4TqC4D0Ck8zcaoSU7dlVJjrJ+wlmKLMeJyoPmMpg6W/LOJ7suVDn kB7kex9jeqK4t+fp3Zb1hWc5v2qaz4uw58TPqkKc+taqsgNSk5hy8cbb4bxgK51yCPww n2Ng8KkPKxU9v3JwXOGRqjGpfpJJ0hGXtt4Ryi5DH0NNASj7/iggGo94AP0VvOtmvMQH B6QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gXnJXWm+; 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 f19si7746016edb.385.2019.10.06.10.53.39; Sun, 06 Oct 2019 10:54:03 -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=gXnJXWm+; 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 S1727456AbfJFRuh (ORCPT + 99 others); Sun, 6 Oct 2019 13:50:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:40120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731043AbfJFRke (ORCPT ); Sun, 6 Oct 2019 13:40:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 32A6520700; Sun, 6 Oct 2019 17:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383633; bh=yIdKmJ39DVVEUZj5hSgUPNeERFOvo1IIZg0ZVTBclWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXnJXWm+6IjOwphkK8wBzC12XOg5KeyY1PMu8iP7BlG+aQRGv0rvPlU2lED+v+DJG b/aM+Vb33cZbjKnDSTpc3KHk8bv9rDzz0+eP5IymF5u267odwmbnl9fdliEgIzKcT7 6VDY7Ti6mKdAIqVM9/soEOeiwYLhbtPvXU5mNxb8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Philipp Zabel , Sam Ravnborg , Sasha Levin Subject: [PATCH 5.3 005/166] drm/panel: simple: fix AUO g185han01 horizontal blanking Date: Sun, 6 Oct 2019 19:19:31 +0200 Message-Id: <20191006171213.191099332@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171212.850660298@linuxfoundation.org> References: <20191006171212.850660298@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 From: Lucas Stach [ Upstream commit f8c6bfc612b56f02e1b8fae699dff12738aaf889 ] The horizontal blanking periods are too short, as the values are specified for a single LVDS channel. Since this panel is dual LVDS they need to be doubled. With this change the panel reaches its nominal vrefresh rate of 60Fps, instead of the 64Fps with the current wrong blanking. Philipp Zabel added: The datasheet specifies 960 active clocks + 40/128/160 clocks blanking on each of the two LVDS channels (min/typical/max), so doubled this is now correct. Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel Reviewed-by: Sam Ravnborg Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/1562764060.23869.12.camel@pengutronix.de Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5a93c4edf1e43..ee6900eb39069 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -724,9 +724,9 @@ static const struct panel_desc auo_g133han01 = { static const struct display_timing auo_g185han01_timings = { .pixelclock = { 120000000, 144000000, 175000000 }, .hactive = { 1920, 1920, 1920 }, - .hfront_porch = { 18, 60, 74 }, - .hback_porch = { 12, 44, 54 }, - .hsync_len = { 10, 24, 32 }, + .hfront_porch = { 36, 120, 148 }, + .hback_porch = { 24, 88, 108 }, + .hsync_len = { 20, 48, 64 }, .vactive = { 1080, 1080, 1080 }, .vfront_porch = { 6, 10, 40 }, .vback_porch = { 2, 5, 20 }, -- 2.20.1