Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1133786ybg; Tue, 2 Jun 2020 02:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhUdcGuP1wzInhsISXGBdJv5aXEbR8w5670O9f8yp7DWWMfNeg91UIQlJ4UE1optqWmXTD X-Received: by 2002:a17:906:6b18:: with SMTP id q24mr11545975ejr.202.1591089008923; Tue, 02 Jun 2020 02:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591089008; cv=none; d=google.com; s=arc-20160816; b=k4jUARSXymHmSz92HWoCjfoOAbyKzRl6MJhem6eyi+dS88zA13zErBKEv6c7Ij6GbQ hc/upuHLgb6vIrMhDTeV8YgnvBDbaJ7zfA3fIPVuo7Yah7TbPfvbGKRJf1FucJXxJk9e LAZGdv67UqiNzSIaYXdhRkr7/NGgugMk8u1I/UYZ6cqBlUu95/eWgP2xaG5xP9nhfjOf AHw04+cVrYN5DPfAF3pizdlQKUS5KAfMCDe45EHe7hF9olv8Ihl4Gr9YZSo+fUnwP1nz F3OlCUX7xSX3ndddnxl1SZFi8RT2XoqqrCDzBqDsHcEL2lC4Jo0uJFB2bZORYirif8O7 N0CA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=3RxLl9qJcf4VVucFJDTfgpBlkQR7SLPctaIhq8XPXNM=; b=lmaKuyQPLeYq/CZwf18UlQKnXgE/ws5chLTIi3eNjUwyNjd3d48/To2h5HRjkq/0xt n73yBpPaMl1Wea/RFyOSCl/qgQCdRx3F7ErjmYwNcgYOa/a3XCuSFvwHH7X/mOIL5crE rgMlCvAoGIefQVMVMSS1eXmF7pO8K/th1lDW6OFYZt+x7idAk7pVCwRuCMY5eI+QfTR5 LxGOeQ6z4jLTVKQuz88M0eBjgOo94Jw0V8Th61GXr66ksH8OyNnRSlOCNxHglqdfkYb/ CU7YVVx32BSpKpljQw9V8p4QVFCQ7MdYzaQd9L2GN0iAEhPbCQTHOwF4lcLrIe4pbJAm jK1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si1120423edq.44.2020.06.02.02.09.45; Tue, 02 Jun 2020 02:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgFBJHq (ORCPT + 99 others); Tue, 2 Jun 2020 05:07:46 -0400 Received: from mx.socionext.com ([202.248.49.38]:5666 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgFBJHq (ORCPT ); Tue, 2 Jun 2020 05:07:46 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 02 Jun 2020 18:07:43 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id BB527180B46; Tue, 2 Jun 2020 18:07:43 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 2 Jun 2020 18:07:43 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 673931A0E67; Tue, 2 Jun 2020 18:07:43 +0900 (JST) Received: from [10.213.31.100] (unknown [10.213.31.100]) by yuzu.css.socionext.com (Postfix) with ESMTP id BC777120136; Tue, 2 Jun 2020 18:07:42 +0900 (JST) Subject: Re: [PATCH v2 4/5] PCI: uniphier: Add iATU register support To: Rob Herring Cc: Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Masahiro Yamada , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar References: <1589536743-6684-1-git-send-email-hayashi.kunihiko@socionext.com> <1589536743-6684-5-git-send-email-hayashi.kunihiko@socionext.com> <20200601213215.GA1521885@bogus> From: Kunihiko Hayashi Message-ID: Date: Tue, 2 Jun 2020 18:07:42 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200601213215.GA1521885@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 2020/06/02 6:32, Rob Herring wrote: > On Fri, May 15, 2020 at 06:59:02PM +0900, Kunihiko Hayashi wrote: >> This gets iATU register area from reg property. In Synopsis DWC version >> 4.80 or later, since iATU register area is separated from core register >> area, this area is necessary to get from DT independently. >> >> Signed-off-by: Kunihiko Hayashi >> --- >> drivers/pci/controller/dwc/pcie-uniphier.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c b/drivers/pci/controller/dwc/pcie-uniphier.c >> index a8dda39..493f105 100644 >> --- a/drivers/pci/controller/dwc/pcie-uniphier.c >> +++ b/drivers/pci/controller/dwc/pcie-uniphier.c >> @@ -447,6 +447,13 @@ static int uniphier_pcie_probe(struct platform_device *pdev) >> if (IS_ERR(priv->pci.dbi_base)) >> return PTR_ERR(priv->pci.dbi_base); >> >> + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "atu"); >> + if (res) { >> + priv->pci.atu_base = devm_pci_remap_cfg_resource(dev, res); > > This isn't config space, so this function shouldn't be used. > > Use devm_platform_ioremap_resource_byname(). Indeed. I'll replace with it. >> + if (IS_ERR(priv->pci.atu_base)) >> + priv->pci.atu_base = NULL; >> + } >> + >> res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "link"); >> priv->base = devm_ioremap_resource(dev, res); > > Feel free to convert this one too. This should be replaced as well. Thank you, --- Best Regards Kunihiko Hayashi