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=-13.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 4646EC433DB for ; Thu, 28 Jan 2021 12:58:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC59464D92 for ; Thu, 28 Jan 2021 12:58:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC59464D92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1926C6E192; Thu, 28 Jan 2021 12:58:22 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3BA86E192 for ; Thu, 28 Jan 2021 12:58:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0770564D9D; Thu, 28 Jan 2021 12:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611838700; bh=C4qSykV9Ua8Po/5N13FLIU468aGWyLm2jJyx3ABSln4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xz8HtbVrbtSfTv+ggNZOODBQQWdtWmHrkQ4XFzInDN4B6llxh8K2hJ5RG5O7rTw6I PQmQV0gSCm9jRUfrvDw0yUH+t+j/LJFJ4mHNbdTfUn26ZZqDLArhJHbv8+sV3z0Dg4 NuKkWCYeOYZ4iKAlECxevvtTsd/XvYX4T74MV4qc= Date: Thu, 28 Jan 2021 13:58:17 +0100 From: Greg KH To: Carlis Subject: Re: [PATCH v12] staging: fbtft: add tearing signal detect Message-ID: References: <1611838435-151774-1-git-send-email-zhangxuezhi3@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1611838435-151774-1-git-send-email-zhangxuezhi3@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, mh12gx2825@gmail.com, oliver.graute@kococonnector.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, sbrivio@redhat.com, colin.king@canonical.com, zhangxuezhi1@yulong.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Jan 28, 2021 at 08:53:55PM +0800, Carlis wrote: > From: zhangxuezhi > > For st7789v ic,when we need continuous full screen refresh, it is best to > wait for the TE signal arrive to avoid screen tearing > > Signed-off-by: zhangxuezhi > --- > v12: change dev_err to dev_err_probe and add space in comments start, and > delete te_mutex, change te wait logic > v11: remove devm_gpio_put and change a dev_err to dev_info > v10: additional notes > v9: change pr_* to dev_* > v8: delete a log line > v7: return error value when request fail > v6: add te gpio request fail deal logic > v5: fix log print > v4: modify some code style and change te irq set function name > v3: modify author and signed-off-by name > v2: add release te gpio after irq request fail > --- > drivers/staging/fbtft/fb_st7789v.c | 116 +++++++++++++++++++++++++++++++++++++ > drivers/staging/fbtft/fbtft.h | 1 + > 2 files changed, 117 insertions(+) > > diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c > index 3a280cc..f08e9da 100644 > --- a/drivers/staging/fbtft/fb_st7789v.c > +++ b/drivers/staging/fbtft/fb_st7789v.c > @@ -9,7 +9,11 @@ > #include > #include > #include > +#include > +#include > #include > +#include > + > #include