Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp492382pxb; Wed, 27 Jan 2021 12:54:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy25i5+kRYYhQJejV0I/hUi4TbSfZ05q4xQl+kyeQs966a+I0eTefWdm40eQ7YC7rLuBBMk X-Received: by 2002:a50:8b66:: with SMTP id l93mr10419341edl.384.1611780893204; Wed, 27 Jan 2021 12:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611780893; cv=none; d=google.com; s=arc-20160816; b=tbELaTUtG8/nAGv11dqtATa5Hvof9SLAId1eI14xyJEMRDL+MYrxoWwGfu5sgXCUPC h9h0A65pZEVM3FUqOBu7TQ9PGaovbTLDc8iErmbqc+NhYfeAzE1p3HDj7qMa63pHI//5 Xb5NEobojzSo28MFhEAJVQanmQESvmcu8kbiQ08/ObacUNU7oyOeaS1oIU5osX1MnMvc aEA0M9yFaPJldZVxmFtPREiOhE1z6zLi9J4Ji+B4mbDPGHZBhwMBl86+TR09SvY549VF Jbf+4cnS9GGHKAgX9OSRP9THfSiQviInOkdUg5ekqmA/WHO9Z/3qzevYtWjFcbGBP1Gy +vfA== 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=qFtzDSWvJUPXFHJ3H250txB0Kdj+O3qQzrpjfab8dQQ=; b=nm1irCBBiVSbvkxeVfIId1Vf2D9XSp2qt6+fRnGoNvgW3t8zDziWS5rtFguCiIk+Aj 4RHTZhh7OT1nw2l6v5AS/9KwYs7zvHXwCZa8ECsA6Om0bESOmIV43zk3KVbcjvI9zqW0 IyT8Ou/KcArfxj4/6piiUmfsYHye7XjYw/Q0EtJwn1J6pnITw/oUY/IRsgKQeK/QrCv9 5mIhQasrq250y0Sz280i0XodteMgHnyY+x+sz9PuJfGmc1d0lIIyCtWp2IhJov3mGx1s p9btAOjycej7k/oAjGN6jeEWai+nxEBZIvYwTqcAVHfd+sVV7LpEt//1SKy0VyvR26Xq UckQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NYdHlLb+; 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 s9si1545898edu.474.2021.01.27.12.54.28; Wed, 27 Jan 2021 12:54:53 -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=NYdHlLb+; 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 S237654AbhA0D5N (ORCPT + 99 others); Tue, 26 Jan 2021 22:57:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405311AbhA0BpK (ORCPT ); Tue, 26 Jan 2021 20:45:10 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F83EC061573; Tue, 26 Jan 2021 17:32:17 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id n10so455135pgl.10; Tue, 26 Jan 2021 17:32:17 -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=qFtzDSWvJUPXFHJ3H250txB0Kdj+O3qQzrpjfab8dQQ=; b=NYdHlLb+8UuAggg/5rsCJiI01uR7VaeLvuuTmE/hirtA4jT12LxyJ+n0VnSTwDGqsh tmriKUITkg/6uAGDnXl54C8dn/MdhEzu7qchEPJYtLCEl7DtTYXGoGzLmVXilf8TTpja golGdohVb7ALkKxXqg+9+VKyS/l/z3YYpaCqEGx//omokmnLndGvz0I7lAXL/kg2zNHf sND94ZckxsMLXpHOKRCxdD+85G9VEZRPe32ik5oP2htog1Y3VovSIkpSAPjGjYGRLWie KkGfyPtoXbgy1X2EHDcxcZj1M+S8Hxt0BEAMLgh7hRbxF6IN29HoyZfureNIkASAaDQM 2asw== 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=qFtzDSWvJUPXFHJ3H250txB0Kdj+O3qQzrpjfab8dQQ=; b=jWERVm8TXZ0EXwOqbEu5rQPmjANVZ1559/KHFtjK3GayDlnkclkCZfIA3plWzCb9B3 1OZsm+kV/TZ2CKlUjT2uOlWqwevcytrCHlL2dV8/Av2WNPUc2DwFhjHwHFNaGofoywML oYqoeiJtHzE8E4BqYyoBV+ZcbnJVSypa40r0jeNdBOqXG6yJfNLEvzX0nNedEmn3gpOT K903PRASf4VR6C6BK9zlZHTeOzDpieg9yJBX6UUNx4aKypyL5X+3l9rFotIysQ4SFztC uNT6Yh7FrlAXwth1u4uVaCgh2D5vAX2Cg2td5fgzRVVmn4ojKX+VftzQZs5Nj+mHjSba PLvg== X-Gm-Message-State: AOAM531G/Xe7D0XYLu6UHfkXbSF5mna/rcvc0VWV+vyn9E9nL7jCUuuV xKvQ/VqsDW9Io22+w60NLLo= X-Received: by 2002:a63:fc0f:: with SMTP id j15mr8572538pgi.435.1611711136993; Tue, 26 Jan 2021 17:32:16 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id cu5sm163105pjb.7.2021.01.26.17.32.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 17:32:16 -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 v5] fbtft: add tearing signal detect Date: Wed, 27 Jan 2021 09:32:20 +0800 Message-Id: <1611711140-68260-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 --- v5:fix log print --- 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..ab10235 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