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: 9614529 X-Patchwork-Delegate: bhelgaas@google.com 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 0610160417 for ; Fri, 10 Mar 2017 02:47:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE526286E7 for ; Fri, 10 Mar 2017 02:47:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E195828701; Fri, 10 Mar 2017 02:47:33 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89FE9286E7 for ; Fri, 10 Mar 2017 02:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754028AbdCJCrT (ORCPT ); Thu, 9 Mar 2017 21:47:19 -0500 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33708 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633AbdCJCrR (ORCPT ); Thu, 9 Mar 2017 21:47:17 -0500 Received: by mail-pf0-f169.google.com with SMTP id w189so36076655pfb.0 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=Ffh1r2BO0BRXsIFgmE2aHKB8sJyEwNA4slVNEK7oKigOF3v20BNALLI+ANMToAmHw8 Pb+FTQJlo57eeuv14JFKErkZ3t0KCwHasm+OHum/mB8Nso2zyCq+PB0woRLuI4RxUtsz bfULNPI66XHwMU83xzL2avIa9gSS2J0KVwBQsSghhT/97+X+dWCGKMvQXnqw9VpcnD3W Ielkiuf5RLIButTCmSl06RV66E3gbG+tNMTovMq4t0UiV8LOxodTmgsAWaGpDnYDDlQ0 e9B5xMElFF7j7iUi9W3uF+7PkdctQZG33ZzM12dgTlzq9WbNW+/ebFBsHkDVuOMAwZgj OmBg== X-Gm-Message-State: AMke39nrBjicbMdaLDO7jwlFUfHT1MQMG7R/c4HFv4LbwBUQQi8CbzQTZuR3RSW/0Yq+2Lcf 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 Cc: , Shawn Lin , Jeffy Chen , Wenrui Li , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Brian Norris 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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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) {