public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip/ls-extirq: Fix endianness detection
@ 2022-12-01 21:28 Sean Anderson
  2022-12-05 11:21 ` [irqchip: irq/irqchip-next] " irqchip-bot for Sean Anderson
  0 siblings, 1 reply; 7+ messages in thread
From: Sean Anderson @ 2022-12-01 21:28 UTC (permalink / raw)
  To: Thomas Gleixner, Marc Zyngier, Vladimir Oltean, linux-arm-kernel
  Cc: linux-kernel, Li Yang, Shawn Guo, Sean Anderson

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>
---

 drivers/irqchip/irq-ls-extirq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-ls-extirq.c b/drivers/irqchip/irq-ls-extirq.c
index d8d48b1f7c29..139f26b0a6ef 100644
--- a/drivers/irqchip/irq-ls-extirq.c
+++ b/drivers/irqchip/irq-ls-extirq.c
@@ -203,7 +203,7 @@ ls_extirq_of_init(struct device_node *node, struct device_node *parent)
 	if (ret)
 		goto err_parse_map;
 
-	priv->big_endian = of_device_is_big_endian(parent);
+	priv->big_endian = of_device_is_big_endian(node->parent);
 	priv->is_ls1021a_or_ls1043a = of_device_is_compatible(node, "fsl,ls1021a-extirq") ||
 				      of_device_is_compatible(node, "fsl,ls1043a-extirq");
 	raw_spin_lock_init(&priv->lock);
-- 
2.35.1.1320.gc452695387.dirty


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-19 12:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 21:28 [PATCH] irqchip/ls-extirq: Fix endianness detection Sean Anderson
2022-12-05 11:21 ` [irqchip: irq/irqchip-next] " irqchip-bot for Sean Anderson
2022-12-16 16:37   ` Sean Anderson
2022-12-16 18:22     ` Marc Zyngier
2022-12-16 19:11       ` Sean Anderson
2022-12-16 19:23         ` Marc Zyngier
2022-12-19 12:17           ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox