Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1049122ybi; Fri, 14 Jun 2019 07:48:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfUaB0inLIIoKcilpOITtYQybmui8mvs8l6FEe1vZvZ0epWl1LGlyoXSFVQwkWCUm3mb7T X-Received: by 2002:a17:902:9a49:: with SMTP id x9mr73622370plv.282.1560523684251; Fri, 14 Jun 2019 07:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560523684; cv=none; d=google.com; s=arc-20160816; b=Lis85i+jSN/uJ1BJFzqmdF+5FztyLBdcWV0rZVE5vm7GJ5mxkFPZhqUuqPatOqD6dN nDmku9HEAkOj1U1PMJ5VvLSUbaI/1qc1AOTsljKDI+Iv/hALhJTmpZgqvfF7TtqKBGWq LQJyHHppKRsTghTDRPkWJieP1ER5flnowtz299uc3Cuf92hQkWJJ9eDV+TgN1tXHTmIi +72H80MDBe/jv1QqH8rcKIMH8K9Y7vobP4dGHpSOhZTzkrT+EvCNImTqp/m8Dd4ZTP0z cfucydvycby1rBcqLfDYaDvKhXd8g3J7uikTGDJFA1tPy0UxDsg6yFPbR6D25pWY/i8g tFkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tSSIyiJf9OoU45vKKE+oWLCwuTdg2a6NtQn6HgSNzmc=; b=uxukT2NrWCSrx88GqhJ8HpPTnZN8Kc/7MCQ96LwX/VFD6rIkpdFoxErvhWwrnJrn8F 0C8yUfysms1/PVqVMKMGiuNHndgtiJvRiGBbZqSDjVvQaqrjIyfrm2w1A4Y39xRc5xPR CTW1OwjB/Cp9zPTp5JrREyCQ+EHYy8lyBpL1KrkZ3aubDtXbcSPUrbuZfuqym2BwliuK JhOZh1nDikTqo2cxXIQqQwzt+3l6AgCNLWGlgVifDvBSLJ8oV+k33zuNNMsST0XHWLzw irvCxExnlnjwjqt491401dENmdXQOgk4V2QFsQqi6pgWQz9ChtEnrg9Z6GIX/SpeGlPj y7mw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2915154pfq.70.2019.06.14.07.47.48; Fri, 14 Jun 2019 07:48:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbfFNOrL (ORCPT + 99 others); Fri, 14 Jun 2019 10:47:11 -0400 Received: from mga03.intel.com ([134.134.136.65]:39119 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbfFNOrL (ORCPT ); Fri, 14 Jun 2019 10:47:11 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2019 07:47:10 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga002.jf.intel.com with ESMTP; 14 Jun 2019 07:47:07 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hbnTu-0007w7-JT; Fri, 14 Jun 2019 17:47:06 +0300 Date: Fri, 14 Jun 2019 17:47:06 +0300 From: Andy Shevchenko To: Greg Kroah-Hartman Cc: Markus Elfring , Jack Ping CHNG , kernel-janitors@vger.kernel.org, "Rafael J. Wysocki" , LKML , Bartosz Golaszewski , Enrico Weigelt , Himanshu Jha , Linus Walleij Subject: Re: [PATCH] drivers: Provide devm_platform_ioremap_resource_byname() Message-ID: <20190614144706.GO9224@smile.fi.intel.com> References: <39e46643-d799-94b7-4aa5-d6d99d738f99@web.de> <20190614133840.GN9224@smile.fi.intel.com> <20190614141004.GC7234@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190614141004.GC7234@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 04:10:04PM +0200, Greg Kroah-Hartman wrote: > On Fri, Jun 14, 2019 at 04:38:40PM +0300, Andy Shevchenko wrote: > > +Cc: Jack Ping, who did internally the same > > > > On Fri, Jun 14, 2019 at 03:26:25PM +0200, Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Fri, 14 Jun 2019 15:15:14 +0200 > > > > > > The functions “platform_get_resource_byname” and “devm_ioremap_resource” > > > are called together in 181 source files. > > > This implementation detail can be determined also with the help > > > of the semantic patch language (Coccinelle software). > > > > > > Wrap these two calls into another helper function. > > > Thus a local variable does not need to be declared for a resource > > > structure pointer before and a redundant argument can be omitted > > > for the resource type. > > > > This one makes sense. > > Though I'm not sure Greg will see your message. > > Nope, didn't see it, don't want to see it, it will only cause more work > in the longrun... > > > Rafael, maybe you can apply this one? > > Um, don't go around maintainers please, that's rude. I won't do it, how should we proceed if de facto this functionality is good to have besides the fact of coming new user in the future? > There is a reason > this specific developer is in my blacklist, and perhaps they should be > in yours as well :) Perhaps. > I don't like adding new apis with no user. Perhaps Jack Ping will send it as a first patch of his series where he utilizes this functionality. Would it be acceptable? That's why I Cc'ed him as well. -- With Best Regards, Andy Shevchenko