Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp349789imm; Mon, 21 May 2018 07:04:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr0EYLWmdvbn2dPXzMu/8E5V6Cl0y4aq/FzkpLBdgnfxPHjo1zgiB5Zb0yCeA4mjq9ktaOO X-Received: by 2002:a65:4cc7:: with SMTP id n7-v6mr16152964pgt.354.1526911466179; Mon, 21 May 2018 07:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526911466; cv=none; d=google.com; s=arc-20160816; b=fX2aXRAuKgIhgJCrBprsfsN7NV8IBF0DcNSOI3q5j122D6sHlmqZY2e5EZgNgXMIKU HlUSUT17qwKYpTqodAPD+iKFKUZPKWA3+oggEkbCgMb9NGyuZDRVNCtDPFuP1MeB+qXS 6ZIUPzBK07ZVKsbYmXo7fadWcofU1eQVg4BIWwePT6IiAsh/LG9IIIem4V8alivg9NmD 5XAEitxoaxMKR25ew9Ps25z0IEvNvd8C4JQNUb6589JUVwNefb3xU4mAgVvKa945CqzX VgoJ4LtCw5bPHvo073Ve5Ygq0zAQXGiB09KirsHx/ChVlOQtqxAvqZlR19zftu+xS36l uiFg== 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=/SQq1FZ1rAzr+G1n6QZ6Bk6vq0SbfNwvcwXpskUM9xg=; b=zvaxSKxzTO1YVfzK+BIgHI4Q2n+KaMqlr1gmXDDEct9sW7ifH2Yxwz6BYtPcS/+5j+ gts07n0qhG5TMlH1/I1A4Cvv8hs0HYNG3vALp7/iZvVPrJST7/BWkfLlqk0Cfmx+V4jO TSKJDiFOUEDGfWE5R7H8+7Z8GuFvFBse1NxHkhc1HZmxHeqG3RTga8rcbNIxFmjuZYX4 WynfVTk4l+dduzspVXIhR8apU8k7Echz6YYywbTmNimDTk/o9HBmw4gNqW0lSplcwCOh Ys6mcY9IQbhEdnX5DnW2SBNdVMAWgi5IvMmpBBcBPun4B8ROoRPdnsCsraALcJ8jiTOi GV/g== 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 k22-v6si14208653pll.393.2018.05.21.07.03.56; Mon, 21 May 2018 07:04:26 -0700 (PDT) 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 S1751724AbeEUODr (ORCPT + 99 others); Mon, 21 May 2018 10:03:47 -0400 Received: from foss.arm.com ([217.140.101.70]:50152 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbeEUODq (ORCPT ); Mon, 21 May 2018 10:03:46 -0400 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 DC68880D; Mon, 21 May 2018 07:03:45 -0700 (PDT) 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 C83033F577; Mon, 21 May 2018 07:03:42 -0700 (PDT) Date: Mon, 21 May 2018 15:03:36 +0100 From: Lorenzo Pieralisi To: Bjorn Helgaas Cc: honghui.zhang@mediatek.com, marc.zyngier@arm.com, bhelgaas@google.com, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, ryder.lee@mediatek.com, hongkun.cao@mediatek.com, youlin.pei@mediatek.com, yong.wu@mediatek.com, yt.shen@mediatek.com, sean.wang@mediatek.com, xinping.qian@mediatek.com Subject: Re: [PATCH v7 2/2] PCI: mediatek: Using chained IRQ to setup IRQ handle Message-ID: <20180521140336.GA3149@e107981-ln.cambridge.arm.com> References: <1525412853-24367-1-git-send-email-honghui.zhang@mediatek.com> <1525412853-24367-3-git-send-email-honghui.zhang@mediatek.com> <20180518195154.GB41790@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180518195154.GB41790@bhelgaas-glaptop.roam.corp.google.com> 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 Fri, May 18, 2018 at 02:51:54PM -0500, Bjorn Helgaas wrote: > On Fri, May 04, 2018 at 01:47:33PM +0800, honghui.zhang@mediatek.com wrote: > > From: Honghui Zhang > > > > Using irq_chip solution to setup IRQs in order to consist > > with IRQ framework. > > > > Signed-off-by: Honghui Zhang > > Acked-by: Ryder Lee > > --- > > drivers/pci/host/pcie-mediatek.c | 206 ++++++++++++++++++++++----------------- > > 1 file changed, 115 insertions(+), 91 deletions(-) > > > > diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c > > index c3dc549..dabf1086 100644 > > --- a/drivers/pci/host/pcie-mediatek.c > > +++ b/drivers/pci/host/pcie-mediatek.c > > ... > > > -static int mtk_pcie_msi_map(struct irq_domain *domain, unsigned int irq, > > - irq_hw_number_t hwirq) > > +static struct msi_domain_info mtk_msi_domain_info = { > > I think this patch should be amended to include this: > > diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig > index 0d0177ce436c..368b70d9371b 100644 > --- a/drivers/pci/host/Kconfig > +++ b/drivers/pci/host/Kconfig > @@ -193,7 +193,7 @@ config PCIE_MEDIATEK > bool "MediaTek PCIe controller" > depends on (ARM || ARM64) && (ARCH_MEDIATEK || COMPILE_TEST) > depends on OF > - depends on PCI Actually I amended your patch, since I do not think the deletion above belongs in this commit (I agree that's completely useless but that's not this patch that we should remove it). Lorenzo > + depends on PCI_MSI_IRQ_DOMAIN