Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3779686pxb; Tue, 26 Jan 2021 04:44:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyppR7RfOXoKyo7JhvtJj9Vpk4swwIZjnnj3VTmvjXHH9n24w6aZnH+L8P2KHAHnvA/FsCt X-Received: by 2002:a17:906:b055:: with SMTP id bj21mr3385203ejb.355.1611665084852; Tue, 26 Jan 2021 04:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611665084; cv=none; d=google.com; s=arc-20160816; b=cm3OFPHwLurv7M9bhvuHCZ9nfqiXHtwFhj3Jb8txKLSW5IPM8GoNeCm1OcTZeqE4lS XC/EaMfm2QAreWBK2idKw8nd5T9mxcDHT71+JGxxtDmDqk4p/ycrkNE5L8mWfnVV7heg tjDwKQBjFIEfUdH213k4LI/PmevjQG/FizWml3BpnFyDJLhBKdAAHpG48UhKgX+8quIK zmPl1yXP//5bohCc0SBPjdXahNEs4MewtpaYoySAljPFICcNxlUXm9VWKiAcNwqHde0r K26+IArCURFqyFH1fg83oGldha91ir6TrTTOSJPm+vgMHpSkMNvcVQyca27UqXD/2Kkv QFBQ== 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=HqB8ShkPpKgbh75SDLmBozCvKjDXfCshAB9pnex5YAo=; b=kZ7NKylxZ4sg1HgeujrDd5K7vjt6b6R7B69ty873mFVO39zkYXFj7DrKXoXqid/hK/ a0PKBy1q2RSVAaApVfhiM62s6wHCqtAlSQHkuKrP3Gu5OxUBH1rAlo6LgvmWOzInFdp0 WVV3tJz+iMabiZz6T8urRAPEBHiB7CQz/EmEfVQNrg+fpSjYHzSI5StDL3l6cmrDPtoJ XI9O+JGePUfj/Bj2/easpuTn59CDwiDmEjnNwetZSYghCUDE1MgA7vJmrVxS896TALr7 GWOKEeo5BwfeDnrLgQ0tk0PAnIp2k1rPNOpQOuDL1EQoJRvwLKUmY8X53dr1m9iyFmml q79A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YkC3a2Vq; 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 d18si6759125edu.101.2021.01.26.04.44.20; Tue, 26 Jan 2021 04:44:44 -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=YkC3a2Vq; 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 S2391655AbhAZMlf (ORCPT + 99 others); Tue, 26 Jan 2021 07:41:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389047AbhAZMlR (ORCPT ); Tue, 26 Jan 2021 07:41:17 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3621C0611C2; Tue, 26 Jan 2021 04:40:36 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id d4so9713145plh.5; Tue, 26 Jan 2021 04:40: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=HqB8ShkPpKgbh75SDLmBozCvKjDXfCshAB9pnex5YAo=; b=YkC3a2VqMxRZZEAHB/LFJ8jMLKJ0RQ84lldRRwm0DU4oV3geCKNpczFFy04WEh3rzJ hbjBpFzDslzkqfsBTnn8U2oLJfBRfRBx0C9ozt6BQYRtgQGeA2SA+WortjTUKSimsaOt IbQggQ2JLQ/jcHzFWyJ6mvB1qcxXlGmijvOqULkMxiieAjWgsiZh4Ouw208IFWf7wIPp TXSlDSKLcqEZaGkguWIz4aIS1hRsoBPW6Z6X1nN7ni+4BrGynWQl7PhAP/tBspkPKkQE 4iQEoXhuo45rioNtt0iScbWzw8+hIwAPcJqaYZAV6MODtDxpPTbPTaHIaWsBi2y9qkpP QqzA== 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=HqB8ShkPpKgbh75SDLmBozCvKjDXfCshAB9pnex5YAo=; b=SgI20u5dkEA4/hRx9XFHzwV9a7kgQb4k1P6ANVRxm1fXNZNe02wyCzIToywmL4ZG0M pf7BhG2kJk1eVtBIOswfdFw1EIYQ+86IMU7Oa5VHmmkpXGJeveAOuVZS0+r1jq/1UkJg RtNsFFZi3uizYLjAnRfzMz6nZ3CWGhbl/ghqeyxregxsVUtaK0IZi+ucrN4Wwc/1qqCb YVkONZeSYDN8fu7Wn5LBnJGy0R7LrarwGfqqebv4GG7IcQixPSkWGaYVeh7cQ+yUxxO1 NPsMtb813MNKeB9VH7/R7f11K5P6zCe0TM5y+LucIgMj+IrTUaMPxH/3ZANmPVqFxvp8 jF9Q== X-Gm-Message-State: AOAM530lTCIZsfPgiGCr04h5QVp5angI/T8L2WRidwpcQbnn/50QUQcz h//htqR6c6MGjw2sG8i+aPg= X-Received: by 2002:a17:902:ed11:b029:de:2f19:4db1 with SMTP id b17-20020a170902ed11b02900de2f194db1mr5891927pld.20.1611664836233; Tue, 26 Jan 2021 04:40:36 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id c185sm4987427pfb.178.2021.01.26.04.40.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 04:40:35 -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 v4] fbtft: add tearing signal detect Date: Tue, 26 Jan 2021 20:40:35 +0800 Message-Id: <1611664835-150687-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 --- v4:modify some code style and change te irq set function name --- 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..11a490de 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