Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2193054pxk; Sat, 5 Sep 2020 11:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/c0lcyyGbUyhhPRMlqjWpnP/fM5kDKHopxMNYlKzBlUgff2mx8k6G0crprPgwQ0Quhuck X-Received: by 2002:a50:fe07:: with SMTP id f7mr15178438edt.173.1599332361843; Sat, 05 Sep 2020 11:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599332361; cv=none; d=google.com; s=arc-20160816; b=K0Oyl1SNRL8KyAXaxK2AseHSKNiC3DKyjP4pjbIHpsOZFzX1nj7gM+dv7By5OAMGQg iHDh8Z/MBB0N1L7o1jXRd3zfyqn9p+OzexlTyFhCnWhLN+BV3I5lLPOgbn8uLe62i1tt ll0kJ/km73i6i4rtGs6wKDoJLWFF1DR+iPUt/f15137Iy3e/A4xzUTNPIGDQDwdN1wyS ozqlaxdNSH02NxUb+7Zk0IV3nXszs44+tjVBg8Lud3rWVzjoUo9X6pQDPNK1hF3w7o9k jkV2RvHlPlxPlBYWXtXDQSH6Cj8iDUfLBewVnG+Mppk/gk4/hhVPVn+HzzW3KQczaa8M 9t8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JFaZX1yPOD5YrQmNNicSv1U0vDJOVK3tkWFEsyFX4y4=; b=Ns4uCA/k3lPJF7BWFt+IjNFl+aKdinE/oP1ApzpQQtpTyDxX6MMWPzHm9Z6l/ItXkj vKczS1lQVIfebfvrJneWNRuuaztDzhMTWK1Oew56XDC1zH5VAphc8wH3JB8rQs0sTb4M Dz9PAlHWZR42SYfDQ47DL8+EhZ68cXZBl5b0SS88s2VIAEvocomg/lud0z1mYPg9s3B+ /FMZJpywbh0ptcGCSrLsfOpC3Ds8E3M7lxknMeqmJO3enhe+DqqcFVAvP3raBRDihL+A ctyg+3iWNSlUYBCYraVjmc4N1o0bGAp/O2kv0bAics9IkLfZZg1RVqqMGEypkOHcKELd Wzlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B1RmBQpd; 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 v4si6571444edw.450.2020.09.05.11.58.58; Sat, 05 Sep 2020 11:59:21 -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=B1RmBQpd; 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 S1728627AbgIES5O (ORCPT + 99 others); Sat, 5 Sep 2020 14:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbgIES5N (ORCPT ); Sat, 5 Sep 2020 14:57:13 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE3EC061244; Sat, 5 Sep 2020 11:57:12 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id b12so5537096lfp.9; Sat, 05 Sep 2020 11:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JFaZX1yPOD5YrQmNNicSv1U0vDJOVK3tkWFEsyFX4y4=; b=B1RmBQpdyLlyQgJYVUrPN9Cvl8GQ++LbY4Lt3/r+6FNcLlrHHi3xyKUU1hvbb49LE0 BJzRGQkIs2RhGGcCcu6TopgxIhQBi47AN2TmI0fy9Uk8Ua07PkPE2HWrdCGdPXAhaLoG VR9VnG3UNvHjD8wP+wQVG5IRplNurGSyNUlo0XvgyoirnVoYDnDNnyaDqf7V8JR37wVq nDc9wddtckAigqQC96qxoAaMXiwCfNe5F+MfiJacds0S9DSkwWNsq5MUDYMH1WjnOFsn pY2uvrdUOXMVhBf4sUZwUjC1KIFkeL9z5wY0idygzWZJbZ5sNAr5Wu6bfIW2Y7BBI8Gm Vn6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JFaZX1yPOD5YrQmNNicSv1U0vDJOVK3tkWFEsyFX4y4=; b=qqKf44pRn3yvBdTNT/UrKnreaWQctPGUSuVsstGA1CJ3+88SkyBAA6u7dKApE7Vrf3 i44IQzXWvQQie9RBJ0heMzBArPVl8rtdsdzZmIkPg6YZaNH6g+o4yl7K4xsR2ANWnmeZ l1DrndKIBp5a8aNwVORRGXDdIRgacrbqnySQEZwIHR03kU5z7cDDHBsyICi0qfTlStpZ nnOoWaxZTBwt8aJ5PAyJW0Gyp8NOUKTigu1Gvox95IO62oulOcaY4o6r5KoI8f/HnQ5M qsDZgMpRzrGIFw8MsiKiQhF/Uk86ed1kR5dcHd9+iTQr91k/X6Kgq6B16u7acIAVEKBJ YWpQ== X-Gm-Message-State: AOAM53102AFyn+Hka1WlQHj2tCzajDoLNBSAJg24/EuFq+HIidnLqrjU 0QY4LvifXxpEskozhTluCo0= X-Received: by 2002:ac2:5547:: with SMTP id l7mr6639332lfk.153.1599332230136; Sat, 05 Sep 2020 11:57:10 -0700 (PDT) Received: from [192.168.2.145] (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.googlemail.com with ESMTPSA id q7sm2742041lfr.16.2020.09.05.11.57.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Sep 2020 11:57:09 -0700 (PDT) Subject: Re: [PATCH v2 1/1] Input: atmel_mxt_ts - implement I2C retries To: Andy Shevchenko , Jiada Wang Cc: "nick@shmanahar.org" , "dmitry.torokhov@gmail.com" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Andrew_Gabbasov@mentor.com" , "erosca@de.adit-jv.com" References: <20200903155904.17454-1-jiada_wang@mentor.com> From: Dmitry Osipenko Message-ID: <610b2513-7d62-386d-ed2a-54e1bea4df43@gmail.com> Date: Sat, 5 Sep 2020 21:57:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 05.09.2020 21:02, Andy Shevchenko пишет: ... >  #define MXT_CRC_TIMEOUT                1000    /* msec */ >  #define MXT_FW_RESET_TIME      3000    /* msec */ >  #define MXT_FW_CHG_TIMEOUT     300     /* msec */ > +#define MXT_WAKEUP_TIME                25      /* msec */ > > > Can we simple add _MS unit suffix to the definition? I'd expect this >  /* Command to unlock bootloader */ >  #define MXT_UNLOCK_CMD_MSB     0xaa > @@ -626,6 +627,7 @@ static int __mxt_read_reg(struct i2c_client *client, >         struct i2c_msg xfer[2]; >         u8 buf[2]; >         int ret; > +       bool retry = false; > > > Keep this ordered by length. and this to be separate patches that are cleaning whole driver code, otherwise there are no much benefits.