From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Brugger Subject: Re: [PATCH v6 1/6] irqchip/mtk-sysirq: support 4 interrupt parameters for sysirq Date: Thu, 7 Feb 2019 16:20:21 +0100 Message-ID: <898ca3d9-002b-e28e-fc97-86bc2538e9de@gmail.com> References: <1548317240-44682-1-git-send-email-erin.lo@mediatek.com> <1548317240-44682-2-git-send-email-erin.lo@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1548317240-44682-2-git-send-email-erin.lo@mediatek.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Erin Lo , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Greg Kroah-Hartman , Stephen Boyd Cc: devicetree@vger.kernel.org, srv_heupstream , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, yingjoe.chen@mediatek.com, mars.cheng@mediatek.com, eddie.huang@mediatek.com, linux-clk@vger.kernel.org, Seiya Wang List-Id: devicetree@vger.kernel.org On 24/01/2019 09:07, Erin Lo wrote: > 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) Where is this 4th parameter used? Regards, Matthias > 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 */ >