Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5571628imm; Tue, 26 Jun 2018 13:45:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ9JLpkeBCpgjJzbns9GeeXJoJjRhRgr0mbvkRX9BO7W1HcVg1H1RDFWFx1Wr22hixUglkH X-Received: by 2002:a63:2b88:: with SMTP id r130-v6mr2603823pgr.170.1530045936662; Tue, 26 Jun 2018 13:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530045936; cv=none; d=google.com; s=arc-20160816; b=Q7BEgtfaqmO2RRWnHJY13OQM29w4RJme257Ww2vtuwujBBg+MUnTOMN9Bc3Hn/DRVm eO+N+McO32/vABJuzqYoYrPR3AK3rReN8gM5k0HJsE81n60+uHQCjezSRP9t3aDeqy6H qJG8bjsCqXOhUH5eYjepmAL3Tw78Nkn+CJ7NrtWPLQtkAdxa0Tp9yIRuhS2j2U+zeQ3B IIhOz0nqFw5iwZHXdMIq6823TXTSFvRBrotey61/oM1hHMt1rSGsA5S0O/cjFxeK8C/O uETqF3wR3+mo5dIunKYmjnBqB92Owkhci6Ts0jWspYfGRlnG9yepmhtkdUbrpAJFFA5E UeUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nfOtQiQHZ+wi2NG1xVzLSk3SFSAgbgKPgSuzz4qK8fo=; b=q7TyNRnl7hXTvEVS1wGrUHeBCrVQfAJDyqHL01kGTvCRyH+pxxC0/braKdjPAPpk9E qfcHAduddOi4KFn5qB0C8vbwno4BbrLo3Qn2A+A+ieg7GfBBPUEl1dPnTBl9UAD++Pb9 CvuFOq8WJ+DBHceTQX7axafdj3AgUE2fBDB8DR4m/+S+6zLwdJ5Y2SfYiWGe7v8UOjcd kaUKvMyLkmsMGXlHSMBne9KazJKwU4rGmt1K7eI7rszLdmAg9AVMYGTR4BC6lDM7jwvz GZkwSJzy4UnDSCpF/4FPl3EUJo0laNozEeY9de5B+laSdqbX9ksrmG71U8Fr+vPzqlqA NwrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iuG59Bn6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si2262996plb.213.2018.06.26.13.45.22; Tue, 26 Jun 2018 13:45:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iuG59Bn6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S934001AbeFZUol (ORCPT + 99 others); Tue, 26 Jun 2018 16:44:41 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:39170 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933191AbeFZUoj (ORCPT ); Tue, 26 Jun 2018 16:44:39 -0400 Received: by mail-ua0-f193.google.com with SMTP id n4-v6so11798539uad.6; Tue, 26 Jun 2018 13:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nfOtQiQHZ+wi2NG1xVzLSk3SFSAgbgKPgSuzz4qK8fo=; b=iuG59Bn6usjcFnFs4CV35JsJ0FRReAKI9QmMgE3PK0iqIO9maDgbclk8R4v3EMBhvY F8Upcehbqn7P9qfFRxa7BPAEbNW2Xx+glh+aHdoOsKWbutXFDhV51j4B6wkZl6G/CfwL VuA/HA6caQhrFrLIlh6Jhm+I0zVuNUIXnbMz5LU4ZskihQ1M2lux09H5s1oseK+Fn3Ru qjpKrlcqwqJuk2F+XWq4Pk8w45OPNmD6wVywZU+tehjOdvLcZclJKgZR7el+uDVxPJuQ GPYemnP+GqFGVvWMbx6bmTYoUFc4nPGy8oPASkvOxlo3Z1vscVh9m6nS0HEa7jbm5M8o 8K6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nfOtQiQHZ+wi2NG1xVzLSk3SFSAgbgKPgSuzz4qK8fo=; b=rMFZVA3MkEQeeHIogM9ixMr5vBwfPW6uM89GT1rOPyLoV/ID0+J5p7HLPMWoLnWvky P660yLzavMnRk956d37CSBdRbqFTR7wzmo2d7cA1MgaSnvSOysvE+xjOl66BUgeR6r2q Oi1mmT0/ZR5jhbQUoqvFUpfHXusbvLQ3eQWiCDoNT+JtNxNkucNsu11MKI/LjDjoqO3E 1JoM4BvAFKoBVfGM1bfmjDBOLsh8jgpo4Y8+ZtXSN/l9Yq0FSQ4b6IgtkHoTl/55qtIt +uDkmSb7GWhlH8FM6R8nohJ0YR7lkGhO71LJ4sSmaPH9HwZ4pwEsURgcPu7oYhYWPjBS lrjg== X-Gm-Message-State: APt69E3PwVWiRlvquGJc7mIYubw/cNTVs42rhjz6wwUd1ANtTWyrQzCD TV7fkqi9GIHoLUCGNjwQUI7U5APdKLhSybw/Jxo= X-Received: by 2002:ab0:70a9:: with SMTP id q9-v6mr1983563ual.141.1530045877911; Tue, 26 Jun 2018 13:44:37 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 13:44:36 -0700 (PDT) In-Reply-To: <20180626215648.1472b96e@bbrezillon> References: <20180622104930.32050-1-boris.brezillon@bootlin.com> <20180622104930.32050-10-boris.brezillon@bootlin.com> <20180626215648.1472b96e@bbrezillon> From: Andy Shevchenko Date: Tue, 26 Jun 2018 23:44:36 +0300 Message-ID: Subject: Re: [PATCH v5 09/10] gpio: Add a driver for Cadence I3C GPIO expander To: Boris Brezillon Cc: Wolfram Sang , linux-i2c , Jonathan Corbet , Linux Documentation List , Greg Kroah-Hartman , Arnd Bergmann , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree , Linux Kernel Mailing List , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2018 at 10:56 PM, Boris Brezillon wrote: > On Tue, 26 Jun 2018 22:07:03 +0300 > Andy Shevchenko wrote: >> On Fri, Jun 22, 2018 at 1:49 PM, Boris Brezillon >> wrote: >> > Add a driver for Cadence I3C GPIO expander. >> > >> > Signed-off-by: Boris Brezillon >> >> > + scratchbuf = kmalloc(sizeof(*scratchbuf) * 2, GFP_KERNEL); >> >> kmalloc_array() ? >> >> > + ret = i3c_device_do_priv_xfers(gpioc->i3cdev, xfers, >> > + ARRAY_SIZE(xfers)); >> >> One line? >> >> You don't change mask here, why do you need a pointer to it? > > What are you talking about??!!! This is part of the gpio_chip interface > that drivers have to implement. You can't decide that mask should not be > a pointer. And if you actually look at the code, you'll probably see > that the reason we're passed a pointer here is that the GPIO chip might > expose more GPIOs than can be represented by an unsigned long, hence > the array of unsigned long. > > I'll say it here because this is not the first time I'm pissed off by > one of your review. Like 'I like offending people, because I think people who get offended should be offended.' ? I'm not that guy, relax. > You seem to review everything that is posted on the LKML, That's not true. > and most of the time your reviews are superficial (focused on tiny > details or coding style issues). Don't you have better things to do? If your code is written using ancient style and / or API it's not good to start with. Isn't it? Otherwise, why we do introduce new internal APIs, for what purpose? On top of that you might find more interesting reviews where I pointed out to a memory leak or other nasty stuff. But of course you prefer not to norice that. I understand you. > I mean, I'm fine when I get such comments from people that also do > useful comments, but yours are most of the time useless and sometime > even wrong because you didn't time to look at the code in details. Calm down, please. You would simple ignore them. Your choice. But okay, I would try to avoid your stuff to make you happier. Sorry for disturbing. >> Ditto. In these two comments I'm indeed wrong. -- With Best Regards, Andy Shevchenko