Received: by 10.192.165.148 with SMTP id m20csp1517208imm; Thu, 3 May 2018 00:16:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpX5IHjyM+K6RW1U6M0Be+c6HNh+c36ulojPzIVaKOzSrilGE+2jSeyrkxN4gy1ml1pBOF9 X-Received: by 2002:a17:902:bd8b:: with SMTP id q11-v6mr12553275pls.178.1525331769435; Thu, 03 May 2018 00:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525331769; cv=none; d=google.com; s=arc-20160816; b=nv4ftAPD8O115676B5sTXxOu7V7Krj3kQ80rAoAUi9NjdnNSr2xxfVw268F03sUSOh J+B+gIb5TdvyYClZIjXWc2UyOsyGe1AfEeIoNHqFgRGvme/jGbvmVzVgHTaOUyZvoi28 +26sRsyYfhQbLFCNr6UMkzq7UgK2QZ/UmIut3ncatKOckskcWcTES5Qs+eKbg9siF7w3 Ywy1Mn9+Yj6A/DEsB15VPeB61NQyPDCy2qiJS6MaK0a/aU7JKaeX0aLpa9Pn5KdUTeJL V7hQJh7eESklz5vYffxBzP1D7oOuMUWps/NNOsTaiEUSUhEEIu4RWZ4+BjrTwvvQ3nuT nGTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=d73GbKJ/JJz3Y4qxsnqIgrPJi+4jbo/SKOdJMeE3d3U=; b=EZTaLVSFGWZfCIpPi0mjRObLOnFNOHQDZa9/Y7e48bHlx8xP/W+dtdVrBoUAa1K/zu oikeiNpUfwTqueoOwLQ/Scb0BJBKrQUIhqG1fYo+EgQJhvYs1n4axnvL2+TN5TazvAIp Y5OIAqYonmUQ6c6vUXFdnbvrlQE1BnUZLRjE/NULaQg2veiz2IvZwyebsSp/N8TSKPsH CFB0i/xOCPckK6UZXaGW4rwPgWGy3R44pU+tTEM7sdtopbMMxCUiYBdnAKr2S1yXwcWf 5ZeSmqOQazBo1Rj5NMnQHCc3G0zO6GhRjEQDgKDDyVgMzdFReaz7kO8hcS486BOOLmxO 3ruA== 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 s126-v6si10531297pgc.131.2018.05.03.00.15.55; Thu, 03 May 2018 00:16:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751492AbeECHP3 (ORCPT + 99 others); Thu, 3 May 2018 03:15:29 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:50060 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbeECHPZ (ORCPT ); Thu, 3 May 2018 03:15:25 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fE8Sa-0006zM-M2 from Vladimir_Zapolskiy@mentor.com ; Thu, 03 May 2018 00:15:24 -0700 Received: from [137.202.108.125] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 3 May 2018 08:15:20 +0100 Subject: Re: [PATCH v2 06/10] PCI: Introduce devm_of_pci_get_host_bridge_resources() To: Jan Kiszka , Bjorn Helgaas , Linux Kernel Mailing List , , References: <215a020abbafc599bda18463db6818fcb0d198c7.1525067324.git.jan.kiszka@siemens.com> From: Vladimir Zapolskiy Message-ID: <38bb255b-925a-e373-1107-259734a15b9b@mentor.com> Date: Thu, 3 May 2018 10:15:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <215a020abbafc599bda18463db6818fcb0d198c7.1525067324.git.jan.kiszka@siemens.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/30/2018 08:48 AM, Jan Kiszka wrote: > From: Jan Kiszka > > of_pci_get_host_bridge_resources() allocates the resource structures it > fills dynamically, but none of its callers care to release them so far. > Rather than requiring everyone to do this explicitly, introduce a > managed version of that service. This differs API-wise only in taking a > reference to the associated device, rather than to the device tree node. > > As of_pci_get_host_bridge_resources() is an exported interface, we > cannot simply drop it at this point. After converting all in-tree users > to the new API, we will phase out the unmanaged one. > > Signed-off-by: Jan Kiszka Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy -- With best wishes, Vladimir