Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4913581imm; Fri, 18 May 2018 12:53:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQkgAxM90nm4Wl/nMqfcQ47UjtwA5xwcXlvpXCTlM59BUJXvAhCdwlE1Thj+2DCJgVpRDQ X-Received: by 2002:a63:9812:: with SMTP id q18-v6mr8356497pgd.170.1526673215485; Fri, 18 May 2018 12:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526673215; cv=none; d=google.com; s=arc-20160816; b=hz8Bno1f+Tup6o+JeobCJ/+E/it/n4ClsE4dGuaIdJFC9gyjQ/8xcK2o5bDQWq7EAd BSV298MX6C8y40YR8AUU/oUmPPx4iMkcjxA4nFiZc9yXzhvaMxlkqVQx1twdIdz4jbWb oWGS/blAwonsqxwlq/6dSsnFy30RqHTGISmmjLggR0SoDMpvxaJ3khj8o1hsCOBwI+pa DfJPDRTiGUKCAcWw9PE61I07mNEePFaBPYhM7roz8C1O7KYuHn35Z+M1QIRMQyU6zqNb vw15+++FJBrMPNajCxHvj8gViV51JNkmrgYv/hEQvaKhtwz28Hx+A99f02YbzmHobjhE U7RQ== 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:dkim-signature:arc-authentication-results; bh=oZbvC0ZVPOuCguHyFUgY2ocCGRavI3wSxhorwuqJly4=; b=mGq2UrF2H/wHuKIjukydo7JB1X15WJm8g8kg3VrnFGrvTou5mlpLhnlqofs7CQLyJt 5pT3hnrdm5CmI7jrPVQ0Pna8Aa2RG19xu65up99YuEjGtFOIcIVgmMkrkun6gFLUoAQG YGFNZk3qPbiquTiVKRKWRFsTPINvyKB97kDpx7zItao+SGzD9x4cdCilyObSDeHrNHKR a6U991otsiDUHtaLlaME/49aYTp6chDeeptIYH6UhqqBIuuh5Bv+B3fKOndApRO4S/na dqd+fX2ffITaAIGsK0UhKD9lbTwqNAEK70wtQrEg3G6LntmMB1Cs2pPbTF5jAtoQyWTZ zyGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e4tgWQ3I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5-v6si7947382plt.357.2018.05.18.12.53.21; Fri, 18 May 2018 12:53:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=e4tgWQ3I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbeERTwB (ORCPT + 99 others); Fri, 18 May 2018 15:52:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:44010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbeERTv5 (ORCPT ); Fri, 18 May 2018 15:51:57 -0400 Received: from localhost (unknown [69.71.5.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D0FA20833; Fri, 18 May 2018 19:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526673117; bh=s+IvFzHJmI31aaAuswNYWy4VNiZx9oOjSeMwPzkSmPw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e4tgWQ3IVyJKRz+yOxeZY/dr0T0j27JUoaMH9b+Ex/wNHlQNvZhamyP0dy/1cMMr7 +T08L7eKeyJKVuwPq5L/+4Mw9kbsRdVTRGC4yta0YazDyWNbV3aZ7cn5F23K7Upuv7 kZg33jluhzXaqaXonzYpSCIEgeMUxvh2ChSGRIjw= Date: Fri, 18 May 2018 14:51:54 -0500 From: Bjorn Helgaas To: honghui.zhang@mediatek.com Cc: lorenzo.pieralisi@arm.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: <20180518195154.GB41790@bhelgaas-glaptop.roam.corp.google.com> References: <1525412853-24367-1-git-send-email-honghui.zhang@mediatek.com> <1525412853-24367-3-git-send-email-honghui.zhang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525412853-24367-3-git-send-email-honghui.zhang@mediatek.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.