Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wifi: brcmfmac: of: Support interrupts-extended
@ 2024-06-21 22:55 Alex Bee
  2024-06-22 13:38 ` Arend Van Spriel
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Bee @ 2024-06-21 22:55 UTC (permalink / raw)
  To: Arend van Spriel, Kalle Valo, linux-wireless, brcm80211,
	brcm80211-dev-list.pdl, linux-kernel
  Cc: Alex Bee

This "new" version of defining external interrupts is around for a very
long time now and supported and preferred by irq_of_parse_and_map
respectively of_irq_parse_one.

Support it in brcmfmac as well by checking if either "interrupts" or
"interrupts-extended" property exists as indication if irq_of_parse_and_map
should be called.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
index e406e11481a6..6cdc941552e3 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
@@ -129,7 +129,8 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
 		sdio->drive_strength = val;
 
 	/* make sure there are interrupts defined in the node */
-	if (!of_property_present(np, "interrupts"))
+	if (!of_property_present(np, "interrupts") &&
+	    !of_property_present(np, "interrupts-extended"))
 		return;
 
 	irq = irq_of_parse_and_map(np, 0);
-- 
2.45.2


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

end of thread, other threads:[~2024-06-22 20:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 22:55 [PATCH] wifi: brcmfmac: of: Support interrupts-extended Alex Bee
2024-06-22 13:38 ` Arend Van Spriel
2024-06-22 13:49   ` Arend Van Spriel
2024-06-22 14:07     ` Alex Bee
2024-06-22 14:40       ` Alex Bee
2024-06-22 17:46       ` Arend Van Spriel
2024-06-22 20:57         ` Alex Bee

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