Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp764988ybb; Fri, 10 Apr 2020 09:38:55 -0700 (PDT) X-Google-Smtp-Source: APiQypK04moo9w46kfcZnFaMq0djLo5tphf6EdD5RDhmTeNVW0aaLKyTyOzfwCr/nV75ho2fxS+h X-Received: by 2002:a05:620a:718:: with SMTP id 24mr4819173qkc.280.1586536735179; Fri, 10 Apr 2020 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586536735; cv=none; d=google.com; s=arc-20160816; b=OFNJzh4d4SKZ2o8AoYguu86t71DghffPL22A1RxLLbKyn+qYVGRapnNcOAlo3HzTA0 gVWbFYhxK1QncmXjPwF7Jgaym45f9y25+YIdXZVLEQmykHZFIdCmy7IaOcxJL0thkfLD zCDvdUTup/0U4mHaDmUP0e5qytngfMvv35cM+OPU5f2F2yHpE19PjCFk9FP8hFzUiFwL WUgcnt8zR2nZ5YGz7MkLejekM6Unlq7dsyESArHXOroimqo/Yw4Wrxt1n5B/X57k9ZpM ixjbDgBv4sfS7jan0/mgfs0PsTs4zDrwAurf+krQTMSROGNEs50LJ1b4h9M7UyfS9LpZ HlAA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=kMGQicetD64osreTQ6vhdHosnrVVm4nm7kya26WOitg=; b=0z9G3oA7eKT2E72kNwMwi6LQgNyBa/AFC6oSSsuHWqe0ob/oOoyJgu4RnIjC39Dvb5 vcbSarxGhy1cCZHdfACPTZ17ay5XdSHOVWGZr8dIJxXfxdVh1gFMcshnCgsaTQ0DttF8 MWhTneBc/gLB/iGLlcwxg+8ESaPDRHQNAI0qQ7Z5y0QNsALzYYSSN6M0c9hkNJxI+duZ eMCN07DYKXlN6dRYsE04K0EhKxPBk9GLIfC40Rn9O1+/cZTJTv9IeXcytdyxxG2uc4mE 33ju48er5ATZv+sLnZ05XOK/3TtA6PjEZ6BzSb17snTd4YdLAU4EmGfA7Ipy4xGIfhe9 cimQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oRm6j05J; 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 k12si1376666qvb.3.2020.04.10.09.38.39; Fri, 10 Apr 2020 09:38:55 -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=oRm6j05J; 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 S1726598AbgDJQhj (ORCPT + 99 others); Fri, 10 Apr 2020 12:37:39 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38445 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbgDJQhj (ORCPT ); Fri, 10 Apr 2020 12:37:39 -0400 Received: by mail-pf1-f193.google.com with SMTP id c21so1247134pfo.5; Fri, 10 Apr 2020 09:37:37 -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; bh=kMGQicetD64osreTQ6vhdHosnrVVm4nm7kya26WOitg=; b=oRm6j05JIM7UtqWRYrfSaxrrD/Ym6w6VtNQlVuCeHZOGUlJq9iJJAh63qp1VuVWcnA 6tUrvMc5w4jbFD/AEDrwfhn0pnO8VUMXS9o2V3U88KWSQjZyXn01Pr4uT8GZzHYHUUlj d45zmXh82TAbafnNSli99toZ75v+WESMrHLBti5hZNs09ZkSQMY6t37mDOPxI54VxfsQ NCSL++sfB7WZeeWQBhiT53A66H5yn/uKbxYxLAwjfHXGLl4KDmVP9gEYLWtPsNy6iie2 F6ZjMej+3ND1Zh5h5E4dlvdeik9GhQCePrfp7d1nHUVJz4i6+6SUj+1g9ApCazQWm2Sl 3HgQ== 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; bh=kMGQicetD64osreTQ6vhdHosnrVVm4nm7kya26WOitg=; b=hxOTpmY3pLvFuW/qMJ6wbx8NEGe4lLq82rZz/ji2/2IkbD3fLkbj4FqT0mY76rV7md CNN3xlQKawZw/8qwZkOq5U3eCg/B3GAk9XIu+KSGxunzG+bxnFKqBTr18Q1Anj48ingG r/Qph+k9l0EGiiAuKeRg5QeYQlmG9xIdIwYXGwQ5kDuneJayZwBSVbssrDefprusrxRC rTxOJtj3S831ROzhVO+LLb5qHf4jgLYKBYBFspO7jv7EiXA33sY3g/Jyg0yK5uxz3Fa5 4MFI8B/8VteovOgWkVPpmB2CE10gkQnBRm6Km9O59qq4L7b+/vUlREJ5XO0eThZeu5L+ xs1w== X-Gm-Message-State: AGi0Pua5z0tfK8DgVVsy/RiUEVlUo9PnKpwE3VE/kmetFxb2VLRXBKp0 MenJVdlu9DkxHm/81E1GIvWbIoa4j8itCoGEsU0= X-Received: by 2002:a63:1d4:: with SMTP id 203mr5113227pgb.74.1586536656920; Fri, 10 Apr 2020 09:37:36 -0700 (PDT) MIME-Version: 1.0 References: <20200409151125.32677-1-aishwaryarj100@gmail.com> <20200409155936.GV3628@piout.net> <20200410112236.GX3628@piout.net> In-Reply-To: <20200410112236.GX3628@piout.net> From: Andy Shevchenko Date: Fri, 10 Apr 2020 19:37:25 +0300 Message-ID: Subject: Re: [PATCH] iio: adc: at91-adc: Use devm_platform_ioremap_resource To: Alexandre Belloni Cc: Aishwarya R , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Nicolas Ferre , Ludovic Desroches , Thomas Gleixner , Allison Randal , Kefeng Wang , Stephen Boyd , linux-iio , linux-arm Mailing List , Linux Kernel Mailing List 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 Fri, Apr 10, 2020 at 2:22 PM Alexandre Belloni wrote: > On 10/04/2020 13:55:26+0300, Andy Shevchenko wrote: > > On Thu, Apr 9, 2020 at 7:00 PM Alexandre Belloni > > wrote: > > > On 09/04/2020 20:41:23+0530, Aishwarya R wrote: > > > > Use the helper function that wraps the calls to > > > > platform_get_resource() and devm_ioremap_resource() > > > > together. > > > > > Please elaborate the actual value of doing that. > > > > Please, elaborate actual value of not doing that. > > > > Yes, I know that you are p* off of these changes, but why you not > > going further and forbid all clean ups we are doing in the code? > > > > To the point. Above change is reducing code base and showing the new > > comers modern APIs to use. > The value of doing it is to reduce the code size by 16 bytes. The same > people doing that will actively ruin that by adding error string for > error that will never ever happen. I don't see it in the patch we are discussing, so, not an argument. > Also, the commit message is definitively lacking. A good commit message > would say that the patch has been generated using coccinelle, that no > testing has been done and that no thought has been given. That's I agree with. But somebody need to teach people how to do it better. > It would definitively make sense to send one patch per subsystem instead > of having 475 different patches each changing only one location. Depends on the maintainer and subsystem. This is arguable argument. In my subsystems (let's forget about PDx86, where one per subsystem in principle is not working by nature of the subsystem, but consider others I'm maintaining) I prefer to have a possibility to track changes independently on driver basis. > The whole "let's let newcomers fix trivial bugs" thing is definitively > not working and it is not leading to an increase of the number of useful > reviewers and contributors Semi-agree. That people can be self-organized into a reviewer gang and try to learn together. In any case, as for maintainers, the task has not only technical aspects, but mentoring as well. -- With Best Regards, Andy Shevchenko