From patchwork Fri Mar 10 02:46:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9614521 Return-Path: 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 B298060417 for ; Fri, 10 Mar 2017 02:47:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A72F12846A for ; Fri, 10 Mar 2017 02:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BDB9285A4; Fri, 10 Mar 2017 02:47:01 +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 571942846A for ; Fri, 10 Mar 2017 02:47:01 +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=79xWy8+Uhzi07MNuXkx4ObuyHjtVeND7feUiyYi+ivo=; b=UyRY16vGmt0WFZjxZp75jOAzuj HX1RCJBUeqB9Cnu0RmSPqyuowjrzrUgXLgspY7maI38myQZU76Q9UHsUATkejenkmAoo+V3b36LD3 GPhGaZvihfCRaCi7D40fk7pLbJOOXJrcpNhJDIeg/Dycu1fCI3++65ly3jUSbgF61S7+SVPJAEcgH nh8CNTZEOEUf33OrlVE72NJ4v6qF1SeAoCnDDxiN4hOkoTf+JVNbMfQHiCUw7/Djl5/Mw0djRX6zu q4AVaBtolrpni52MsBbQ846QKhzewrIj8nOYAtAooKGYbLhOscG9BCTY6kRGgTtwPfoZoZYLCVC/R Fa4OBGig==; 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 1cmAa5-0006U5-1B; Fri, 10 Mar 2017 02:47:01 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cmAZx-0006Ms-Eq for linux-rockchip@lists.infradead.org; Fri, 10 Mar 2017 02:46:57 +0000 Received: by mail-pf0-x22d.google.com with SMTP id o126so36102272pfb.3 for ; Thu, 09 Mar 2017 18:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xak5hDTnANSYnEBdC7Ouk0YqbTtGIQK5ESGaPslXV0o=; b=BsK5CKFcFRNq2xZJRkEjiLUUNPTy0sGUsVXxwK7r6oiylInYoKCH1tZrdyQFGC7Yia zRRMDI2+HxfTyUemr56eIzqpktdVxaXaCdJ5ltZ3jxcY3/PRBPApPeVHAZYfhU74WmF4 52+KMZ7VJuHZRSdrP6baz53EuDsmtpIXWxmKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xak5hDTnANSYnEBdC7Ouk0YqbTtGIQK5ESGaPslXV0o=; b=WBOx71+KGOIGTLnUWrdIDFRdA72O5ZleN2M63HPQ4dnQknbTYDY0Gf8/L1UGtOO8+q D6Qk/79SucGtkH8QQ8E9VBqVsxTB+IgPNrCqFG2xbY6dcLr/drsY5w9hDs0FpD0ZWHeP xJO54/7wUwPFE6e4dHZQI8EGWhaDcqg3saHLWJx8lHbOPNm9ALdqIM4pDoSo25bq0s4c kxxSdkQtW4YPmcvQ/PELVS+BtjSHmlOgzu4a9ubN8FusKMaOpAuZ1Xtdf07qKpGPAHdj tpFT5MZEIm/qpg5y1frk8aePTzAoPN+I0w4+hax3/onoX962wreXtvz6hjlM3+n/QWoF juCQ== X-Gm-Message-State: AMke39nVyeplKYvWJys8JA9ki3CXOH/6X9fISbj9VscnkJ4S1KYbnxNO//gch1uziDczicrn X-Received: by 10.99.56.85 with SMTP id h21mr17566981pgn.108.1489113991465; Thu, 09 Mar 2017 18:46:31 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id w29sm14830573pfi.131.2017.03.09.18.46.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 18:46:31 -0800 (PST) From: Brian Norris To: Bjorn Helgaas Subject: [PATCH v2 4/5] PCI: export pci_remap_iospace() and pci_unmap_iospace() Date: Thu, 9 Mar 2017 18:46:16 -0800 Message-Id: <20170310024617.67303-4-briannorris@chromium.org> X-Mailer: git-send-email 2.12.0.246.ga2ecc84866-goog In-Reply-To: <20170310024617.67303-1-briannorris@chromium.org> References: <20170310024617.67303-1-briannorris@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_184653_524330_ECF4D662 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jeffy Chen , linux-pci@vger.kernel.org, Shawn Lin , Wenrui Li , linux-kernel@vger.kernel.org, Brian Norris , linux-rockchip@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These are useful for PCIe host drivers, and those drivers can be modules. Signed-off-by: Brian Norris --- new in v2 --- drivers/pci/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 7904d02ffdb9..3ec248774911 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3363,7 +3363,7 @@ unsigned long __weak pci_address_to_pio(phys_addr_t address) * Only architectures that have memory mapped IO functions defined * (and the PCI_IOBASE value defined) should call this function. */ -int __weak pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr) +int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr) { #if defined(PCI_IOBASE) && defined(CONFIG_MMU) unsigned long vaddr = (unsigned long)PCI_IOBASE + res->start; @@ -3383,6 +3383,7 @@ int __weak pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr) return -ENODEV; #endif } +EXPORT_SYMBOL(pci_remap_iospace); /** * pci_unmap_iospace - Unmap the memory mapped I/O space @@ -3400,6 +3401,7 @@ void pci_unmap_iospace(struct resource *res) unmap_kernel_range(vaddr, resource_size(res)); #endif } +EXPORT_SYMBOL(pci_unmap_iospace); static void __pci_set_master(struct pci_dev *dev, bool enable) {