Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3220321pxu; Sun, 11 Oct 2020 01:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEGXrsacjnHbc+87+8OLS8LppCYPu+/GGif5HvlsH93LcotHCTTzgnCAZE9GFxN++Jef9n X-Received: by 2002:a05:6402:551:: with SMTP id i17mr8076772edx.384.1602405296766; Sun, 11 Oct 2020 01:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602405296; cv=none; d=google.com; s=arc-20160816; b=x+GW7oMlsdn/y9Clf27QyPuw3kdG0/0rNIzvzkea5S/+rkzfC37Di1fN1ua/xkQOpw dQe0Aia0Bpe5yXOIP90ODg5GMRbov+DwR9fT0Obf3w0DsLc6sUZ2cJGZiR8ZLZpr7Mxb w1Lf4RR6V6WK/LPYE6D9rOhx/UNQLI72yYt0eReG0GOReSO+pGi1jWOw9DXS+SBWcDFL 6z0iDoz9ejqOlViWzu01BXRzXKx4lrjamDNGLvvlnPg3INR0ab6IL949t3nBZ37jyndT wYoWx7pVxg52q+jTbHDB6fzCP+K3X4CXBYFGJHsc4ANN17Z71w4COISXYiGz9JL+NE5i jTYg== 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=3c+peDytuMhcMrnaVbpiJTnq5XNIuqy9R+l3Dgk+J4U=; b=Kq6o91xnIJT2Zr0Wrm55wwZZmpPeqOn0xmig2JRZ5PwQTuwMYgdyEpwXE5CuFxk+pI zbyEzQlguvQSOPoT0UC28GY8r262EkEKz6QAaOvPZEiWB+SOptpFuLc6wC9SD5kGJj3T A20BgzbDRupnFnZ8F1HRunck43A6c3N4bScHhwIYwL9LEzyYYKmGWMAodAo7FvYAXq2H OPvSEpQaJTXIJJ2zq57HenBVBJxJQhM4DWt3V/aY+PaYDO6bnW8SNDFLCz/nUFDS4k7i 3mO6yeFfBEJyiN6v5msseFy791eGfusX1IsJtz+an0PIli7Hkjx/8KdtLSolhqrNyQ9P AtlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Gm4zgfXx; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si10101665edq.532.2020.10.11.01.34.33; Sun, 11 Oct 2020 01:34:56 -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=@mediatek.com header.s=dk header.b=Gm4zgfXx; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbgJJHMb (ORCPT + 99 others); Sat, 10 Oct 2020 03:12:31 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:10556 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728830AbgJJHKm (ORCPT ); Sat, 10 Oct 2020 03:10:42 -0400 X-UUID: be51c0eb26c74c33b6c538643c42a687-20201010 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=3c+peDytuMhcMrnaVbpiJTnq5XNIuqy9R+l3Dgk+J4U=; b=Gm4zgfXxFhNizyNC4vVp6jwO8gG3A5K1yJGNZR74vDNZvfs8zJeBQRJNfQe+75TQfQXaM3G0r+gT4T5bsYjPEHkfZHedxuP3V4tcsYWLCCUEWDJBkT6UFuWcnD0ANFDyBnQD+4CH1KMfJH68y0NsaUu2ZfxNmLr9DLD/p4sYtMw=; X-UUID: be51c0eb26c74c33b6c538643c42a687-20201010 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1838404442; Sat, 10 Oct 2020 15:09:53 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 10 Oct 2020 15:09:44 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 10 Oct 2020 15:09:43 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v4 2/2] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp Date: Sat, 10 Oct 2020 15:09:10 +0800 Message-ID: <20201010070910.11294-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.12.5 In-Reply-To: <20201010070910.11294-1-jitao.shi@mediatek.com> References: <20201010070910.11294-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: DC60833837F2BB69EF66A753E4BD999F68F802725005CBDCA72B1B764C29BB0F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmVwbGFjZSBob3Jpem9udGFsX2JhY2twb3JjaF9ieXRlIHdpdGggdm0tPmhiYWNrX3BvcmNoICog YnBwIHRvIGFvdmlkDQpmbG93aW5nIGp1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