@@ -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 */