Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 1b00adce8afd ("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

authored by

Sean Anderson and committed by
Marc Zyngier
3ae977d0 5e279739

+1 -1
+1 -1
drivers/irqchip/irq-ls-extirq.c
··· 203 203 if (ret) 204 204 goto err_parse_map; 205 205 206 - priv->big_endian = of_device_is_big_endian(parent); 206 + priv->big_endian = of_device_is_big_endian(node->parent); 207 207 priv->is_ls1021a_or_ls1043a = of_device_is_compatible(node, "fsl,ls1021a-extirq") || 208 208 of_device_is_compatible(node, "fsl,ls1043a-extirq"); 209 209 raw_spin_lock_init(&priv->lock);