mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
8175695dcd5e03364e6cafe632312e92ce8e9b0d
The mac_reset and resume paths use the hardcoded MT_INT_RX_DONE_ALL constant (bits 0-2) to re-enable RX interrupts. This is correct for MT7925 (RX rings 0, 1, 2) but wrong for chips using different ring indices. Define a per-chip irq_map with the correct RX interrupt enable bits and replace hardcoded MT_INT_RX_DONE_ALL with irq_map field reads in the resume and mac_reset paths. Add the MT7927 irq_map with interrupt bits matching its RX ring layout (rings 4, 6, 7), selected at probe time based on PCI device ID. This ensures the correct interrupt bits are enabled regardless of the chip variant. Tested-by: Marcin FM <[email protected]> Tested-by: Cristian-Florin Radoi <[email protected]> Tested-by: George Salukvadze <[email protected]> Tested-by: Evgeny Kapusta <[email protected]> Tested-by: Samu Toljamo <[email protected]> Tested-by: Ariel Rosenfeld <[email protected]> Tested-by: Chapuis Dario <[email protected]> Tested-by: Thibaut François <[email protected]> Tested-by: 张旭涵 <[email protected]> Reviewed-by: Sean Wang <[email protected]> Signed-off-by: Javier Tia <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
105 MiB
Languages
C
99.7%
Perl
0.2%
Makefile
0.1%