Skip to content

Commit 3ae977d

Browse files
sean-anderson-secoMarc Zyngier
authored andcommitted
irqchip/ls-extirq: Fix endianness detection
parent is the interrupt parent, not the parent of node. Use node->parent. This fixes endianness detection on big-endian platforms. Fixes: 1b00adc ("irqchip/ls-extirq: Fix invalid wait context by avoiding to use regmap") Signed-off-by: Sean Anderson <sean.anderson@seco.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221201212807.616191-1-sean.anderson@seco.com
1 parent 5e27973 commit 3ae977d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-ls-extirq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ ls_extirq_of_init(struct device_node *node, struct device_node *parent)
203203
if (ret)
204204
goto err_parse_map;
205205

206-
priv->big_endian = of_device_is_big_endian(parent);
206+
priv->big_endian = of_device_is_big_endian(node->parent);
207207
priv->is_ls1021a_or_ls1043a = of_device_is_compatible(node, "fsl,ls1021a-extirq") ||
208208
of_device_is_compatible(node, "fsl,ls1043a-extirq");
209209
raw_spin_lock_init(&priv->lock);

0 commit comments

Comments
 (0)