From patchwork Wed Jan 27 07:28:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 372856 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30C9FC433DB for ; Wed, 27 Jan 2021 07:31:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DEA5B2073C for ; Wed, 27 Jan 2021 07:31:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234084AbhA0HbC (ORCPT ); Wed, 27 Jan 2021 02:31:02 -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-Google-Smtp-Source: ABdhPJy57KlxoGsUb+PPuXQ0Jo45vAGWsTy0Shn4D3KrkFXOe+TIgZZz1XCplUUJq5QgQMbl7/Zimg== 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-fbdev@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