From patchwork Wed Jan 27 12:57:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 371885 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 0F736C433E0 for ; Wed, 27 Jan 2021 13:00:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A63182079A for ; Wed, 27 Jan 2021 13:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343671AbhA0M7v (ORCPT ); Wed, 27 Jan 2021 07:59:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343523AbhA0M6O (ORCPT ); Wed, 27 Jan 2021 07:58:14 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B7BC061756; Wed, 27 Jan 2021 04:57:34 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id w14so1149295pfi.2; Wed, 27 Jan 2021 04:57:34 -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=F9W4+7uzsBNtVZhW1bDqksxXGipQGVpT1LjrbV0CWH4=; b=QFRS/2g6YZ4xhKVPlevAIyq+7Xpzuzqp6wmjplm/vbWHR2IY0jJOXYbs+zIE0QB/IG FSYjoF/LfxN8MT3gXR6okS0HUi/cr/4GUuX8eUz/rby6xDBPRm4cdcWLBZ2+iGVhSPJb pNB+V8uhqiLhXXwskTBLtihswLYijt28v1hZZgABtr2YoWMzldwD9BiA/8cBkUS5s4Uz SWoUX49Q8pkMzowhcreN7uXw9Ub+ofI1Fj8PVWY4304nd0g1QVaVS9JjoDNTfX3QdygA cnuq0OziLm5parPukRRZ2wkS4L3Ifm0iuUMt7ZD5vM86hUEcYRmPtXf0mwBqjftDxrA4 wd2Q== 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=F9W4+7uzsBNtVZhW1bDqksxXGipQGVpT1LjrbV0CWH4=; b=iFHdPtCdT4azY+GWs80GY93tljloTwLly1x0KFmV6uHbKEXzD9HS/FcqeB2DLQn4Yu AjFfPxGeGXqW1GRsR0t/C4nzIOYtG9QikVxJFGkKaLTSHuP0l27JweRgkQQPr1ilf8ui d75OS4sPYGjvJ/fS0UC+jfGYN6U1UeFml1bYhaGhJft438xz/0P2BANzrIabYZ4IFPZN v0CkRo3OrHm/cDlcfTmHJ13blS4GOwrZAooUPHUdvJdmurQnXaYgkLfZQCetH2RRleTv KsvP0yJ/xnGqDa608Tpt/Ll7+sFOaa2QcCYuybY0BD56flWqVF9qyY6JNXOaxIbuniog xETg== X-Gm-Message-State: AOAM533n1vLc7xIJgyKNIkuyWwqDRS+vEvZkVgcJbr997Y/mC2lSlTQL Rrdy8LfD6WEE2yEYoFE98jE= X-Google-Smtp-Source: ABdhPJyd8mQVRanXsapYqp4HbZOUKxSfNeDytVMl49Z/9mAnF9QzElbq175w/hLvJxaUacBEBy7UyQ== X-Received: by 2002:a62:e217:0:b029:1c1:59ed:ae73 with SMTP id a23-20020a62e2170000b02901c159edae73mr10747786pfi.6.1611752254125; Wed, 27 Jan 2021 04:57:34 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id y6sm2374966pfn.123.2021.01.27.04.57.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 04:57:33 -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 v9] staging: fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 20:57:37 +0800 Message-Id: <1611752257-150851-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 --- v9: change pr_* to dev_* --- 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..9aa2f36 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