Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp588104pxb; Wed, 27 Jan 2021 16:00:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5hND33un649FRFEEqAGh9xUEDT7uUqOeyyjS01Bp7mbJmOz9mxE7wNjA2/1r8ehgvRQev X-Received: by 2002:a17:906:4a04:: with SMTP id w4mr8759723eju.46.1611792013554; Wed, 27 Jan 2021 16:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792013; cv=none; d=google.com; s=arc-20160816; b=lp2BELeFtvTROmCkAfi1AVAk5eVq655fzc2D1ff64WgjA//7zTvtEnWJU/ixoCRFyE GKCqpef2xn/OUSSx64fMnn4KvkbkAlaBx9DgN9uI9Km0Lp/OGp0gAuwlUF74cHBmqYUt XjtcnSLseLT+4da7LPsLBQNEu9aHqPu3PVEPiCYggM0P2EGqTiWg1mjSN5OTJ0qMMLp2 TVX6WkoGrgNR4kZ8gXboIyISQXSt6czvgeA/dyO5ynIQ9l4SIbEJQn4KcS5nxAttvkOy 80bLhsalBiYz5X3BgD/QU9wb4iyV1COcRCXJvGMZZtE7q357X6pEaBTf9iLaLZptr87B TJ9g== 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=/5CRpVhAYIt5nq1FFXNh2jsrHhTk1E3I4CheLPQJc30=; b=Vl//sl4Cpz5BMW6hBy9MluQqi7mKSmNmbTimgP679PPL2X9WY1N9lCmaDJ1FUci6sq gzwgLQVfBRTUyC7keIZYXio8qvZ73JUPP1xU++yjlD/HC9kI8eoAn7b9WIyGUilcYgol u5jw6zcq8k+k8iIBj97ZSVT0m3Z2tM8sPtqbfhGBdTgWUdXsYKi8Kew+tK52EPyvt5JW UHn0nhuDpz8dzz6yubqTdII9HaBAXeYWYqzc8vdlZZ7+lNhQOocHDtC/FMlvSSMvkCAj iSCq2mQJ0QmdooS2FfVwYdpOnXsdgga/vlUzuL/ZaXLTvhbkHhd7tILBdRm73MtxbqyB FMng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LwebHWOl; 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 x22si1541130ejv.202.2021.01.27.15.59.49; Wed, 27 Jan 2021 16:00:13 -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=LwebHWOl; 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 S231303AbhA0NoH (ORCPT + 99 others); Wed, 27 Jan 2021 08:44:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbhA0Nn2 (ORCPT ); Wed, 27 Jan 2021 08:43:28 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8006C061573; Wed, 27 Jan 2021 05:42:48 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id r4so1040331pls.11; Wed, 27 Jan 2021 05:42:48 -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=/5CRpVhAYIt5nq1FFXNh2jsrHhTk1E3I4CheLPQJc30=; b=LwebHWOlnFO1NFGDdPfvHWMqOGU/3xtwhbPNBpIrKkKM62kw/ZMUQd2hD4gTEYYfJo /ZsIHvJAyjNaTdWPTV8/bPXXaspkyxZ91/Yy8iijwLoQU/S055b+YI5KTOhWxR0EgTdT blzRYX8Mdmj1E+/EuSq8iK5lAJCb0JkDvJXpSaLqYj0Sd8Y7EE1XYIedBLjkOWtLYT3X W2x47WcVcXICTz+KeWGB04b2xNPhX9pztcXn0vz4NP0XGftOu3CnJVzJMsphNvYNMxJ4 2NetMOw42PhPmHb4TnHJEE4NYa/HuemLxxbiXeyvdlE18TmLUEx5o1GJjZAVOj+cStQd arxQ== 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=/5CRpVhAYIt5nq1FFXNh2jsrHhTk1E3I4CheLPQJc30=; b=qkAdl4bVsz5uKnCfp9Nmth2IJejWizly+1sysz62wgBbd+zwZ5CVDBORaInHMRMMUe hIkA8IO4flIEqLKOcxhvtkiSG4us7Rn5vkACGSytng1l72rlRbFHOrBiGeyQgaWrVA9N 5D2hIb8hu1Zu0b3E+k44db9iZZ6Y5QqXkjUzB9mHMrCpWdBbzFmi5Sn+xTg2ZI1UpWAw 9RidHnpw9wPyTzVnWV2oo3aZBfP32aFDIqtDAq8Jl/QApE7vo/fRR5CSLnVaRLKK7wyy KOxb5J9f0QQPOlFADAvrdaKw5aVBnj7bTZojxSqAA+/pHFWzPGnNpPmSpYI1QdbHSm8C wLZA== X-Gm-Message-State: AOAM533lURESTqgzTMjU8vyfRyydTan1LxC+ukCszvm/BZrJpNLjF0H6 vWGZZsEscID+X0Kuqk6s3yQ= X-Received: by 2002:a17:902:6b02:b029:da:c6c0:d650 with SMTP id o2-20020a1709026b02b02900dac6c0d650mr11625296plk.74.1611754968360; Wed, 27 Jan 2021 05:42:48 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id f71sm2547437pfa.138.2021.01.27.05.42.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 05:42:47 -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 v10] staging: fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 21:42:52 +0800 Message-Id: <1611754972-151016-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,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 --- 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 | 132 ++++++++++++++++++++++++++++++++++++- drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 132 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3a280cc..cba08a8 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