Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3297695pxk; Mon, 21 Sep 2020 10:00:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFsayxslHlI9sySAOsU8nUKp+lFTZSTD6x3Kfto73cxXBiQn5lSHf68qtj3DX8tooWbFMV X-Received: by 2002:a17:906:6409:: with SMTP id d9mr399429ejm.344.1600707620609; Mon, 21 Sep 2020 10:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600707620; cv=none; d=google.com; s=arc-20160816; b=njV9WDrsXLGyLa0sJXeztkIKN2K6wvBKa09ThUQThdI6bFWWuRUIxZbGbosNC/nYzP axkxXzchIootsX1ccBY9Ig8LYsybl6ubGjmr9MfIyXtdcTOV9eSH8oxoWS4TK050y0PU 0DV6Dq9GvC840qfpJIGN1mshrJH5D1kEeDVhpAZcCPyFoGr+rTsr9IH+s3c3LZVI4ATf DqkeEpOEm6E0UTq4mrr3J9YCXRLBvVW+ponQ/qS/w/ETmVpWI0Zyc8ZogLgkYVsaZx1x hm1vRPQr+Hjqolq8AhHd56jvtm9IgpKiIXOgvOiLgI7KoLuZfd45QHmXD/Kp/rIItWmV rmXg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=czWO9IQjBg+MfHbLz4JY98t+dYuYC74p/t13o8Qa5AE=; b=IElBuw5El89SEARsBEIvUt2eFExuTi+HFaTMJktH9+vDTxpaKYsDuu8rLDYYk3vFiQ fNBLMGU4/TXtPbXGbOOSgxU3aLq9kk+D0jyWAEP1KE/DVAK4ViccN3zug3ga0UWzXaAO WP4gwUXh6C60i/Qb9gWLVHV/CGoPaI6WYktCDEaTCrhyg8sKTPJ9ggn1aCqCVKYdueRH xgZXr8F/nE4eTAqwuCgmwsT2QLmzDnlvUahi9X++cBx1lPl0F1329gtaOKiUor612MtY aKlqBK27OlBQVeyNg0AeNue6Q8dt9rSuOhIWZyL5JFv12sMx6qgSdZtZYhTEUpkWJ9vz c1sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CkDDtNlg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md20si8707124ejb.439.2020.09.21.09.59.56; Mon, 21 Sep 2020 10:00:20 -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=@kernel.org header.s=default header.b=CkDDtNlg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730179AbgIUQ47 (ORCPT + 99 others); Mon, 21 Sep 2020 12:56:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:49884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729617AbgIUQob (ORCPT ); Mon, 21 Sep 2020 12:44:31 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 EF3D223A04; Mon, 21 Sep 2020 16:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706667; bh=uBF2/c2bhx9oi+u3CpjY461LL7HH2GrF/2D9W+2eY/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CkDDtNlgI/VjjZfG3iFCUAbopfpOqogclat2U26LnrLV95VVd45cvrQuUXiX7eWKE WM4j26fmmm0q45hpcw9Kj+uxfW07b/0Y7h70JcJOKlE9p2pGuo3Ao/iL1yFZEBkMD1 lvdCzuu794cjjwwAg+Ef+IRrd8uT9NJnMTKAxHnM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jitao Shi , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.8 045/118] drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp Date: Mon, 21 Sep 2020 18:27:37 +0200 Message-Id: <20200921162038.407019155@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jitao Shi [ Upstream commit 35bf948f1edbf507f6e57e0879fa6ea36d2d2930 ] horizontal_backporch_byte should be hbp * bpp - hbp extra bytes. So remove the wrong subtraction 10. Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method") Signed-off-by: Jitao Shi Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dsi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 02ac55c13a80b..ee011a0633841 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -470,14 +470,13 @@ static void mtk_dsi_config_vdo_timing(struct mtk_dsi *dsi) horizontal_sync_active_byte = (vm->hsync_len * dsi_tmp_buf_bpp - 10); if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) - horizontal_backporch_byte = - (vm->hback_porch * dsi_tmp_buf_bpp - 10); + horizontal_backporch_byte = vm->hback_porch * dsi_tmp_buf_bpp; else - horizontal_backporch_byte = ((vm->hback_porch + vm->hsync_len) * - dsi_tmp_buf_bpp - 10); + horizontal_backporch_byte = (vm->hback_porch + vm->hsync_len) * + dsi_tmp_buf_bpp; data_phy_cycles = timing->lpx + timing->da_hs_prepare + - timing->da_hs_zero + timing->da_hs_exit + 3; + timing->da_hs_zero + timing->da_hs_exit; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) { if ((vm->hfront_porch + vm->hback_porch) * dsi_tmp_buf_bpp > -- 2.25.1