From patchwork Wed Jan 27 01:32:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuezhi Zhang X-Patchwork-Id: 371888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10F7BC433E6 for ; Wed, 27 Jan 2021 04:45:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C52282070E for ; Wed, 27 Jan 2021 04:45:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239513AbhA0EpB (ORCPT ); Tue, 26 Jan 2021 23:45:01 -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-Google-Smtp-Source: ABdhPJyoFnteGdrpbzbC+EnHJ7VVx842nzKKp+Gz+PIE9/Y0/+d1B7OnNaluuEeAQhzLfGECzgd6Yg== 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-fbdev@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