[PATCH v4 0/3] msm8974/wcn36xx: recover Wi-Fi after a WCNSS crash
From: Alexandre Rapaille via B4 Relay
Date: Mon Nov 30 2026 - 08:56:39 EST
On msm8974 the wcn36xx re-probe after a WCNSS crash fails on an IRQ type
mismatch (DT edge, driver level), so wlan0 stays gone until reboot; seen
on deployed Fairphone 2 gateways.
Tested on a Fairphone 2 with next-20261127: with this series 12/12
forced WCNSS crashes recovered in 20-21 s (0-3% ping loss); without it
0/3 recovered ("irq: type mismatch, failed to map hwirq-177", then
"error -ENXIO: IRQ tx not found"). With patches 2-3 but the DT left at
IRQ_TYPE_EDGE_RISING, 9/19 crashes never recovered (wcn36xx: "No DXE
interrupt pending"). Without the series the teardown waits out eight
10 s HAL timeouts (~82 s from the crash to the WCNSS stop); with patch
3, one (~10.6 s).
dtbs_check over the 14 msm8974/apq8074 boards is unchanged by the
series (no wcnss warnings either way).
Patch 1 is for the qcom tree, 2-3 for ath. Patch 2 needs patch 1 on
msm8974, or its WCNSS IRQs would turn edge-triggered.
Signed-off-by: Alexandre Rapaille <arapaille@xxxxxxxxxxxxxxxxxxxx>
---
Changes in v4:
- Tested on next-20261127 instead of 6.12 (Konrad); results in the cover
letter, including the DT left at rising edge.
- Patch 2: drop the sentence about which tree takes the DT patch (Konrad).
- Patch 3: state the timeout cost without kernel-specific numbers.
- Link to v3: https://patch.msgid.link/20261130-wcnss-series-v1-v3-0-d8fb64bd551c@xxxxxxxxxxxxxxxxxxxx
Changes in v3:
- Patch 1: kept. Tested Konrad's question on a Fairphone 2 (6.18 with
patches 2-3): with the DT left at IRQ_TYPE_EDGE_RISING, 2 of 5 forced
WCNSS crashes never recovered (wlan0 re-associated but no data, the
DXE interrupts were lost) and one lost 53% of pings; with
IRQ_TYPE_LEVEL_HIGH, 12/12 recovered in ~20 s with 0-3% loss.
- Patch 2: no longer refers to patch 1 as the previous patch, since they
go through different trees (Konrad).
- Link to v2: https://patch.msgid.link/20261120-wcnss-series-v1-v2-0-3fed518decfb@xxxxxxxxxxxxxxxxxxxx
Changes in v2:
- Patch 1: Cc stable; picked up Luca's Reviewed-by
- Patch 2: explain the failure in the message; drop Fixes: so only
patch 1 goes to stable (Loic)
- Patch 3: say why removing alone is not enough (Loic)
- Link to v1: https://patch.msgid.link/20261118-wcnss-series-v1-v1-0-a64d82e151bf@xxxxxxxxxxxxxxxxxxxx
---
Alexandre Rapaille (3):
ARM: dts: qcom: msm8974: Fix WCNSS wifi interrupt trigger type
wifi: wcn36xx: Do not enforce interrupt trigger type
wifi: wcn36xx: Stop waiting on a dead firmware during remove
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 4 ++--
drivers/net/wireless/ath/wcn36xx/dxe.c | 6 +++---
drivers/net/wireless/ath/wcn36xx/main.c | 1 +
drivers/net/wireless/ath/wcn36xx/smd.c | 8 ++++++++
drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 4 ++++
5 files changed, 18 insertions(+), 5 deletions(-)
---
base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca
change-id: 20261118-wcnss-series-v1-ff46db05a31c
Best regards,
--
Alexandre Rapaille <arapaille@xxxxxxxxxxxxxxxxxxxx>