Thread (9 messages) 9 messages, 4 authors, 2025-03-17

Re: [PATCH v4 2/4] irqchip: Add support for Amlogic A4 and A5 SoCs

From: Thomas Gleixner <hidden>
Date: 2025-03-10 17:58:55
Also in: linux-amlogic, linux-devicetree, lkml

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 <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help