Received: by 10.223.176.46 with SMTP id f43csp3820220wra; Mon, 22 Jan 2018 22:59:23 -0800 (PST) X-Google-Smtp-Source: AH8x226qSxKpZKXsqBgVMSvFL6P35WtrNaeEkdSxuTdi+ePAx+5UL1xw03QFn02a+sIgRqiM4l+2 X-Received: by 10.101.102.73 with SMTP id z9mr8072271pgv.448.1516690763104; Mon, 22 Jan 2018 22:59:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516690763; cv=none; d=google.com; s=arc-20160816; b=hQ1LM+xdJ8gvdt1Rk9f6shZmn6np4J44pGroI+7sYo0ld9f19WeO6wk3inONc07GGE u9yNQKx1uJ++1cpFRFkXjDVafJVtsN0PksjZ67qqyGQSAlOUQuvABrsrfsQkYHZrUtbT +WbDDkd5//zwTcHxXzjkISdMK/l0kEzU0wt23wvHXJM9c3fwkG/iJPXp20CK9RBO/mqt VWq5GV00LtbPCXtNi6nmW/HQZoGb1lM+1neF7rlRHrzbmsCFihR0FYWgLeTXPMswjuPb EePHGuVikpBSO4bvOMQjq+vlYDFXwuRj4tBJpqNpnF4i4YFBjM0xIkggyRsaK41fGFW0 ULkA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=LJYkx5RSIDgiDM9FgMheyg36mhNgdTRRKQ8+fW80h7I=; b=rtNcdzSah2eKCBv3LgIYbcnung9RC2sl1V04srabnYrD8b4CvrWtzjVzso+YtmhiU2 W6jADNJdOfjpY8UHdwUVe5/J80E457U9t9AtzAvLxMmQBf6BYYydyJerlnQkH7H+D49z O6tDkFniLAB4TRepBhEjUtcXW7ltosGlGmry2cL51dh90XclrtowbnvBgR45bEzlFvjM MJ9fGK+AOs60KKwHJHnzPder4G3+9guwtnjOY1NcBvg7Vql2N2HzaAkr9J6VssRlZh1z pl6Burq27vm8S9KJcWJM3uFQK1J5ShBblYdNi8KAIMpekbhx1ZfMCrhHPbieYfHPpmsN 3Lgw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si14591892pgs.755.2018.01.22.22.59.08; Mon, 22 Jan 2018 22:59:23 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751214AbeAWG6U (ORCPT + 99 others); Tue, 23 Jan 2018 01:58:20 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:49286 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbeAWG6S (ORCPT ); Tue, 23 Jan 2018 01:58:18 -0500 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992781AbeAWG6PWVPTV (ORCPT + 1 other); Tue, 23 Jan 2018 07:58:15 +0100 Date: Tue, 23 Jan 2018 07:58:07 +0100 From: Ladislav Michl To: Dmitry Torokhov Cc: Bjorn Helgaas , Wei Yongjun , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 2/5] PCI: Move managed resource alloc to devres Message-ID: <20180123065807.GA30349@lenoch> References: <20180121211432.GA15151@lenoch> <20180121211538.GC15151@lenoch> <20180122233352.li5ns3h5bbtfcejf@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180122233352.li5ns3h5bbtfcejf@dtor-ws> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 03:33:52PM -0800, Dmitry Torokhov wrote: > On Sun, Jan 21, 2018 at 10:15:39PM +0100, Ladislav Michl wrote: > > devm_pci_remap_cfgspace() is using devm_ioremap_release() > > devres release function. Move it to devres along with > > similar PCI functions to allow hiding devm_ioremap_release() > > from public. > > So we are sharing this function: > > void devm_ioremap_release(struct device *dev, void *res) > { > iounmap(*(void __iomem **)res); > } > > and we want to hide it, and for that we are moving a lot of PCI-specific > stuff into lib/devres.c. If anything, I'd say we should move more PCI > stuff _out_ of lib/devres.c, and if we wait to make local copy and call > it devm_pci_cfgspace_release() that woudl be fine with me. Well, that's fine with me too. Will send v2 without all these changes. > Anyway, up to the maintainers. > > Thanks. Thank you, ladis