From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031211AbcJ0OTo (ORCPT ); Thu, 27 Oct 2016 10:19:44 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:45008 "EHLO slow1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936467AbcJ0NyO (ORCPT ); Thu, 27 Oct 2016 09:54:14 -0400 X-Originating-IP: 83.155.44.161 Message-ID: <1477575876.2458.23.camel@hadess.net> Subject: Re: [PATCH v12 4/5] Input: goodix - fix reset sequence From: Bastien Nocera To: Irina Tirdea , linux-input@vger.kernel.org Cc: Dmitry Torokhov , Aleksei Mamlin , Karsten Merker , Mark Rutland , Rob Herring , Octavian Purdila , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Thu, 27 Oct 2016 15:44:36 +0200 In-Reply-To: <1473530257-7495-5-git-send-email-irina.tirdea@intel.com> References: <1473530257-7495-1-git-send-email-irina.tirdea@intel.com> <1473530257-7495-5-git-send-email-irina.tirdea@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.1 (3.22.1-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2016-09-10 at 20:57 +0300, Irina Tirdea wrote: > According to the Goodix datasheet, the reset sequence will leave > the reset line set to output high. To end the selection of the I2C > address, we just need to set the input line to low for at least > 50 ms and then set it to input floating (already implemented by > goodix_int_sync). > > Remove setting the reset line to input from the reset sequence, > since that is not reflected in the datasheet. > > This is based on Goodix datasheets for GT911 and GT9271 and on Goodix > driver gt9xx.c for Android (publicly available in Android kernel > trees for various devices). > > Suggested-by: Troy Kisky > Signed-off-by: Irina Tirdea Code looks fine. Again, would be nice to know on which devices this was tested. > --- >  drivers/input/touchscreen/goodix.c | 4 ---- >  1 file changed, 4 deletions(-) > > diff --git a/drivers/input/touchscreen/goodix.c > b/drivers/input/touchscreen/goodix.c > index 182ff9c..6fba804 100644 > --- a/drivers/input/touchscreen/goodix.c > +++ b/drivers/input/touchscreen/goodix.c > @@ -454,10 +454,6 @@ static int goodix_reset(struct goodix_ts_data > *ts) >   usleep_range(6000, 10000); /* T4: > 5ms */ >   >   /* end select I2C slave addr */ > - error = gpiod_direction_input(ts->gpiod_rst); > - if (error) > - return error; > - >   error = goodix_int_sync(ts); >   if (error) >   return error;