From patchwork Thu Oct 5 15:35:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Budig X-Patchwork-Id: 9987473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3687760291 for ; Thu, 5 Oct 2017 15:40:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27B0C2847D for ; Thu, 5 Oct 2017 15:40:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C84928C10; Thu, 5 Oct 2017 15:40:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEE8E2847D for ; Thu, 5 Oct 2017 15:40:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505AbdJEPke (ORCPT ); Thu, 5 Oct 2017 11:40:34 -0400 Received: from smtprelay02.ispgateway.de ([80.67.18.14]:11630 "EHLO smtprelay02.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbdJEPkd (ORCPT ); Thu, 5 Oct 2017 11:40:33 -0400 X-Greylist: delayed 314 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Oct 2017 11:40:33 EDT Received: from [217.146.132.69] (helo=mezzanine.budig) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1e08BB-0003Xy-DG; Thu, 05 Oct 2017 17:35:17 +0200 Received: from simon by mezzanine.budig with local (Exim 4.89) (envelope-from ) id 1e08BB-0008Mq-30; Thu, 05 Oct 2017 17:35:17 +0200 From: simon.budig@kernelconcepts.de To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, Simon Budig Subject: [PATCH 1/3] edt-ft5x06: fix reset pin behaviour Date: Thu, 5 Oct 2017 17:35:06 +0200 Message-Id: <20171005153508.32127-1-simon.budig@kernelconcepts.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <1507217501.7345.9.camel@kernelconcepts.de> References: <1507217501.7345.9.camel@kernelconcepts.de> X-Df-Sender: NDUxODk4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Simon Budig For some reason the reset pin no longer gets toggeled when initializing the touch. Fix that and restore the old behaviour. Signed-off-by: Simon Budig --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 5bf63f7..867a61e 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -936,8 +936,12 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client, if (tsdata->reset_gpio) { usleep_range(5000, 6000); - gpiod_set_value_cansleep(tsdata->reset_gpio, 0); + /* note that the reset pin needs to be registered as + * active low in the devicetree. + */ + gpiod_set_value_cansleep(tsdata->reset_gpio, 1); msleep(300); + gpiod_set_value_cansleep(tsdata->reset_gpio, 0); } input = devm_input_allocate_device(&client->dev);