Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1630765pxk; Sun, 13 Sep 2020 10:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+iQkLVfkhFq3Ix0LPzdtmR4/woLNe7vGirjVG5aiC5gc5wXXtviSccgii10G+6AFbjt2R X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr10707665ejj.181.1600016435944; Sun, 13 Sep 2020 10:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600016435; cv=none; d=google.com; s=arc-20160816; b=wX7gnBxOsBqcB0s0k8rEovzxOmvwrQI+s34w3oGWVNqfRwLg9Y+FlAWCUiKCDIcftD cDeZdjM+3o8o5+JAeviXmAUSbWpC8hFUnoZaxHhiZHsOIt6gJKD5QIONvOGZc+ZNbTlj a5djhjQndXvOcoJMNMU96lKRhAkalYd5j4avap1LZt+Fn3ct0fM5l8BZMnVrCVDtTCnR w7PAITIclJCy9pmkiTIqJSVfhT+6kVYdhSNkdyrL/zKWYb0/Xmztrm6F1jmcJePovs4O JzBHxRFoUIeey6IIT9fwulXl638Y69ojDp6zh048w2FwTU9aotg7PubC4vdgSdNeTVDc 55Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oABiSeqhfrSrB5GgtUZBeCSmiB7IhFQQoWXbblziWZg=; b=e62PkfgtIcDaK5ul3xVFlg9s5KOURlrf0oEksIOxdg1wn2MOqK+wtnKhG7F/cHGqjq xwZvdAYRGwsLUpKTq6oDZ1UWnscbwXfYzmnwJhfVuv6LcxkG94x+W8gGK5zs/DT4A4xQ MFgywIsG/7grG3Ug8eD0s5hzBZfAPBzW7C58WlPV1WDn7u9U1FkA05ysUPBcqKCUirpG OhUyToNDnOxo12q1ShJSwWhrQBN/FBQiWFv1dsZwtkmUWyXcLw69kO2AqGK7ezqUz/kl 8jly7MZYs/ElQ88SZOkW//kDmmXPSRwKCFEQeLVCSrX0CUhESJcCrJPT1TdBZSoxTNXa sutw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xdsz6TGT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si5398479edh.371.2020.09.13.10.00.14; Sun, 13 Sep 2020 10:00:35 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=Xdsz6TGT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725964AbgIMQ4v (ORCPT + 99 others); Sun, 13 Sep 2020 12:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbgIMQ4s (ORCPT ); Sun, 13 Sep 2020 12:56:48 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B490C06174A; Sun, 13 Sep 2020 09:56:48 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id v14so2826627pjd.4; Sun, 13 Sep 2020 09:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oABiSeqhfrSrB5GgtUZBeCSmiB7IhFQQoWXbblziWZg=; b=Xdsz6TGTcIj0F7b1MF0L6jzdy3owXK60DvxQX5pxBkpZDoIoinIbGWJsFFYVVfI2mK CXR15il+et/X7AIRjRtdAqEMu4fHaAyvv40gkdgOQes2buHhdc3nIofAmvTpLUmTCP0H 5Rh4E8mFWkHKTXc8zQ+PFkpEnywX4VuSHCUPktI6OEM1GeExTt1xhlc6hEfPt+7Ry/S3 o0mwkrGQLT8LbHtN8jEANBxP/2gKR4N33RInHUTGfOQqaQkVGefdzdYMVbxV1tKTVy8L MFSwxgRXfnhGnUiy330dxCP/2a60QICW9zoUktkXW17zi5kyKJOpzJjQTK4Na0MFXyZd X3NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oABiSeqhfrSrB5GgtUZBeCSmiB7IhFQQoWXbblziWZg=; b=k4vj5yOySvnv22UsJ18tIFcQWEaQUm9CPNSffSpa+S/A1ZPktXwjnKhu+j0kehtY0T 6w9L/rxh0ayejsljwMhrJ4Tz51tes6xRgz2U3PJmcL/IGY6fONDVVy8emmTK6f78rk26 xs+D2XrIvS5y5SH4aeevQZ76u94MwI9e+nleQmbfl2MBGJ64X/GJ8OhlvaWcPVlMEUtO ZMReMBpskjPgKY78ALJc7otrOg7fvMxPw+w3pvZr4RSUF/Xcy3RSsR3v267ndQiT3DIf 3XwxpmURBwjHCZRRT1TvgWy6cV3pm1Qb/CxNlrFQzcv6gW0MoqEYXWDxjd6xr4no1Yf3 iLmA== X-Gm-Message-State: AOAM530r3fYdwz15K7Gbera2ZKbkWWHPCSi6evSikXYFvqtAQfID9tOb uV4ddEa1NIbuskQlV09dNYMr0sgS94Y= X-Received: by 2002:a17:902:6b01:: with SMTP id o1mr10547602plk.40.1600016207742; Sun, 13 Sep 2020 09:56:47 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id i15sm1330377pfk.145.2020.09.13.09.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2020 09:56:46 -0700 (PDT) Date: Sun, 13 Sep 2020 09:56:44 -0700 From: Dmitry Torokhov To: Jiada Wang Cc: nick@shmanahar.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, digetx@gmail.com, andy.shevchenko@gmail.com, erosca@de.adit-jv.com, Andrew_Gabbasov@mentor.com Subject: Re: [PATCH v4 1/1] Input: atmel_mxt_ts - implement I2C retries Message-ID: <20200913165644.GF1665100@dtor-ws> References: <20200912005521.26319-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200912005521.26319-1-jiada_wang@mentor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiada, On Sat, Sep 12, 2020 at 09:55:21AM +0900, Jiada Wang wrote: > From: Nick Dyer > > Some maXTouch chips (eg mXT1386) will not respond on the first I2C request > when they are in a sleep state. It must be retried after a delay for the > chip to wake up. Do we know when the chip is in sleep state? Can we do a quick I2C transaction in this case instead of adding retry logic to everything? Or there is another benefit for having such retry logic? Thanks. -- Dmitry