Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2119133ioo; Mon, 23 May 2022 10:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIYt0ifTMZG3q6V+sP3YhgcYWfSzVa6zgpTYB5sTIIiBoAfutua+sLTBE7IeWi9qu/NWQs X-Received: by 2002:a17:90b:4b4b:b0:1dc:8724:3f75 with SMTP id mi11-20020a17090b4b4b00b001dc87243f75mr92137pjb.178.1653326890490; Mon, 23 May 2022 10:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653326890; cv=none; d=google.com; s=arc-20160816; b=ZAe5sVgSRD/2Z9jdKiPEVVAkh8VniUBX2aRjKeKwIgQ3X9n3CpQ89Oq6wFfuEgAfKk 3gX+egtL8M7ZgZzunIB/so42t5G1LKn89SSGiLdUn3AHiL8cADF1FrH9M3f+CJ5WCC1u rVVR8CS6EvjBUIsBljwxmrHOoDnnyD2UlW/F913vB7+oQTlqZiwkEBPcq+AgqhOZBhjH MsE3cihW/TX9RhF3jY1+V/C67OSRYo3h5lmn374Lmuz6+d7w3LSZtVZwgaDitunwAQQK 98mV/mfmIvGrOdy9XIq5Jx9xqRZQ29r4AKzbTmqCA9/wF4ujMhKxtI1VHrsV88dWxlEa AnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+KUfZrMd44jeutwkM8ctp8LGpCLQD+EvokgEdtPYIG4=; b=hBDa7PralE7w/BMIQ0lRYKyI09DMdLP28hbJysGeyOvsNbgfbI5VXcokEO43NIEBk1 DvRbQfgB7I/ouAcNJPreGZPi7kwzM1S5Ub0EfPyFzz7lJOjiZtRFQDIOofHPDP0Sn+1E uOn3YUldCtbXKVNe4r1/Lp3/QiNYkcV4gONaky04J1lk2Yx3gRdNug7HA+b+j+F5pOhU 2SQFnJofaM1YMnmvoFtkvIBfX8WSmI5P7G08bVIeuE4HCGTWfUGQHRM2q1Ic7qGF/Ezg rykZ0NLs+PqArto3EoDQF/jw2dModd3EDZjk1tS6ItnwdetlXUANXr38y61r4zfMrWCt RtOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JJFlz376; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f124-20020a636a82000000b003aa90e6d50bsi10617679pgc.45.2022.05.23.10.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JJFlz376; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7193D2196; Mon, 23 May 2022 10:26:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239136AbiEWRU2 (ORCPT + 99 others); Mon, 23 May 2022 13:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240874AbiEWRQq (ORCPT ); Mon, 23 May 2022 13:16:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C50CB3CA4B; Mon, 23 May 2022 10:16:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B7D160AB8; Mon, 23 May 2022 17:16:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 797EBC385A9; Mon, 23 May 2022 17:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326191; bh=/Vk7ECsDXhpMvGRMfy4e9zNGXnb68sLiEKG/15Y2J1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JJFlz376M95fHKT4usOpk1+DU/nlMnRhfnCUtso+mWTaaS8YUHut7kQUCINU1sE8T hHcMRGQ28r5KNFP7HbcebVgose+Loi7OsSZ3/EwluoMZ7LRTgevTCSOCtu83krd3O9 ATzGQUIJKB5T8AcIl+dHxG3oINVimY/euVguw3Gw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Dmitry Torokhov Subject: [PATCH 5.4 59/68] Input: ili210x - fix reset timing Date: Mon, 23 May 2022 19:05:26 +0200 Message-Id: <20220523165812.193006556@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Vasut commit e4920d42ce0e9c8aafb7f64b6d9d4ae02161e51e upstream. According to Ilitek "231x & ILI251x Programming Guide" Version: 2.30 "2.1. Power Sequence", "T4 Chip Reset and discharge time" is minimum 10ms and "T2 Chip initial time" is maximum 150ms. Adjust the reset timings such that T4 is 12ms and T2 is 160ms to fit those figures. This prevents sporadic touch controller start up failures when some systems with at least ILI251x controller boot, without this patch the systems sometimes fail to communicate with the touch controller. Fixes: 201f3c803544c ("Input: ili210x - add reset GPIO support") Signed-off-by: Marek Vasut Link: https://lore.kernel.org/r/20220518204901.93534-1-marex@denx.de Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/ili210x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -290,9 +290,9 @@ static int ili210x_i2c_probe(struct i2c_ if (error) return error; - usleep_range(50, 100); + usleep_range(12000, 15000); gpiod_set_value_cansleep(reset_gpio, 0); - msleep(100); + msleep(160); } priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);