From patchwork Thu May 27 19:45:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 448872 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp816423jac; Thu, 27 May 2021 12:46:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMrkXsfRbbsXpep4GB9+4cbWA0UK2ogzgrKusT8YgMdFMmj0aJjY6J1ipradSmR/U79aUy X-Received: by 2002:a05:6e02:1489:: with SMTP id n9mr4251651ilk.59.1622144761165; Thu, 27 May 2021 12:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622144761; cv=none; d=google.com; s=arc-20160816; b=uy7W1179cQ9TZ8bBori6UQWZ2f6N0OR4znaPP8vi7G/ilCsnqAL83INA4vOjukMgbf 9xOmh8Der/banJuKeEACTO3WMZ9FgxuYXrUqfgjhdNKGYEqK3FRjBgHGbhBrIUbjGG8l ptzmnD0ZZDiTkDyVp2vzg3QMuvHc/5A/sFkrR1byIE1VJTN3v1R1EARlWJ0eHJnKbabW P6rBm/vNHfD1OFIhv0yTPldDlErH+Yf572Ei77Zt5ZYG0KnYgHznPA/W2vqkyg7AWZBS mkpH60IxOzs7ZjNGXIpaChwuQUdf9RwZ7RWdyjyi2nUKlLS0oSx5NUPYsVCxA+Yd5iFk +HDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=68t16l/dJX8qwP/jSm8KvVZZuN7st3omJGcvkjXgwLg=; b=oeZd/T3ON/wWh2bI7hb0EDyQoqoK4KzXv34VKliYTufgtqeKSTKI11zpG12wak4dFe cpio4B6vMeuIkvc7pQV3kdozQja4jiWm8AGpwdW0QfWDb4TG3u51tmrhV86+Z5Z09x2H mrsH5pxIC5aPyL4PP84xwAcRLj6Xg9ErK5RvZLctbMz/SbRiw55zwsOXejdsD3FSDjKS GNUfQXtPHvONvtnF+SYtae4PDtAcEUSR8LmLFVp1Z+h0pdzgAChamj7O+SjeBZyKGJtf e8H0/2kmnfunRcUraiBIJmA3QRaTkFNITwdS5EIxOB/JVFnRyzEAbgamtf5Iq069A8QR We8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si3977021ilx.46.2021.05.27.12.46.00; Thu, 27 May 2021 12:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235609AbhE0Tra (ORCPT + 7 others); Thu, 27 May 2021 15:47:30 -0400 Received: from mail-ot1-f50.google.com ([209.85.210.50]:44882 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235580AbhE0Tr1 (ORCPT ); Thu, 27 May 2021 15:47:27 -0400 Received: by mail-ot1-f50.google.com with SMTP id r26-20020a056830121ab02902a5ff1c9b81so1305451otp.11; Thu, 27 May 2021 12:45:52 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=68t16l/dJX8qwP/jSm8KvVZZuN7st3omJGcvkjXgwLg=; b=H7UFJUEpiTJY8aF+3j89y9nL8al1p4ixoggkqDWg20okGE3dDit0W9y2zG6vskbErW NICm5jhDqqMLXdeDafN5YVeLOFKcntcTCM2lICN9uv/njVxtdZBAqVYUevNOyYwn4m5F qswaZ+cmrHWuFDHct3AhiVymDOt9tPoICQl4GQZWnPIs6N6pJInzm6/ndb0NF8cOw+lF oI4EH94ZprKq0sC6VKaNJ55RpxdAiQZ04am5xF6Dvfg5KVy52rM/Wl+hRE+/42JScZ3y qGCMdhJdnVgTKtmabU2xEM2fCIxiDmdMJK9YQSwRd3b6xWDdsSw/lmmDTvL+xWFQMmlG ji6w== X-Gm-Message-State: AOAM5311RHXUigbq0otf+FSQEfq70kimMaDPSWKlpFkRFfVnPSEU7Bht YYSKwIHGLEiKjAZHJjCPdROe/+biIA== X-Received: by 2002:a05:6830:2248:: with SMTP id t8mr4078086otd.156.1622144751692; Thu, 27 May 2021 12:45:51 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id m74sm665162oig.33.2021.05.27.12.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 12:45:50 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, Frank Rowand Cc: linux-kernel@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org, Randy Dunlap Subject: [PATCH 1/4] PCI: Add empty stub for pci_register_io_range() Date: Thu, 27 May 2021 14:45:44 -0500 Message-Id: <20210527194547.1287934-2-robh@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210527194547.1287934-1-robh@kernel.org> References: <20210527194547.1287934-1-robh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add an empty stub for pci_register_io_range() when !CONFIG_PCI. It's needed to convert of_pci_range_to_resource() to use IS_ENABLED(CONFIG_PCI). Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Signed-off-by: Rob Herring --- include/linux/pci.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.27.0 Acked-by: Bjorn Helgaas diff --git a/include/linux/pci.h b/include/linux/pci.h index c20211e59a57..29da7598f8d0 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1772,6 +1772,10 @@ static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) { return -EIO; } static inline void pci_release_regions(struct pci_dev *dev) { } +static inline int pci_register_io_range(struct fwnode_handle *fwnode, + phys_addr_t addr, resource_size_t size) +{ return -EINVAL; } + static inline unsigned long pci_address_to_pio(phys_addr_t addr) { return -1; } static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from)