From patchwork Thu Jan 24 08:07:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erin Lo X-Patchwork-Id: 10778491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D59E1515 for ; Thu, 24 Jan 2019 08:14:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D83C2E2DB for ; Thu, 24 Jan 2019 08:14:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F8112E345; Thu, 24 Jan 2019 08:14:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC8932E2DB for ; Thu, 24 Jan 2019 08:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O43mh6LfaaACspOx3byTKeNnF2zR7I1rTkrkNYng4UU=; b=HNq2p2PA0Ua3qH q56/rR+2WTkESRyKp72i75w/OjnySrCHwfpmPF6SF4FNTE6YOwEBa27p8zM/DpmhiIzoUJJw/fIfA Mf63TvzVWxiJQOTJk7Na7K/WQd14H8XL9Xwv6sdlkmZXU+Yf8ltAUEHw0HnE4zv6gYUs7yJy3YkAl JhnK++6CmJqkGZmp83pinRmRn6HRYRKdOcnpOxku4SwOb3gzrURwcceD5J9XKStEpoAg9JFdpAlwH a4JuuP7i0s7Hlx9XWnPaZ9Fmud4txNf9URbPu7A3p7QZYl+KianUlZMsdVu4AWQBdxzR9c6XeigA0 sI8/uMlj8IRYlaT8kVMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmaA1-0008KH-Qf; Thu, 24 Jan 2019 08:14:53 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gma9r-0008A5-Aa; Thu, 24 Jan 2019 08:14:44 +0000 X-UUID: eb4be2f60f5347f485b135d686c27a7a-20190124 X-UUID: eb4be2f60f5347f485b135d686c27a7a-20190124 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1551620192; Thu, 24 Jan 2019 00:14:19 -0800 Received: from mtkmbs08n1.mediatek.inc (172.21.101.55) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 24 Jan 2019 00:14:18 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 24 Jan 2019 16:14:14 +0800 Received: from mtkslt303.mediatek.inc (10.21.14.116) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 24 Jan 2019 16:14:14 +0800 From: Erin Lo To: Matthias Brugger , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Greg Kroah-Hartman , Stephen Boyd Subject: [PATCH v6 1/6] irqchip/mtk-sysirq: support 4 interrupt parameters for sysirq Date: Thu, 24 Jan 2019 16:07:15 +0800 Message-ID: <1548317240-44682-2-git-send-email-erin.lo@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548317240-44682-1-git-send-email-erin.lo@mediatek.com> References: <1548317240-44682-1-git-send-email-erin.lo@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190124_001443_369651_B7687775 X-CRM114-Status: GOOD ( 10.89 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, srv_heupstream , Seiya Wang , erin.lo@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-serial@vger.kernel.org, mars.cheng@mediatek.com, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Seiya Wang To support partitioned PPIs, 4 interrupt parameters should be valid for sysirq. Signed-off-by: Seiya Wang Signed-off-by: Erin Lo --- drivers/irqchip/irq-mtk-sysirq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-mtk-sysirq.c b/drivers/irqchip/irq-mtk-sysirq.c index 90aaf19..282736a 100644 --- a/drivers/irqchip/irq-mtk-sysirq.c +++ b/drivers/irqchip/irq-mtk-sysirq.c @@ -81,7 +81,7 @@ static int mtk_sysirq_domain_translate(struct irq_domain *d, unsigned int *type) { if (is_of_node(fwspec->fwnode)) { - if (fwspec->param_count != 3) + if (fwspec->param_count != 3 && fwspec->param_count != 4) return -EINVAL; /* No PPI should point to this domain */ @@ -104,7 +104,7 @@ static int mtk_sysirq_domain_alloc(struct irq_domain *domain, unsigned int virq, struct irq_fwspec *fwspec = arg; struct irq_fwspec gic_fwspec = *fwspec; - if (fwspec->param_count != 3) + if (fwspec->param_count != 3 && fwspec->param_count != 4) return -EINVAL; /* sysirq doesn't support PPI */