Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587599pxb; Wed, 27 Jan 2021 15:59:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9ld/UVUIWlRwtY2wesiY99HYNHTvAGz9rQhv3I4gh5zeSQXAdwq6BW8eH5Dy4AFV9CAwe X-Received: by 2002:a17:906:3514:: with SMTP id r20mr65552eja.202.1611791958240; Wed, 27 Jan 2021 15:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791958; cv=none; d=google.com; s=arc-20160816; b=oAsIn5tE6uQcnV0yl+FeRI1jwVR45R/m/tYwJy3a5JEX2rbked66JYrQKTNeXbhlu+ vCYsHZKB5DaI2Me1JESbJqCyIYVmSS/H+6SM7GWIx4VmOFc24Nfc3gFm17X5qlHOw55X i5f1AECP2+zuB6x7Sw3cdioSsGCeR13l8L5HenKLCXW+/OpQfEBUBR78/O3G0x10YXi/ HWBnGL4jjY4pN9okXXxuxIsYRihh14iXfTe8qYZQuk/tfuTQyzxuJp+woVgqyqJbPflk LgDgccPDcqX4uue/jTXoqX0Qggv8JyFCftLzEAjoyiEMt3cHivUgMnzWkZayl7b1aTYO EWZQ== 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=F9W4+7uzsBNtVZhW1bDqksxXGipQGVpT1LjrbV0CWH4=; b=ndpurydAoQfJ6vJ6tu/0kPwiM4/4wmd6cXSJ7i8IHIeA7SPDgeuTlY/Q0qAynYZvgQ y5+2LiOEUUP0PhO1PvoVZQ8Vw1L6U+8PDLBKEoU2iGvmKfuG4xkFtwPZKE0GD8kxDAtE B/9JqeG/wSUqJNIMgfdFkWx/4qz0j0XxfeuvUW9aVgWIo/WYp+8y4/OccPGqm34LcbYS 7laj5XHryEIc81tNRU1nnd0d6NxKulldIFUMzzH58TjiGlHBR1XcCAEmLaWyzzkZ5hGk unzbTGFnITcJp9EGSvnxAAMzWHbK2rB+c7eQZePcVddPzkmulNxX94Jtxo0RRy0HSB3z hopg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QFRS/2g6"; 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 me16si1376535ejb.615.2021.01.27.15.58.54; Wed, 27 Jan 2021 15:59:18 -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="QFRS/2g6"; 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 S1343685AbhA0M7x (ORCPT + 99 others); Wed, 27 Jan 2021 07:59:53 -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-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-kernel@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