Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp108860imm; Mon, 21 May 2018 03:08:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqH0WSfkcvI7358nDpKPhEbfYZXMODtTkG42T5Z1yNOkBceyBq8u9q9uTXr8BdlXaw0QN7I X-Received: by 2002:a62:98cb:: with SMTP id d72-v6mr19308156pfk.98.1526897330935; Mon, 21 May 2018 03:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526897330; cv=none; d=google.com; s=arc-20160816; b=J2oIoIwZZPaXTmS5swkFK5Lmv0iKmK2DGnOF8BdS23GfZgE7DVvesf8AC25gluoQbL PhJoHAV+oiIqSJm5qjzcSXr0X8c0FShm/eNdsNfdTdBrgvz+/Zsm1Tm1VajeEeLC+H0m WL5ZSVxwzlO3W/McVZ1lDCGkzMjQyHpXBuvi9ywR+MXGSTsXPsRvimhoyTd/YOibtiRA /bRm/H5Ym/cnnXyQ+hRaanLHFHhy3n2LguQ754PMD38Tsf/fK87cJV1Ygf4cJHdRssf2 SnQ/X+8oeX6iH8sf5rjuVE0mU2VpZYUvMHrsk1pG6PywJd+aGlnPZVL0UJh5kjdnoGQ8 7JSw== 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=Q/QpEnmu7nkWyAZ/UDEQpUqF2Pwxoq2tZu6kwfXkFro=; b=svNQeI3cKk82XjnMPx9LWQTp6g5gD8ZNu5wSikXWgmnXYRCrXl6hHD/o7HRl48TWYa LJY5OuqIXocssV6WkSur+AqINoDQ6YnsL47WfdDpgptTB0LHlQRczRL30J/GiYSKWB7C 7PITGH6zu41fRy5wRt8XlcN5VLor0xE+2RJZ4dtJV2f04Rs0iTDaV/7/fUs4+ZneqkNQ MKPne9L2htvAxtVXjCSmGrcjF5VceY1vELcTB4YeewMW4cISEvCSm8/xP/io0LOSkg5m WI2tSbNgY/d4R85jhIBkd+G2iaCKguA8KN8HNilAXPX0dsOaIBmM8yRZYW5dSMHb/s3O kLMA== 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 j7-v6si10682346pgp.347.2018.05.21.03.08.36; Mon, 21 May 2018 03:08:50 -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 S1751185AbeEUKI1 (ORCPT + 99 others); Mon, 21 May 2018 06:08:27 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:46088 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbeEUKIY (ORCPT ); Mon, 21 May 2018 06:08:24 -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 7F1711435; Mon, 21 May 2018 03:08:24 -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 67DD83F25D; Mon, 21 May 2018 03:08:21 -0700 (PDT) Date: Mon, 21 May 2018 11:08:14 +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: <20180521100814.GA30668@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 > + depends on PCI_MSI_IRQ_DOMAIN > select PCIEPORTBUS > help > Say Y here if you want to enable PCIe controller support on > > > Lorenzo, if you want to fold that in and update your branch, I can pull it. > If not, I can add a patch on top, which should only break compile-testing > bisection. I folded the patch above and pushed into pci/mediatek, thanks ! Lorenzo