Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp514304pxb; Wed, 27 Jan 2021 13:33:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7+Ha1bfLbg1yhFoFD1xSA6AWdWOM7H584tmt6rSpMlqACj8VHspMBpy1mz9OGpttNgcGW X-Received: by 2002:a17:906:ace:: with SMTP id z14mr117151ejf.53.1611783192565; Wed, 27 Jan 2021 13:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611783192; cv=none; d=google.com; s=arc-20160816; b=S5CAaodVstIpCW3eUnHlykRJrXurEfBaB0BGKbqEpPPvQh3jM9A+BVrH9+bQlM8RFo 3JD6BrwkNjgYv0PvMx3khTL68zduEADemUAkDD0e9VVatM2WAt7IPe+5jnOMyX3qdh9O cJRjuXCqlsPAgg2u6j+KSoipE48X1+7B19W3rFanwbHGzvKvdjbmEyBm8BXyADpFhJhz p9G+ay6y9wwgqOY1PWLfG8BcdUlRBSNI3qOdY9+2zdDu/IWAtOUjvgD8v23EYb4NURfv h2/b+yGcLyFcpFOPvZ0CQfL2RxMkv74Qqsmo1Rfwyk/A6UYOuv5dP9InDi5Dq4jYO/T9 RLZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=KsuFJMJR1zSC15w8JQ1c49j8bxV1nmiWZNwaZ1VqZu4=; b=qQP2x4/dWil+eztYe1CF5DfC4pcKdysW/DmEArW8eyfySYxLUSg053sNcYPgs6KAhL iLt8Tbw7ns1QsHPPGYMr+BwxdWZHMN6oZmlWjYL0CTqktMYcFX7QhDf6o9Cr2W4OoLZA ixwVhxntjL4NLyHuMP9PSPoo38E/B3iO4LdoKLWRpMBma2/gDGfopkfIn5CH5SelouvR Sg0c/vu5jr5iS4Ye71BCOzWOplKyqPXuDVXv46tKRcUkUUf/dZHg84QRaAmbvf9TfQzW 4qx0/BUwmDEFjgNIE0IZyrTBgAju6pFku5GIOFqPPDrz9gBV+clPsMTskVjZa4ctO2TZ 68yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tml80qBR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1573307edy.585.2021.01.27.13.32.47; Wed, 27 Jan 2021 13:33:12 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=tml80qBR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234114AbhA0HbH (ORCPT + 99 others); Wed, 27 Jan 2021 02:31:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233066AbhA0H3A (ORCPT ); Wed, 27 Jan 2021 02:29:00 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F0FC0613ED; Tue, 26 Jan 2021 23:28:19 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id o16so994128pgg.5; Tue, 26 Jan 2021 23:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KsuFJMJR1zSC15w8JQ1c49j8bxV1nmiWZNwaZ1VqZu4=; b=tml80qBR1soeYIVTGfdvJtZUqxXf7q+xv4VxBnCHgSTnJbtCZsY3//7PIn54WYZZWq cFoDNkU20Agj4frEi/qOMiMO3wQxtQxpaDdRvZLcTRwc5VAYffgQ9mvVVfGppHIBU09m oMWV2CP8F3pq/i5fWO5J9enAs+qsvdP7YsO37F5OGZ9amyDlLWatZpYnJa892lvHKzUR KDjwrMplVjmWhpMzZjnNdk2FIMHesJ0o7xc5havkCzjkIkKA8VQQiQxN6z7MsPPo2dlS QAlfuN+bL1dSKU46niKrxooWyGxrRLWLZFVHOUXvQw0VVSGPfECuhd6+2U208WUJOAzS Qk+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KsuFJMJR1zSC15w8JQ1c49j8bxV1nmiWZNwaZ1VqZu4=; b=UaN23LiAckDCd/lXk/HUPRcCmxzLeIT2nJvUwVIYjSUvVBzZqaqY4oXFYMP+SZE2++ CCOh6KyfrdM+mUD4V5qD56LzZwS7NVVXkh+eiDuaeNSOcApvYYphMQ615QKY5N/aHrdE Egj5QiKqyy70u3nutkiPTVLsF2fXK6UU7ufJWl3GEGOOfeeMA/3rjvBSM8w9bzH+x4Q/ QZ2J3ZRQjAuf1IUUDpBThv+BhXmhtEH4hEMzq3sxeia42GdiGsljJrmQ7xIcpdGv7a+x O6HOXiSaQNdpLnxXARWtDhyFNDaEoL5Xau/1L7X6i2DL/kWhpWfwNNKL+n2WZ0ZSvyn6 34CA== X-Gm-Message-State: AOAM5327OtUFXnD1u3YtN9933CPTf0ozxm2ghHuUPajWRXzHesEPqGFR arLPRbQqttWp9rP/EhPIVBY= X-Received: by 2002:a63:a542:: with SMTP id r2mr9859868pgu.211.1611732499327; Tue, 26 Jan 2021 23:28:19 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id u12sm1182256pgi.91.2021.01.26.23.28.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 23:28:18 -0800 (PST) From: Carlis To: gregkh@linuxfoundation.org Cc: colin.king@canonical.com, oliver.graute@kococonnector.com, zhangxuezhi1@yulong.com, mh12gx2825@gmail.com, sbrivio@redhat.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v6] fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 15:28:22 +0800 Message-Id: <1611732502-99639-1-git-send-email-zhangxuezhi3@gmail.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhangxuezhi For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v6: add te gpio request fail deal logic --- drivers/staging/fbtft/fb_st7789v.c | 133 ++++++++++++++++++++++++++++++++++++- drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 133 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3a280cc..777391e 100644 --- a/drivers/staging/fbtft/fb_st7789v.c +++ b/drivers/staging/fbtft/fb_st7789v.c @@ -9,9 +9,12 @@ #include #include #include +#include +#include +#include #include #include