--- zzzz-none-000/linux-4.1.52/kernel/irq/manage.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/kernel/irq/manage.c 2022-03-02 11:37:13.000000000 +0000 @@ -1095,10 +1095,17 @@ * set the trigger type must match. Also all must * agree on ONESHOT. */ +#if defined(CONFIG_BCM_KF_MISC_BACKPORTS) +#else unsigned int oldtype = irqd_get_trigger_type(&desc->irq_data); +#endif if (!((old->flags & new->flags) & IRQF_SHARED) || +#if defined(CONFIG_BCM_KF_MISC_BACKPORTS) + ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK) || +#else (oldtype != (new->flags & IRQF_TRIGGER_MASK)) || +#endif ((old->flags ^ new->flags) & IRQF_ONESHOT)) goto mismatch;