Received: by 10.223.148.5 with SMTP id 5csp7878485wrq; Thu, 18 Jan 2018 10:37:01 -0800 (PST) X-Google-Smtp-Source: ACJfBotp1Qc19sdmOydJxWBcHV/7j7qlTJfbeWRN8lzgZKSthyTR4tiJd3GQBXjIFj3BKAIGwBrX X-Received: by 10.99.171.12 with SMTP id p12mr10732598pgf.304.1516300621840; Thu, 18 Jan 2018 10:37:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516300621; cv=none; d=google.com; s=arc-20160816; b=NKcdOkLCm26Fs5cC5nCoidPd/a+/IiE9pBQeHjAsH+WG0AzOsR3jsbIAOEMfGgPyn9 sjoy0/CoCXEpt8pGAW6tEKry1BPAxWvEebkK7kvlH3HADIYkrf+PgS72ysNyD5xqNu0+ BBS914h6PRsQuPlzPJfTNiswfrUTRiGE8ilhq6qKZKLmsAtBPme3JM5PVwH0Pn1b7V4f E4YwLOgaauAmPf4BZ6ghLQP73GbPkoF1I08aqDf1LqE3rnvkPOF3kK8Svdv6bjWQOlZu SN7xTljvrYMRqLdqYJ5IE0dV5eufwULUUfaMMT6/90OOzfZblhVY6oVIeHoO3/5WZFs4 VTQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=35e5reKmXVAcgNJutr+GDFquAHB6s5NNnmTJiJ41RO4=; b=HpWadRO3o+6KkUGWeM9MPXhB6gmS60dmE5dnp3w5XSdEEErRfj9e6z1eYLAUesT1nq 24Sanb6ryaQV97QLbeOtF2ggCrk5/HYPVEY9kjIqbKESqmnUjCexdOpbPL+l6Orf7CZD aDC1gCXcKADJUwl05iyT4YJ51nljp8QQjlZ3WVrAoCRRwJCzeCg2GoTlcYBf8MTf24oM +u6uPX7c5tAUVaSfd070zmmO3MX84L+DJvko4q1TO+IfJDDiNb8Hlc6NAWjP8D/VAU9e 8Dg6yd/r4DMhUnNzbysPU6wHZCnG/BYDcgl1LLAwqHf58kEL+l8I7fwoOtcQJEqAEqWS ED6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si106398pll.653.2018.01.18.10.36.48; Thu, 18 Jan 2018 10:37:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756084AbeARSgN (ORCPT + 99 others); Thu, 18 Jan 2018 13:36:13 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755657AbeARSgM (ORCPT ); Thu, 18 Jan 2018 13:36:12 -0500 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 F2EC11435; Thu, 18 Jan 2018 10:36:11 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.207.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 78FA53F557; Thu, 18 Jan 2018 10:36:10 -0800 (PST) Date: Thu, 18 Jan 2018 18:36:00 +0000 From: Lorenzo Pieralisi To: Arnd Bergmann Cc: Niklas Cassel , Bjorn Helgaas , Kishon Vijay Abraham I , Jingoo Han , Peter Robinson , linux-pci , Linux Kernel Mailing List Subject: Re: [PATCH] PCI: dwc: dra7xx: add back CONFIG_PCI dependency for endpoint Message-ID: <20180118183546.GA8492@e107981-ln.cambridge.arm.com> References: <20180118131612.871559-1-arnd@arndb.de> <20180118150357.GA7544@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 05:39:02PM +0100, Arnd Bergmann wrote: [...] > > However, since pci_irqd_intx_xlate is only defined inside > > CONFIG_PCI, even 489f8fe6aa71 will not help. > > > > Not completely sure about this, but perhaps a better fix is: > > > > +++ b/include/linux/pci.h > > @@ -1686,6 +1686,12 @@ static inline int pci_get_new_domain_nr(void) { return -ENOSYS; } > > #define dev_is_pf(d) (false) > > static inline bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags) > > { return false; } > > +static inline int pci_irqd_intx_xlate(struct irq_domain *d, > > + struct device_node *node, > > + const u32 *intspec, > > + unsigned int intsize, > > + unsigned long *out_hwirq, > > + unsigned int *out_type) { return 0; } > > #endif /* CONFIG_PCI */ > > > > /* Include architecture-dependent settings and functions */ > > > > > > And a 'Fixes:' tag that references 524d59f6e30a > > Looks fine to me, but I'd put the '{ return 0; }' in a new line for consistency > with the other functions here, and maybe return -EINVAL instead of > zero. > > Can you submit that as a proper patch and add my > > Acked-by: Arnd Bergmann You can add my: Acked-by: Lorenzo Pieralisi too but I am a bit dubious about the Fixes: tag (it will be merged via a separate branch and I do not think we really need it), I would omit it. Please send it as soon as possible or I can do it, please let me know. Thanks, Lorenzo