From patchwork Tue Jan 26 12:40:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 370904 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.8 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 8699CC43332 for ; Tue, 26 Jan 2021 12:41:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61B7D2312B for ; Tue, 26 Jan 2021 12:41:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391668AbhAZMlV (ORCPT ); Tue, 26 Jan 2021 07:41:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389047AbhAZMlR (ORCPT ); Tue, 26 Jan 2021 07:41:17 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3621C0611C2; Tue, 26 Jan 2021 04:40:36 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id d4so9713145plh.5; Tue, 26 Jan 2021 04:40:36 -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=HqB8ShkPpKgbh75SDLmBozCvKjDXfCshAB9pnex5YAo=; b=YkC3a2VqMxRZZEAHB/LFJ8jMLKJ0RQ84lldRRwm0DU4oV3geCKNpczFFy04WEh3rzJ hbjBpFzDslzkqfsBTnn8U2oLJfBRfRBx0C9ozt6BQYRtgQGeA2SA+WortjTUKSimsaOt IbQggQ2JLQ/jcHzFWyJ6mvB1qcxXlGmijvOqULkMxiieAjWgsiZh4Ouw208IFWf7wIPp TXSlDSKLcqEZaGkguWIz4aIS1hRsoBPW6Z6X1nN7ni+4BrGynWQl7PhAP/tBspkPKkQE 4iQEoXhuo45rioNtt0iScbWzw8+hIwAPcJqaYZAV6MODtDxpPTbPTaHIaWsBi2y9qkpP QqzA== 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=HqB8ShkPpKgbh75SDLmBozCvKjDXfCshAB9pnex5YAo=; b=SgI20u5dkEA4/hRx9XFHzwV9a7kgQb4k1P6ANVRxm1fXNZNe02wyCzIToywmL4ZG0M pf7BhG2kJk1eVtBIOswfdFw1EIYQ+86IMU7Oa5VHmmkpXGJeveAOuVZS0+r1jq/1UkJg RtNsFFZi3uizYLjAnRfzMz6nZ3CWGhbl/ghqeyxregxsVUtaK0IZi+ucrN4Wwc/1qqCb YVkONZeSYDN8fu7Wn5LBnJGy0R7LrarwGfqqebv4GG7IcQixPSkWGaYVeh7cQ+yUxxO1 NPsMtb813MNKeB9VH7/R7f11K5P6zCe0TM5y+LucIgMj+IrTUaMPxH/3ZANmPVqFxvp8 jF9Q== X-Gm-Message-State: AOAM530lTCIZsfPgiGCr04h5QVp5angI/T8L2WRidwpcQbnn/50QUQcz h//htqR6c6MGjw2sG8i+aPg= X-Google-Smtp-Source: ABdhPJxNn0PzimxAkurriDPiQqgEE1O9MMOJxN32hirkqygEYr56tU4+ndfSpn/mmwNfYX4NiydL9w== X-Received: by 2002:a17:902:ed11:b029:de:2f19:4db1 with SMTP id b17-20020a170902ed11b02900de2f194db1mr5891927pld.20.1611664836233; Tue, 26 Jan 2021 04:40:36 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id c185sm4987427pfb.178.2021.01.26.04.40.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 04:40:35 -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 v4] fbtft: add tearing signal detect Date: Tue, 26 Jan 2021 20:40:35 +0800 Message-Id: <1611664835-150687-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 --- v4:modify some code style and change te irq set function name --- drivers/staging/fbtft/fb_st7789v.c | 128 ++++++++++++++++++++++++++++++++++++- drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 128 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3a280cc..11a490de 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