Re: [PATCH v4 2/4] irqchip: Add support for Amlogic A4 and A5 SoCs
From: Thomas Gleixner
Date: Mon Mar 10 2025 - 13:59:02 EST
On Fri, Mar 07 2025 at 16:49, Xianwei Zhao via wrote:
>
> if (type == IRQ_TYPE_EDGE_BOTH) {
> val |= BIT(ctl->params->edge_both_offset + idx);
Not new, but this really should be 'val = ...'
> - meson_gpio_irq_update_bits(ctl, REG_EDGE_POL_S4,
> + meson_gpio_irq_update_bits(ctl, params->edge_pol_reg,
> BIT(ctl->params->edge_both_offset + idx), val);
and this BIT() calculation is obviously redundant as it is the same as @val.
Would be nice to have that cleaned up.
With that fixed:
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>