Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8068266imu; Fri, 28 Dec 2018 09:55:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6YLn8WYaTeF+27l8LE4/gfySFLkyeYfVrffdRA9E0OeLPoXIOTu53hNui+fig0bxYvJDcx X-Received: by 2002:a63:990a:: with SMTP id d10mr27400804pge.279.1546019702814; Fri, 28 Dec 2018 09:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546019702; cv=none; d=google.com; s=arc-20160816; b=msg0TQGEzM3jVik/7y3ONWOpLfDp3E28pXeIWn42dFohUfFzm5y3kno8IYpkw+8YBn wT36FHPJlu9s6SDw3I6kII7SmtEzV+FtZr9MNabzhd8jzHpNp1mbh6kkg8TcbcIRDkna P8h6OV/hWe2PdGFkuGIs5dwpoOAQYQnDMn+Bnw/FW8jjDOfxYG5ga1WEZattiZFZNgU4 7ICVbtmloPSeNAyY9aLUuW60/e0SAUvAK/0LLBE2Na/Y1fdo0ldy1aSL3PXHw6sUjRR3 MX1y4digjwgVGZnDvGWSWKwd5k+wlvza3u4VlYCP8/ynFtIdGaDyTrQcHezX6iToH6o+ nlFA== 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=0zrJuXgrq2ZNCL+G4IexAeYw5RoRNFrHtXxPHQyQFdotpBkZP4bvBTxFBQRHLww0Ae J+brEwcmfXdyMDCer6onb8XNtET0xAP1AxaFkY8wrv9+2wk12Sbj1BVpqRGHEctvVQW9 mz5Dd1rcHOZrAFDbo97OQSFqW+HqFvafmLUpuzCt/a31KIFtWxdN2QlfryEjW9xJ0kZr 7+U338ozTUYW28ugvsrun2jyjzJZJKg6W5TTpUk5qQpuVCb4jCxHI1jOUcaPAM/zQZ3w gTUxcYBLJrk7JdY5dRZB3MF7Ka5bpUIN/AIpbsqN5beKskxMyE7Mc/+OxcMYzGhA8KMa GK8w== 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 c12si35365151pgb.402.2018.12.28.09.54.30; Fri, 28 Dec 2018 09:55:02 -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 S1731838AbeL1IKG (ORCPT + 99 others); Fri, 28 Dec 2018 03:10:06 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:55694 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728006AbeL1IKF (ORCPT ); Fri, 28 Dec 2018 03:10:05 -0500 X-UUID: a37c10ae9a35430c84d7100f7fde0881-20181228 X-UUID: a37c10ae9a35430c84d7100f7fde0881-20181228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2001813503; Fri, 28 Dec 2018 16:09:56 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Dec 2018 16:09:54 +0800 Received: from mtkslt303.mediatek.inc (10.21.14.116) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Dec 2018 16:09:54 +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 v5 1/6] irqchip/mtk-sysirq: support 4 interrupt parameters for sysirq Date: Fri, 28 Dec 2018 16:09:36 +0800 Message-ID: <1545984581-25843-2-git-send-email-erin.lo@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545984581-25843-1-git-send-email-erin.lo@mediatek.com> References: <1545984581-25843-1-git-send-email-erin.lo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 485846AECE0DE1B2333DEA885EDD0ED1CCFA23A2F08E5A9DF62712A56D57871F2000:8 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