Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2272475pxk; Mon, 14 Sep 2020 08:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI+4SZ3WyYLKA/6X94v7WRiMMdyXlkIM0QMsyCn62h6yzsu+Jzm9Q5jd/uezlr8QLDQg7C X-Received: by 2002:a17:906:bc52:: with SMTP id s18mr14668630ejv.398.1600099120844; Mon, 14 Sep 2020 08:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600099120; cv=none; d=google.com; s=arc-20160816; b=Tk9AwzV5yrLKvQ6hSn2ZkOb3LMDF9T6V8OaRDMCPftrK4X76GeIo6j0juN5t9EWL+x oiAdGRM421r4K1u3fv2Q31rZ69emi9+VBFPzuL5ZxJppt+cgkAW1GMAlVdSxfu4HH6vS X5PbqbVgTMGj9FE5wuALoGBXBluJYokkFDxlIwIcxy3Lwc4OC00RER2GEQ+LTvi1J4jJ 7uA3X8NZZkLA51ObZUSu4Q1IGjgndAT8lnLyP1kInPsQErdf0DdH/i/UyV8Fnpew2jF9 gakf8lus7wTO/hbQD7Wg/p//b4NHXF6MCmZ6z4r2RHQJO2Ul83RJwwZs9uMqp3FxZhMj 62Jg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NeEIdkUfiAAP9K0el+EdAG4xvlSnbHSg0aEKW4bMslI=; b=m3KHRXxF6Ebnsl+EdwucZdqkQD0LryVVq1l64MDyuw/9sljqEyUZp2VLKa42CedypK gvmnqEE9YXGjpdcxy/iXw9Fs6MHnJuUkRhavZzdUATqctyb36Y/H0Xem1OTyrNuKvUCo Qm1klHtQ/y5W0uA0AOzdg3lFcAxp+oxQj4ItwcryXFxJ1C9tmBbsTC97TT9ocr1z48wA ZprgwQOBTIJmREk6EIu8TzuHWdMCyAKO0EIVvyF45755H76bummaYD0899aZ73hr8i68 qC+Os6lq801cajlarrPKfdrXhCJ+gyS150p4avgLXEPzfatLZVW5jCcQMH4MYd4BdZ4A u8sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Lr9oqe/A"; 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 v3si7736389edt.45.2020.09.14.08.58.18; Mon, 14 Sep 2020 08:58:40 -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="Lr9oqe/A"; 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 S1726349AbgINPyy (ORCPT + 99 others); Mon, 14 Sep 2020 11:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgINPvH (ORCPT ); Mon, 14 Sep 2020 11:51:07 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E03CC06174A; Mon, 14 Sep 2020 08:50:56 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id k15so12966843pfc.12; Mon, 14 Sep 2020 08:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NeEIdkUfiAAP9K0el+EdAG4xvlSnbHSg0aEKW4bMslI=; b=Lr9oqe/AHxcqpa3/s/uqXOxrKyk1aW7EudKoYxXKorf6b9d0JWkPYC07WQPYCVbwtH OMiPMTaw8YqGKmZVSsydJmB/ES/CjemiZFaqcu3E9FcfVOJfVsoof7ebusmb/0nNbuar glRVsu4Pa6H8NTrT2hStu6n7Xu6pWMfewapuYXafZTXO+PRdYHzYK4xsyytSYM12o40a bBS4VQXEmxY+XyYbcKmkJZIU3E5cEKmY+jkzHA0MoUlidBxOuWZLllzgwMkwTuhuWDPk NIw0eaWQY2+BOwsSmiqh3PVSo0XAdLULwsngE8DYCSavZtp8rAyc+CkxePJ0CXdI8N1Y FJIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NeEIdkUfiAAP9K0el+EdAG4xvlSnbHSg0aEKW4bMslI=; b=phZhXPiJaHz4PCelhsqr7OrIsL+nHLuUseiHXF3338wfSxTG454oJwsifFDNMV3mFu En0oesFMl67UprNtyNFYkFBvQdAV95wZhDzRrVppXs5jugZdU3GB9SV1XD1AmVhCkX5A PURNHLsp7fTCVQrt2/Lh41bQQ1VbX7wVapddrxOZm16uiZN5URC0lnCO0MsH7XvqTTl+ B0JwdntLKJgI78XE3M4pwwrnplBGG96h+qloytdyUkw/6wSbnMbwrSkjAzCAGANW0jTt LtQzyM6GO1L7b5K01T3JThbz4ttf1C9bLcPS0fiA2ZKfxVeqJSHpFplHeyXcGIn/pNO/ GZyQ== X-Gm-Message-State: AOAM53119DEhTqwPNDKrIMEiAA1AU7dQgT3+HdLxpOlHsYn9N34Nq6QT 2zNI4aXUZ0/ZI1o6aG3nyt0FmJcbDjNdWwDnekU= X-Received: by 2002:a17:902:6bc1:b029:d0:cbe1:e76e with SMTP id m1-20020a1709026bc1b02900d0cbe1e76emr15559440plt.21.1600098655867; Mon, 14 Sep 2020 08:50:55 -0700 (PDT) MIME-Version: 1.0 References: <20200912005521.26319-1-jiada_wang@mentor.com> <137be969-f99a-66e0-ebe4-b86f4be2b5d3@gmail.com> In-Reply-To: <137be969-f99a-66e0-ebe4-b86f4be2b5d3@gmail.com> From: Andy Shevchenko Date: Mon, 14 Sep 2020 18:50:38 +0300 Message-ID: Subject: Re: [PATCH v4 1/1] Input: atmel_mxt_ts - implement I2C retries To: Dmitry Osipenko Cc: Jiada Wang , nick@shmanahar.org, Dmitry Torokhov , linux-input , Linux Kernel Mailing List , Eugeniu Rosca , Andrew_Gabbasov@mentor.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 6:26 PM Dmitry Osipenko wrote: > 14.09.2020 16:49, Andy Shevchenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Sun, Sep 13, 2020 at 3:57 PM Dmitry Osipenko wrot= e: ... > >>>> + ret =3D i2c_transfer(client->adapter, xfer, ARRAY_SIZE(xfer)= ); > >>>> + if (ret !=3D ARRAY_SIZE(xfer)) { > >> ...> Also why switch from positive to negative conditional? > >> > >> This will make code less readable because of the goto, and thus, there > >> will be two branches for handling of the returned value instead of one= + > >> goto. Hence this part is good to me as-is. > > > > But it's not the purpose of this patch, right? > > Style changes should be really separated from the fix. > > This should be up to a particular maintainer to decide. Usually nobody > requires patches to be overly pedantic, this may turn away contributors > because it feels like an unnecessary bikeshedding. Let's see what Wolfram thinks about this. > It's more preferred > to accept patch as-is if it does right thing and then maintainer could > modify the patch, making cosmetic changes. It depends on the maintainer's workflow (which may be different from maintainer to maintainer). > > And since it's a fix it should have a Fixes tag. > > It shouldn't be a fix, but a new feature because apparently the 1386 > controller wasn't ever intended to be properly supported before this patc= h. Thanks for clarification. Indeed in this case no tag is needed. --=20 With Best Regards, Andy Shevchenko