Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp519621pxb; Wed, 27 Jan 2021 13:43:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWQb9pEH2Yb575hoMDmPwPZudOiS8SwUO+sEPxPfevMGScCKAF+l1qbhrryebXXgGqXowr X-Received: by 2002:a17:906:1689:: with SMTP id s9mr8135537ejd.500.1611783794008; Wed, 27 Jan 2021 13:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611783794; cv=none; d=google.com; s=arc-20160816; b=r97w7KBP4pLcZwdier0lD/KQ5AP6nOMCB26ZBT5jdeH2BehyTwf/xQdsuLaC4KsODP ylhZkeMjxlMGIi+Yp09TmP4oscx9IUvs3MCLaknFGAHiwp6y4o5946CSrpWkm4kBj1yc WYlsxWpONuPXP0UFpsA+4xzNvdGrtjJzhuFy3YdgfKVOAdThMSR5GU88RuRno+MncrR9 eMDvZHGF1h/NLjgFeOjd1nZe9Uux86ctuP3QP+zFu52+CKkBMCG2KdHwKYtrSYgBTJ4K AdLESCapDmS1cfboqu+CcFScRxdD3B70y2B/BJezEe3Ay5Rcv+NE3jLYPRGmIpzZfcYH baMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+3iyfWJfnNqZE0f/gVuM8vxYgIblkdhX0Yx0XwqHHpw=; b=DZKYt6a3E1ZpXoRVisj0/gv+E/91PHK5AVT1MHKpj2s8BIStUdVPEk/387kKKolPGf W4P8ryh+6nYsXUn6bd+nlxkXjp+OVRVHA211jhxJeJBv8vhIUeiu9Tv+tBg62ygn8zNY TczrLVAztHq78vgTUhRRPoyo5sOjwDe8pA7VPqxof5g08C+RHu1ZNQ7G6hQ4260SpJCL HytRj6p/2m3ok4PZWcIip60+r6E59wIsxcYLNA65HyfAgdff4VAM5FKDAQp+8L0o0ujg ywGoDVjelTOpJhW158FJbSMGdo7KUaJQGbRh7IyYksycRa/4FmYgFe1YPjvfAriewsAA a0IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=BZ9SwiJS; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si1292005ejx.635.2021.01.27.13.42.49; Wed, 27 Jan 2021 13:43:13 -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=@oracle.com header.s=corp-2020-01-29 header.b=BZ9SwiJS; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234882AbhA0JFO (ORCPT + 99 others); Wed, 27 Jan 2021 04:05:14 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:51582 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234677AbhA0JBR (ORCPT ); Wed, 27 Jan 2021 04:01:17 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10R8xGPO003059; Wed, 27 Jan 2021 09:00:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=+3iyfWJfnNqZE0f/gVuM8vxYgIblkdhX0Yx0XwqHHpw=; b=BZ9SwiJS2hHbGkRyjSifYkMjRv0aQK/SaoxtnW/UEvKKP+4yF9R1mqb5fRSQeQZ4Yk56 hCACaeBsVRl/xh455+nDR+DqO6ei/s+UtZ1foFtHsfPUY+MliGxWv9BvgGu8Zfi3Agsz WHndYBJJVzVVijGIvwHT6hYgV2CbhIp7GMxYgda8dzjAA3LBy+bxC0tk0ff9kkwKXLZc T34Pn8baNe+XYnvXEUlaGG9w9D/3zg0JkEecdUMwAl2dpnEUQv5twCPC5RdtkphbQRlt ci8Po53F/VaIZ0qY6xYXx88xyvcuAamUKtpK1KFXsYouSJGob7CyX6EkLueFO7RWUF9u ZA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 3689aap3fe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Jan 2021 09:00:13 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10R8vRxj071729; Wed, 27 Jan 2021 09:00:10 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 368wq00pqw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Jan 2021 09:00:10 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 10R901QC009743; Wed, 27 Jan 2021 09:00:01 GMT Received: from kadam (/102.36.221.92) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Jan 2021 01:00:00 -0800 Date: Wed, 27 Jan 2021 11:59:51 +0300 From: Dan Carpenter To: Carlis Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, mh12gx2825@gmail.com, oliver.graute@kococonnector.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, sbrivio@redhat.com, colin.king@canonical.com, zhangxuezhi1@yulong.com Subject: Re: [PATCH v6] fbtft: add tearing signal detect Message-ID: <20210127085951.GE2696@kadam> References: <1611732502-99639-1-git-send-email-zhangxuezhi3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611732502-99639-1-git-send-email-zhangxuezhi3@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9876 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101270049 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9876 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101270050 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 03:28:22PM +0800, Carlis wrote: > static int init_display(struct fbtft_par *par) > { > + int rc; > + struct device *dev = par->info->device; > + > + par->gpio.te = devm_gpiod_get_index_optional(dev, "te", 0, GPIOD_IN); > + if (IS_ERR(par->gpio.te)) { > + rc = PTR_ERR(par->gpio.te); > + pr_err("Failed to request te gpio: %d\n", rc); > + par->gpio.te = NULL; > + } > + if (par->gpio.te) { > + init_completion(&spi_panel_te); > + mutex_init(&te_mutex); > + rc = devm_request_irq(dev, > + gpiod_to_irq(par->gpio.te), > + spi_panel_te_handler, IRQF_TRIGGER_RISING, > + "TE_GPIO", par); > + if (rc) { > + pr_err("TE request_irq failed.\n"); > + devm_gpiod_put(dev, par->gpio.te); > + par->gpio.te = NULL; > + } else { > + disable_irq_nosync(gpiod_to_irq(par->gpio.te)); > + pr_info("TE request_irq completion.\n"); #SadFaceEmoji > + } > + } else { > + pr_info("%s:%d, TE gpio not specified\n", > + __func__, __LINE__); > + } regards, dan carpenter