Message ID | 20170227151436.18698-15-lorenzo.pieralisi@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C512E604AB for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 27 Feb 2017 15:47:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6052281B7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 27 Feb 2017 15:47:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAAD92838E; Mon, 27 Feb 2017 15:47:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52956281B7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 27 Feb 2017 15:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=f17/+9LzdOsYjJ0JVqRJUVRaIKy5gDf5q8n5rXxu1gU=; b=SfO828+ZRkVzqIT+9NGn9kZnu3 lo9lYuPKb4IE7iai+veVvncsNaZWdsmXMp5vGlhrtZ+OL1iMiPIirBRqxgPn0LZw/GOehk5rpzzbL jQndUe3qXZu4rYqrYT2lOyU6Kgnpnpts7gpDT/ktaNOVlRgUApeH6pI1YOQ8ZSOF0hSb62lzMs+az nircXQA4GrI/1iMXCkoaZf6Ab1WZtJQBTvziBEX+7NBMzn/bSGoZAiQtq36LNaSghjhUdhEx5jN0H z2WbXTGl+qqY4b+63SLDLiEorRlrEx08Z7A2hb/NuJVwMV4l5HzKFZWr9C5ET80On+Fg52kiNyGrc cJ9jGMAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ciNWi-0003Kx-Ky; Mon, 27 Feb 2017 15:47:52 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ciNAi-0005Tq-0s for linux-arm-kernel@bombadil.infradead.org; Mon, 27 Feb 2017 15:25:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ToOTz1/97pjuxujVc0PogwT2KS3Q85s7a29OcdxSmuU=; b=j73F4bqvs4z9vFeL67CEeY+VI zJ69/hmTTh9y/Zhn/bbjKf8KCkqjr/gi6RxDHREPxSHK18ewV9Yj9jUhsvbTz3QhR6GV/adiqhZGA xC7fS87vBrJou+MSrEYB3OX4PlHuogegxDW9S9MO3WnyR4dLrqwl4wyoGnEDpaaWALNeu6Vmmi38p WBo79cEkur/7SvGc4O/tWZ0+6d6AfZLspddQDdEUceBhKYWqBoH3fs1qnIiJjNnUcelZMFefMq2Dy 6RgloPWNx33yKwPhvIViK1TP0yGgaCnj1/O/BsZ4XN5bGvLc/uMlrVZjmJv7FVyMfJd6QRd4d4czd T5krH+mHw==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ciN1w-0007te-Sy for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2017 15:16:09 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6F0271595; Mon, 27 Feb 2017 07:15:43 -0800 (PST) Received: from red-moon.cambridge.arm.com (red-moon.cambridge.arm.com [10.1.206.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A8C773F77C; Mon, 27 Feb 2017 07:15:41 -0800 (PST) From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> To: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/20] PCI: hisi: update PCI config space remap function Date: Mon, 27 Feb 2017 15:14:25 +0000 Message-Id: <20170227151436.18698-15-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20170227151436.18698-1-lorenzo.pieralisi@arm.com> References: <20170227151436.18698-1-lorenzo.pieralisi@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170227_151605_078605_DD4F63F8 X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arch@vger.kernel.org, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Gabriele Paoloni <gabriele.paoloni@huawei.com>, linux-kernel@vger.kernel.org, Zhou Wang <wangzhou1@hisilicon.com>, Bjorn Helgaas <bhelgaas@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/dwc/pcie-hisi.c b/drivers/pci/dwc/pcie-hisi.c index e3e4fed..8042780 100644 --- a/drivers/pci/dwc/pcie-hisi.c +++ b/drivers/pci/dwc/pcie-hisi.c @@ -294,10 +294,9 @@ static int hisi_pcie_probe(struct platform_device *pdev) } reg = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rc_dbi"); - pci->dbi_base = devm_ioremap_resource(dev, reg); + pci->dbi_base = devm_pci_remap_cfg_resource(dev, reg); if (IS_ERR(pci->dbi_base)) return PTR_ERR(pci->dbi_base); - platform_set_drvdata(pdev, hisi_pcie); ret = hisi_add_pcie_port(hisi_pcie, pdev);
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Gabriele Paoloni <gabriele.paoloni@huawei.com> Cc: Zhou Wang <wangzhou1@hisilicon.com> --- drivers/pci/dwc/pcie-hisi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)