Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1718837imu; Thu, 24 Jan 2019 00:15:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN6liUzSznlgXKUM2Z8O6B4y5CxqYaIwODasXROu3rJ2oHRXtd6DegHrUnc5Vfcg6KyUM4j3 X-Received: by 2002:a63:b0a:: with SMTP id 10mr5040915pgl.423.1548317735791; Thu, 24 Jan 2019 00:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548317735; cv=none; d=google.com; s=arc-20160816; b=snsq8UF0SzIAy2kyWKtijBu+tamXhUEaa1q7f1NwG2ynRap963dFCwvd4tWWS+saWd /9G3HJ3GRx38BWRK4YqkGLxaoyErwcliUWDiAh62VGQqRqXyXGi8+0P8jBSfmCjzD1vh IM42/RLpyRHbstbEXSYRESXG3cmXhxf7EZrSYeig1DC0TN8QyodhDTCOOA41Z9WK2RGg 5XECv6xqU8wR72stk7e7AbcV7WAkCJnFQY1la4JAp2wL6hpZwzFJm3A57rylBbLf1qJd 3ZFyiz2HiWaalgag9YD/mQtJ7WI52ng8xob51+es2fEWTyiHui6dq6kuw8ti8nrS5KbK kFnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ZWGzRpKTzjE+uLJK06G8dPvAC86uCCruW+gGrUKtKKg=; b=e3EZQt1edhY+ILxLNnDgRVREc/QSY0wnmwF2pE/5cHAretLCjfyG/+ZPIsp7XplAUI cxodKulL108g+yAa3ZHguI1aZJEypLMAUwu/bNsjbLKh5IHVa9SBa6McfUg1r65R/gEw RBcYW/IoWwRBIa0r0y/88IUc5jqbuU9dCvyZb/kt//RHDD5eDccBsfLI+SVG6pTaI15X 4HlRSyU5bY07i4Jn6sSEVrzrw79v0FIxTNUJ8DNKkdcUHMZzOpj4nMCCIny4fmzF1ir+ hmnTZvBhSPBXDvTnO0S9hv704jp0ZhE9mqAFdIN42xbEO3NniZkl5H83TEv6Xbz+PKKo w7lA== 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 s5si21031582plr.211.2019.01.24.00.15.20; Thu, 24 Jan 2019 00:15:35 -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 S1727299AbfAXIO0 (ORCPT + 99 others); Thu, 24 Jan 2019 03:14:26 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:63839 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725986AbfAXIO0 (ORCPT ); Thu, 24 Jan 2019 03:14:26 -0500 X-UUID: 53999c8901b54bdb886103c546aa059a-20190124 X-UUID: 53999c8901b54bdb886103c546aa059a-20190124 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 801944606; Thu, 24 Jan 2019 16:14:15 +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 CC: , srv_heupstream , , , , , , , , , , Seiya Wang 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 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 1.9.1