Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2457134pxb; Sun, 24 Jan 2021 07:38:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJze4jf0pmSYvDTqe2q+X6I63K/C6TN3TTEiKjh24uRJU6A0X8v2sOsyFaleVhKsqicWSLNS X-Received: by 2002:a17:907:2851:: with SMTP id el17mr1143981ejc.405.1611502734874; Sun, 24 Jan 2021 07:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611502734; cv=none; d=google.com; s=arc-20160816; b=VZQ3V5r1nde3lvjjNVBV0eWj7BQMQBjHpshFJj2VmpeHd0uTcraqYVz9YnZCTZbpXC Pr1tGwUN+Pyvi+mMf5I4k7G3CD/j9lnRhWb1/Rv+jSkqiV1XwfyeqnQtmLYxgI1wO7U2 hXOXg8w1V3TbJPQXav6bVmtcgPkl+j9kA0riWYYLODnJL+nDf0YEXwK9qpNolIIE6Zwg +3ZTUedPWiDukURybCG70UNG7cbEgZGImfHG5tPeI+95BC7Cqdv6yIJY1gFxjrObFIR5 AnCpB3PLgdxOTNgeRr8dMHooFDA99pnZVc5s/whBitcQbVGc94hnwxn2vDBZkPD4s0o1 rMPA== 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=wv+3wuXFvnGp7NmO31SkD++8+i2WVpAeSIWwaa8edxU=; b=J7M0IOkbaDaEWXCkLnfU7O06UXi4gqCwr7YOUh2TRSv0ZAk5/lODVK+euhRqSJl1qX XJTmIjyOO4EMgLvRa0hJEmNsdxihcDiAWTLlTTGZID5llngzfEemfoJMgunme5GIBPkG 6LexP2e0Saym08SE6Dhi+QHhrGILvgom7/wzerzSOIl9jqL1babK/7lrjq3r2KVJdayw EKC909yNfE3cLc8dRP5RMbkM41ixSCqKE3MJS1hxtdKKZMAb9hb/tEL9IXwR3jqEXQkM u4evy1vJETrummcxsj5pDkfv21Go3IEAHDOnOLaK1/hSv/N/Dr6Nigoo1+fpTRLB1XYe fOxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SMOJRc0c; 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 w17si6341816edr.34.2021.01.24.07.38.30; Sun, 24 Jan 2021 07:38:54 -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=SMOJRc0c; 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 S1726362AbhAXPgR (ORCPT + 99 others); Sun, 24 Jan 2021 10:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbhAXPgQ (ORCPT ); Sun, 24 Jan 2021 10:36:16 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D30C061574; Sun, 24 Jan 2021 07:35:36 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id md11so6798202pjb.0; Sun, 24 Jan 2021 07:35: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=wv+3wuXFvnGp7NmO31SkD++8+i2WVpAeSIWwaa8edxU=; b=SMOJRc0c6WRk3ZJrJ66nWjiPsXSD9PV4u+1Rmpv7349czhtW8hbt+2dgR2Yn2oIzao jW3DYBwtmEUqVZPPgtvNJrBMJe1aqdWQGJmQbgyBxOfrNZUYHsYzpyG9aJ1i/vaX2k4W CeLXSjk+RC/sZoTkPn4eqc03RSPQ5Uz262Ep34QFRGxkbUKpM83o4/KCFzqtCR51lU6w UapT1b93J/w3ICvdW/yKwNfIOV5tNlNgyaW49pXcw/aSyJk29ljg8oQRhti2yYyrX2Pw vsoOF/L0PG2SIMkpJye/uyfpf1fToW100DnzhJlxoOut8NTF94QqpVNxSaKMMxs3WO1U 9mBA== 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=wv+3wuXFvnGp7NmO31SkD++8+i2WVpAeSIWwaa8edxU=; b=tFh7H0k3JgzS5f0JYwdWz2gqK+X2UNSy1Ro3mFqISkzBA46D/nIcMe4fF7oAXL+5/T hwN4db80HZ+3xj4MjO03CpoI+ONBxECv7BQbiI1Kk2TatX+KFdkDRYoXSSIckpJv6Irb gVCvBcN+2hAdhZ6t7BBupmexjY83l0Cg6nf2ShTHAlmXZmwIgSO0ulZAOyBoX50jX07y rWorS3hjj4+igP4Unr27Q3EcGoJVL53Hu5ulOElUO98cg1QVlq8IuOR7udK4RqCfjjjG mOwrJj1D1XCEOkWt5V5Dme06XkXIGx2stS1m3FG6TsOhrQiLgx4ER0FEYjUhJZIpO+z7 dDBw== X-Gm-Message-State: AOAM533v8+Z1SgcZbJHxJMtrTW79an1L6YVe4QOhq0Rd/BbdIF1dlTgu 9lq5h1pti+VbpRK2c2XNZrs= X-Received: by 2002:a17:90a:6f05:: with SMTP id d5mr3144093pjk.145.1611502535677; Sun, 24 Jan 2021 07:35:35 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id f15sm15491410pja.24.2021.01.24.07.35.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jan 2021 07:35:34 -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] fbtft: add tearing signal detect Date: Sun, 24 Jan 2021 23:35:37 +0800 Message-Id: <1611502537-80668-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: "carlis.zhang_cp" For st7789v ic,add tearing signal detect to avoid screen tearing Signed-off-by: carlis.zhang_cp --- 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..c687b58 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