Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2901725pxb; Mon, 25 Jan 2021 01:25:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkMbY/EEznwG77ffYeqX8rVlQc+DFMfAPydGL+PIvfHqxljqmn00EZYhq+8dNMRKTL+aQJ X-Received: by 2002:a17:906:7156:: with SMTP id z22mr98060ejj.441.1611566703239; Mon, 25 Jan 2021 01:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611566703; cv=none; d=google.com; s=arc-20160816; b=oyfWSJdEYlRdDj+V5USSXZGLEwzQWPs3QRHHdW1OHa4mnuWPacSX0p/IrWjIw4IljB 5xyywh6xHrxxRrhbFyhmIQd4cO5ul5/3I2vVdDNjsCtHjBcc8QeBNJrGjVp4MhmRDUnX f+f3KFwDSYiRggfdxTUn/4x8ePh982rRL1hqbJm/kYEloZLTSsZuKh/34fytMHFzeKrF T+0Bei1mra7Gy0AY0ht+VsHqaJ+Yx9aEoOUnnT25knC5zy62r30EsfJOknsge43tIYQR BVgmxINelF/x1hPOYKJ+fJSP6eCYa+oTDb1dbJOU5M7+EfQSiTJeCwqZlCnYe9GDqMED nfPw== 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=kql6/H7XE4iGCcMOEzKNPSUD4IIdZnFwuOgOy/87akg=; b=vlcCHJHmUO3OeBJTzPgU/lDRtYffNffgQlLObmTBy0eXzWDSSw/bF87ZjeRRLk1Ek5 XkrYaOanbJwuUbWtrRF/eYfA0aEez168uMeeslEhXAM5ibCOk0RrHbmh8QezSmmUD4OW W1DzgCYvcmUAdXIOd4ZbM5zlKvgDgiQuT6ZfBPO1z6dUnK3/Aw0iYLHbdkzosXQaUlhF PN+6IRdac8rEim4DOIPUJvrqD75SR/UechIoQJVuuDr5KhVYFDTXOfDQb6j6i18qgO6k 1C0W1todeyzi5BusDe96F1qkcy5l11bXXM2p9iOyvJoYucxMTpCMbsqdCpxY6wKbYNco R/yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BZw5Rn+M; 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 i10si6297973ejd.325.2021.01.25.01.24.38; Mon, 25 Jan 2021 01:25:03 -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=BZw5Rn+M; 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 S1726405AbhAYJVd (ORCPT + 99 others); Mon, 25 Jan 2021 04:21:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbhAYJPz (ORCPT ); Mon, 25 Jan 2021 04:15:55 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA8CC061355; Mon, 25 Jan 2021 00:44:11 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id z21so8445114pgj.4; Mon, 25 Jan 2021 00:44:11 -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=kql6/H7XE4iGCcMOEzKNPSUD4IIdZnFwuOgOy/87akg=; b=BZw5Rn+MdGlWCL+t7+pLH/7drROvvcmFubGAs87DVdRv+OxYf6B1mMv++cK/pjW/4v fm/K6XZHZTev3BBNa4QcPMmF12GtAwGDSahGRnoOWZtF9iMN2J00naXvOGhySynpEpl7 00cl72haOnL2RztGq3aVriAUiipIIIHHgVTYv2JQMmRmMO/CjQG4JPkJPQ4i841X/tqY tA5rPkEY5nn/jJuc589vusw6sxipiu4hqTB7c6BHb+NgRhg8PxQvooDq3NvAlKD75C7i bS6r6G0/JC3z6ERS1WDDTVWnkVTYurzxvM26Lat8dqC8mfP3au/sgClPBvyc/8IjENmM yBUg== 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=kql6/H7XE4iGCcMOEzKNPSUD4IIdZnFwuOgOy/87akg=; b=SFzqnrCByNO/jM2ZsKzC3PEYuB8n2ZuuOXripfKh6SNF2USOIkUdBCeVx5pILG7Wdj tu9UucEevkre9ur/4osfJ+y//FkZtneUXwIr7Slx0cTmWTkiQIZhHY1qJtr2RQxuQ3UE UsCCp79RN5ZDUzqtQLtNT4cw3L7sCAp6CmwrUk4zpaSKGCjxr+FZs3aO4lfHP9lrNyQC BSlGwo71EwxVPM+sgtq2YGUSvuhApb+GKgwov+YgVRYxN1fnBBmGTJSk4ZIiPb22T2XU 4n3WJmMvdZFTfVjA+O3bHGzlKbRvY2w61z2Hl3YQJ0aGbsyCazPU4SEMXTgAaG6lgp5f dGDw== X-Gm-Message-State: AOAM531nlVUED3T8sSGXtR3yqzxLSPW7p6aVL9jHxbYY5O/6zCSUduY9 HIA4/GWsntRzUr8m4WrRQJ4= X-Received: by 2002:a05:6a00:2385:b029:1b6:1603:4ea3 with SMTP id f5-20020a056a002385b02901b616034ea3mr9950604pfc.40.1611564251051; Mon, 25 Jan 2021 00:44:11 -0800 (PST) Received: from bf-rmsz-10.ccdomain.com ([103.220.76.197]) by smtp.gmail.com with ESMTPSA id 145sm15521010pfu.8.2021.01.25.00.44.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jan 2021 00:44:10 -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 v2] fbtft: add tearing signal detect Date: Mon, 25 Jan 2021 16:44:12 +0800 Message-Id: <1611564252-84205-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 --- v2:add release te gpio after irq request fail --- drivers/staging/fbtft/fb_st7789v.c | 134 ++++++++++++++++++++++++++++++++++++- drivers/staging/fbtft/fbtft.h | 1 + 2 files changed, 134 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3a280cc..5426276 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