From patchwork Wed Jan 27 09:50:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 371887 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,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 B9A44C433E6 for ; Wed, 27 Jan 2021 09:54:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 620E220731 for ; Wed, 27 Jan 2021 09:54:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233306AbhA0JyC (ORCPT ); Wed, 27 Jan 2021 04:54:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235530AbhA0JvS (ORCPT ); Wed, 27 Jan 2021 04:51:18 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E227C061573; Wed, 27 Jan 2021 01:50:37 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id f63so833087pfa.13; Wed, 27 Jan 2021 01:50:37 -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=Txcca0CBROxdpprP2+fM7gvVPGcqJswWjrDZDs4MDFI=; b=WlxEdUNdHgoxL+EoCDoqQFmgJoVhaIepwJNzIoomehi9tsUmEaeLg9cy/XS//x/gDp ZyckCQH8fnB2RLoc0o5Eh6RBi2ByZl0AgPS/V0N0Hw4+59ogubHt6MR2a9KoEp8rd2W2 rXCSsihAKbo3ydh9TyZ4Vs9jFRBT7pZZKsqFeOOq/f5YnaopWAXiQcApY/A0YvSGuZ49 ZBhefhbkxF7X/GjgVuIG8PfmtbaUHXn+HDd6ta3WSb3bDCOFlwU+qzlvHNaerM3xNMOf UYQhedL2+gSGtL6QqqeM37LRFpRrcPZ7OHPo1mfUgcXlycJQ4EZ6Zqysv1FIi3LqImGq /W9Q== 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=Txcca0CBROxdpprP2+fM7gvVPGcqJswWjrDZDs4MDFI=; b=VVYKSrCl9i5dYrSY8eHBqoeO6nNoMkoC1NhHHX6mIpNM8lXmIHYc0xxtHgRKycwTVL taGBhX0d+JPc7BHNwTu0b8p1r6t5WYfsFwIwthiaEyVyonLeaI4E6YrRKLV0er2ch1cR jqU2r0XEcx/ztmAkhMnbPLr95v2h+nQvleRP0+9nd45iTwdDpeDYPzeCBJmA4rhdt01e tihYkGZ3L1bhCsoZgwP392JSVQPWSdmUk4RCJ7MEVwBUgu8hj7ghEt2AGHMeqvvIku7e Y0nfgJtGz2hmTEhRwQODNeqBPOX/K4rlINqAlX5EFvmz3nO5d8trlJxQF3Ncp1x8q6fx L4Rg== X-Gm-Message-State: AOAM530EzgjY/BnRE3Z5nto3bKVGlBGO8/LdHcgLrlTca0RBUw0G6w4o C4ZvIBVFhZBayLFCY/J4Quk= X-Google-Smtp-Source: ABdhPJwvV3UHqKIsoIkhN435Qa9rupOPArBxkVSdcgU/c3EWuUID7awwI4thGruS3M0ZytOczji3Tw== X-Received: by 2002:a65:4781:: with SMTP id e1mr10214663pgs.30.1611741036923; Wed, 27 Jan 2021 01:50:36 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id np7sm1491509pjb.10.2021.01.27.01.50.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 01:50:36 -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 v7] fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 17:50:40 +0800 Message-Id: <1611741040-135878-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 --- v7: request fail to return error value --- 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..c964cc1 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