Received: by 10.223.176.46 with SMTP id f43csp3493550wra; Mon, 22 Jan 2018 15:34:34 -0800 (PST) X-Google-Smtp-Source: AH8x2265B3mhDvPvGmTTSU6VxTx4zKcUe7R82HsIrb6LHcouPBHWD8zX6PvcLC8U/tcplyzMUUbX X-Received: by 10.107.195.1 with SMTP id t1mr1001746iof.142.1516664074539; Mon, 22 Jan 2018 15:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516664074; cv=none; d=google.com; s=arc-20160816; b=aHcQvZlWGxYbB7rt761eciNALia3dX2s8vUk6poLCXQYeGx3g16U1kY/Kawy1R/N5p xdMSEVhLRvhmbA71ouWJqv60J1BqgXA6WvExpah9ARidx5NbeJOM2++Wcx3/4sr2I0Nr m8lqGI+eCl0RukN8LzWGxdj8TeLQffrWFlgXq6cK0Wba5WDrq/qXtog9xfydYk0wKqKn 5I4HcnxqKcs/Iv26qZbNrwGGpd+ZpQAunlV3Co7tASAZH4Lo2an2qN0WbNfTLyd+stFF XmlMOcP1N/hPdDqN/fEmvaj+e5oiZL42skgDPdEHi4ivjSG3yg/SWfAHV3ClOuCgMro2 cmJg== 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:dkim-signature:arc-authentication-results; bh=wuhL5PTxa4LzvbXjh4k6DneVo0D0Oo0qIN8hXjz0+Yw=; b=j94xgNRjibyQRZ+mBzyeiqBIw9VC5WgI/9hTNez7LWv05rdMnBg88I/aFCLEdD4JZT IIFZHOJJvrGELf2TClrEJ6ftL3MCay5/AYQ4dT2s2WEZ0sjGtW7LWdzuK0jmVbzLsxHQ EuE5+xDpUvLqlvxOKw55ACgb7oQWxOwV1v6obDWvAo/IUhB7EzU12qXakZCLj72mWaPq kZaNmW4DqQSW8DMZ3cb2rPgXs22rYWSOqcmsxhnXPaP3cOklCAgJnnOufOkMOMiNQ/Am MGleXryINxI3d+BEiAeNH6HT3F2PE5kuPu63+d4akIde19msgKdKArcnfDIjxvRVV6W5 xeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EBao1Sj2; 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=NONE 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 e25si14516889ioj.278.2018.01.22.15.34.22; Mon, 22 Jan 2018 15:34:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EBao1Sj2; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751231AbeAVXd5 (ORCPT + 99 others); Mon, 22 Jan 2018 18:33:57 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33790 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbeAVXdz (ORCPT ); Mon, 22 Jan 2018 18:33:55 -0500 Received: by mail-pf0-f193.google.com with SMTP id t5so8310849pfi.0; Mon, 22 Jan 2018 15:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wuhL5PTxa4LzvbXjh4k6DneVo0D0Oo0qIN8hXjz0+Yw=; b=EBao1Sj2630bov5EiEKK8RXcTJyk5LuYzCfw4nlcdpoAqo02oi0odY3eo4fAEuZRD/ 6B/tW4fKzvKPx6C4fq0PZh9MLoRXnmDClL+C67DKXoVl0+KT9UVZeCAL6zxbL3krhHOr C7qpD/0ME1/WdRsk7EjkKceiFeWJNH3DcGvvpak2uuMMjwcHVN6XuJGAtIvU/bsNJCoX 8csW20BJchXVrvFWa7zhOtI7KnSaJ6qm6SBzBFzwqaDdSCe02tkG73gpY8BcUeWS5HdU aagd+ryjgptt9jveWhUnks49B6Ibx7sfTWP9rz1EoNdr8HfviuYAUAQ452khRT7ZxCiO Hz9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wuhL5PTxa4LzvbXjh4k6DneVo0D0Oo0qIN8hXjz0+Yw=; b=EALd6cCrTLbRKHej9zoPJ6o5Pw4ucuPchqc6+Csev2AVmTtqn8z01bcAvqArD2HuKF DnwcmiroclTfKuvsrfhAjVAvMHFFoyw3ni9x00M+VUyptDCe+O5zBwXZY4w8/749Kh5B z1+e524XOJf0gwVCfGbAR9+U856TDz5fxASCtt1HPcpHRhvqlNj1PvgzccqKEx48cbDT UMK2jr7RuYRGsOxuRdr9omyKZUycvHDtikDoK9cAU06UtCRVS4w9lCSdMBVDzwDxjc5k acUNwaGUpx096JrwkeYcdkkcIgK/fNcCm4ZfQA0Qvt/TPtiZrqdEQlUN+D507jhJC5Vf V94w== X-Gm-Message-State: AKwxytcnsb3KHPGnFaEtXMB0bO0dPB1hsxrSQwiWOaD02UnirDbgG10R 3DAul5rr0y3Lt6XxET24G8E= X-Received: by 10.99.117.74 with SMTP id f10mr7632024pgn.385.1516664034975; Mon, 22 Jan 2018 15:33:54 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1611:da80:8749:c06f:9515]) by smtp.gmail.com with ESMTPSA id 206sm1934398pfy.71.2018.01.22.15.33.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2018 15:33:54 -0800 (PST) Date: Mon, 22 Jan 2018 15:33:52 -0800 From: Dmitry Torokhov To: Ladislav Michl 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: <20180122233352.li5ns3h5bbtfcejf@dtor-ws> References: <20180121211432.GA15151@lenoch> <20180121211538.GC15151@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180121211538.GC15151@lenoch> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Anyway, up to the maintainers. Thanks. -- Dmitry