Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1096656ybi; Fri, 14 Jun 2019 08:33:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb8ka2KSBMffjKkYzgdPcm7XymIxg2jJISvpiazBjWwo+y8C6WE49TaXNR+kHrnBSW7XfP X-Received: by 2002:a65:4009:: with SMTP id f9mr6238191pgp.110.1560526439635; Fri, 14 Jun 2019 08:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560526439; cv=none; d=google.com; s=arc-20160816; b=XMNMRjMf7mAhmgqhp/TY0l9MWNRdg7vr9tFTNhPbGVtLv76vTSKaY/K9eG5O8NTOOV dfX+WAZcqgb3aSXBpPW+LSC0p5iLp/jY2aT08HK4Gd8cvIxuT7ZHf5mBjqvrJEnA1oL2 kwPHfu/mZ+baN+BRuLYSoBFrnyV1qrjJcgzW1qS5WZ5lUKveIcFXMAK/o0G4Qk+lJXnD H5CGYp5OEvyxDvlj4LHLpfXryrlCvz7dN26MtB1YRm1bOcwEs66QbmjcWlzfU6fnOxMo NJwmMN99p8ZCefLfK4vadh8JnI//J4L3njG3oITI7/iMobuqMbS4kmcHAB9FneO1P8Ln cAtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pzt0mq6nzvZo+DMS/WO/vFHbG8/PGyHtBo+j8Nzi1H8=; b=b0oR+J1TN2bly2doX1KTBVgi47fu3AnwxilQP7j9eYu8vDHgdgPvl2V9POb5YWLjB4 Cd5dEcgY8DgVEpt8WBds6ut41718mlPb8KJ2FrElzS1J3bDxYe7T577kTmD6lGECbX02 xJnWFTv7GFK67Y0pfZd3NCtWu3mKmfPJ+yVFna2WMEluIn4HBbJEV2tSkZrcQPaoAJOG YH7T3yjr+ePnpXlhh0KLwzKMvx7GGHeHAiKK+onR+w2B8s4staNr0rBWmXkm79D34apz 87oQB+JePM7Q+ufIdW+PU11rtji9Lp3ptY+6p8y3gDe/2UHUPk4QadahN4knjKgL4r8D 9qSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pbv6v96a; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si2706568pfc.26.2019.06.14.08.33.43; Fri, 14 Jun 2019 08:33:59 -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=@kernel.org header.s=default header.b=pbv6v96a; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726688AbfFNPc3 (ORCPT + 99 others); Fri, 14 Jun 2019 11:32:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:59302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfFNPc2 (ORCPT ); Fri, 14 Jun 2019 11:32:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5B5A2175B; Fri, 14 Jun 2019 15:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560526348; bh=PJ6s6+mmJeZDNa175UFy5kch2QVF530bftti5lPPeJQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pbv6v96aJHaQI82B1bM2l/P5uwdjb9rBNbcYo4w0uUZFLkccGWIXvBGpki/PZ8C4S FHJUzHYRR6zQKiu0bo6GftzC0byFL18pRtsSAjF6zgyC9sbUuhR1qDtjKrBMVMaNzH PouLYg27ntO8rTWKzCnoK0IzuyU6hxLIhqPJWCEU= Date: Fri, 14 Jun 2019 17:32:25 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko 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: <20190614153225.GE18049@kroah.com> References: <39e46643-d799-94b7-4aa5-d6d99d738f99@web.de> <20190614133840.GN9224@smile.fi.intel.com> <20190614141004.GC7234@kroah.com> <20190614144706.GO9224@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190614144706.GO9224@smile.fi.intel.com> User-Agent: Mutt/1.12.0 (2019-05-25) 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 05:47:06PM +0300, Andy Shevchenko wrote: > 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? Yes, that would be ok. thanks, greg k-h