Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp525226pxb; Wed, 27 Jan 2021 13:54:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzE0OLnBO4mpDD1fGn0VcxowfxSAiWLlrfuba1WGR6tLBPsQYTRnbKjdRRGf9mrJJh0R0Ho X-Received: by 2002:a17:906:b51:: with SMTP id v17mr8575835ejg.8.1611784477676; Wed, 27 Jan 2021 13:54:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611784477; cv=none; d=google.com; s=arc-20160816; b=wh/KpHFuZKipIUQbCkP7HQEz47oeRfe+D8BOH+bDf+t7jTEVvYoLfBuDbPz4u6Jnyk NnAUNNsOxdfCKtPtAx68uaIRwoxMCRxw0SIEd9+mj4AxkWoplNuVkoVlhamUSKARr0Ww 75VFPGkuqpRonm7K5soY1okYYFUbRCbGah3zo0Smt30o4jSoOS7hxLDDRYKFr6sT5srD Sul5MNaulU1j/IDS5u8OXf1YEOQkRJkOiWcJEttkjk2Pxdqd/ZN+Oi925Bw75gmH5Xgm rLpaUUgtwKVJK1e+mWDTQRVQr0sqc9/FTN5qKRd3bRcLPPtrsPVHTrEEcr6Fq8eXWj9e 9Fiw== 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=Txcca0CBROxdpprP2+fM7gvVPGcqJswWjrDZDs4MDFI=; b=nQ8F7YGKTcJ3xpu/zjz4/Gr/hGygfxpdf+yNTbtQRC/Z/PwiM8iaaxhRuKb7paKSGZ jpNCry38VnnWulVBPq4FegHbY7Cmo5jGBtsMkawP05LHJM/jXvn/vutiFGmQw82lDkqK mGcXWLM7jUOkCRQRfh7kRuB6aU/Yk46xQ07zfKyE+NMesekZ6ZZ1kBOvxUMMf5mb42Gm mNYXb0dkLpy7vaXZBOYGgqlJSY+fRDlee/ROHHS45nEMz+qh7vyMaZT6aNnFnnMkw8uJ dCoX39B1iZT/I88eRqBiWhL+8VcNCywNanNh2BF9zaepYDlsUbjxfqu5fS5tRFrT4yL0 UM+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WlxEdUNd; 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 k7si1338341ejb.442.2021.01.27.13.54.11; Wed, 27 Jan 2021 13:54:37 -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=WlxEdUNd; 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 S234705AbhA0JyH (ORCPT + 99 others); Wed, 27 Jan 2021 04:54:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235530AbhA0JvS (ORCPT ); Wed, 27 Jan 2021 04:51:18 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E227C061573; Wed, 27 Jan 2021 01:50:37 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id f63so833087pfa.13; Wed, 27 Jan 2021 01:50:37 -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=Txcca0CBROxdpprP2+fM7gvVPGcqJswWjrDZDs4MDFI=; b=WlxEdUNdHgoxL+EoCDoqQFmgJoVhaIepwJNzIoomehi9tsUmEaeLg9cy/XS//x/gDp ZyckCQH8fnB2RLoc0o5Eh6RBi2ByZl0AgPS/V0N0Hw4+59ogubHt6MR2a9KoEp8rd2W2 rXCSsihAKbo3ydh9TyZ4Vs9jFRBT7pZZKsqFeOOq/f5YnaopWAXiQcApY/A0YvSGuZ49 ZBhefhbkxF7X/GjgVuIG8PfmtbaUHXn+HDd6ta3WSb3bDCOFlwU+qzlvHNaerM3xNMOf UYQhedL2+gSGtL6QqqeM37LRFpRrcPZ7OHPo1mfUgcXlycJQ4EZ6Zqysv1FIi3LqImGq /W9Q== 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=Txcca0CBROxdpprP2+fM7gvVPGcqJswWjrDZDs4MDFI=; b=VVYKSrCl9i5dYrSY8eHBqoeO6nNoMkoC1NhHHX6mIpNM8lXmIHYc0xxtHgRKycwTVL taGBhX0d+JPc7BHNwTu0b8p1r6t5WYfsFwIwthiaEyVyonLeaI4E6YrRKLV0er2ch1cR jqU2r0XEcx/ztmAkhMnbPLr95v2h+nQvleRP0+9nd45iTwdDpeDYPzeCBJmA4rhdt01e tihYkGZ3L1bhCsoZgwP392JSVQPWSdmUk4RCJ7MEVwBUgu8hj7ghEt2AGHMeqvvIku7e Y0nfgJtGz2hmTEhRwQODNeqBPOX/K4rlINqAlX5EFvmz3nO5d8trlJxQF3Ncp1x8q6fx L4Rg== X-Gm-Message-State: AOAM530EzgjY/BnRE3Z5nto3bKVGlBGO8/LdHcgLrlTca0RBUw0G6w4o C4ZvIBVFhZBayLFCY/J4Quk= X-Received: by 2002:a65:4781:: with SMTP id e1mr10214663pgs.30.1611741036923; Wed, 27 Jan 2021 01:50:36 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id np7sm1491509pjb.10.2021.01.27.01.50.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 01:50:36 -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 v7] fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 17:50:40 +0800 Message-Id: <1611741040-135878-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,add tearing signal detect to avoid screen tearing Signed-off-by: zhangxuezhi --- v7: request fail to return error value --- 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..c964cc1 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