Received: by 10.192.165.148 with SMTP id m20csp914478imm; Sat, 5 May 2018 00:44:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr5eBZdG4lwJgNa3PAdfi8E/Xe5zWxoHuBWnb/lO9stqdexTIr+T178HtcXYkEx4lW/hn38 X-Received: by 2002:a63:ab05:: with SMTP id p5-v6mr23809480pgf.387.1525506244753; Sat, 05 May 2018 00:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525506244; cv=none; d=google.com; s=arc-20160816; b=PISzgq/1u/CKhOFo8ui0t0joaU/roJGLO11xuKIlKnxt+Sp+/G0Hri1tCOsoi2T/Fw Osnfms1RabS5EswtVPqBRuQS3KP1qNYsgDoJXfLOABx9rRsqg4rSJllWv2qdMQI4m8ff oUok1DOVVLEaepbY4bxKSaZGJCqNJudQtsoSP9pXueEZ/wkxNh4r3VUenibhM0uqwKWJ /od1CLMczc0ujFQFWagumwoKkDW8vqSds6T04dTCDYGqrNwuXUzMi6Nl6xeMsbskwWZw YRJQ+giWVcwQaWONVfkAToKeY+KZALMvngJOMHrEIAh2Lsk8wPikRFiB891DzjHgfWlX EfAw== 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:cc:references:to :subject:arc-authentication-results; bh=uhL2ogty6Rolgd+3koslzxEPTQHAid5WwAvX/DstpAg=; b=ZUe5IjqNkNFUtOhWNQMKwilBXqLz376XqaAwvYSZZdeiQyXLrAjkfxZHCCrmyUbmYM yjfUcIEd0014pOO4InqwpQ/Gla1gSPEnFIAMe4syUKaq/QmRZ4GQCMRvMR4IvFw8RPj5 TolettsgemVTZ9Gx0s9tIAmqRe+v9nT9LVgWaXj6bjmuAEWLVAe9aClgewYxaruiKAc5 d/fpvd3SxY9Rb6rhgbrY7AtkrnP9NzgRbhc5eTVViNmmAI4PIQsPf9xzsF/AaLRkQVY3 dZxycrcivfFetg5RjNIfYs7bL2y9Mu0tCt9jJgLwj5pWQYo/woq3V+NP1stvRT21wYLT Jvtg== 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 b7-v6si18490956pla.345.2018.05.05.00.43.48; Sat, 05 May 2018 00:44: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbeEEHm0 (ORCPT + 99 others); Sat, 5 May 2018 03:42:26 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:49970 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbeEEHmY (ORCPT ); Sat, 5 May 2018 03:42:24 -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 1fErpk-0000WG-TO from Vladimir_Zapolskiy@mentor.com ; Sat, 05 May 2018 00:42:20 -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; Sat, 5 May 2018 08:42:17 +0100 Subject: Re: [PATCH v2 07/10] PCI: Convert of_pci_get_host_bridge_resources() users to devm variant To: Lorenzo Pieralisi References: <20180504164401.GA17043@e107981-ln.cambridge.arm.com> CC: Jan Kiszka , Bjorn Helgaas , Linux Kernel Mailing List , , , Jingoo Han , Joao Pinto From: Vladimir Zapolskiy Message-ID: <0b7bf715-63dc-e2dc-a614-02d88bdc0254@mentor.com> Date: Sat, 5 May 2018 10:42:16 +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: <20180504164401.GA17043@e107981-ln.cambridge.arm.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 Hi Lorenzo, On 05/04/2018 07:44 PM, Lorenzo Pieralisi wrote: > On Thu, May 03, 2018 at 10:18:24AM +0300, Vladimir Zapolskiy wrote: >> Hi Jan, >> >> On 04/30/2018 08:48 AM, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> Straightforward for all of them, no more leaks afterwards. >>> >>> CC: Jingoo Han >>> CC: Joao Pinto >>> CC: Lorenzo Pieralisi >>> Signed-off-by: Jan Kiszka >>> Acked-by: Jingoo Han >> >> [snip] >> >>> diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c >>> index 6ab28f29ac6a..6eb36c924983 100644 >>> --- a/drivers/pci/host/pcie-rcar.c >>> +++ b/drivers/pci/host/pcie-rcar.c >>> @@ -1067,12 +1067,11 @@ static int rcar_pcie_parse_request_of_pci_ranges(struct rcar_pcie *pci) >>> { >>> int err; >>> struct device *dev = pci->dev; >>> - struct device_node *np = dev->of_node; >>> resource_size_t iobase; >>> struct resource_entry *win, *tmp; >>> >>> - err = of_pci_get_host_bridge_resources(np, 0, 0xff, &pci->resources, >>> - &iobase); >>> + err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, >>> + &pci->resources, &iobase); >>> if (err) >>> return err; >>> >> >> this one snippet is obsoleted by https://patchwork.ozlabs.org/patch/904326/ >> >> If 08/10 remains a deprecation, then it is sufficient to exclude the R-Car change, >> otherwise I hope maintainers can deal with the proper ordering. > > Isn't applying your patch: > > https://patchwork.ozlabs.org/patch/904326/ > > and dropping the rcar hunk from this patch enough ? > absolutely, but it relies on any of two assumptions that * my unmodified change is applied first, then Jan's adjusted change is applied, * Jan's unmodified change is applied first, then my adjusted change is applied. Otherwise there will be a trivial merge conflict, or even worse, if R-Car hunk is removed as suggested, then of_pci_get_host_bridge_resources() is removed instead of deprecation, and then my unmodified change is applied on top, it will result in a window of commits, where R-Car PCIe driver won't be buildable, and git-bisect users can be disappointed. It makes little sense to include my change into Jan's series, thus I rely on maintainers' awareness and smooth resolution of the issue by maintainers. For what it's worth, I vote for of_pci_get_host_bridge_resources() removal. -- With best wishes, Vladimir