]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mac80211: ath9k: patch hw.c for gpio mask from dt 22508/head
authorEdward Chow <equu@openmail.cc>
Wed, 11 Mar 2026 08:19:26 +0000 (16:19 +0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 20 Mar 2026 12:32:05 +0000 (13:32 +0100)
commit975b02a5bb1be6486f9e6ed681db84b1a090c27b
tree9afdf8998bb833c84f8ed60bbc0892a0d40c01e7
parent5e9be2e9d82c8f1bc7ec8466599f8c29a609b69f
mac80211: ath9k: patch hw.c for gpio mask from dt

"qca,gpio-mask" used to be read between ath9k_hw_init() and
ath9k_init_queues(). After 12913c3c5658992985e13f4395dee86e5450154d
it is read in ath9k_of_init(), but it gets overwritten by
ath9k_gpio_cap_init() during the call of ath9k_hw_init(), and causes
https://github.com/openwrt/openwrt/issues/22340

If keeping the most of 12913c3c5658992985e13f4395dee86e5450154d,
ath9k_gpio_cap_init() could be patched to keep the existing non-zero
gpio mask (coming from device tree).

Tested on Netgear WNDR4500 v3:
[   22.558083] ath9k 0000:00:00.0: enabling device (0000 -> 0002)
[   22.569548] ath: phy1: Use overridden gpio mask 0xf6ff

Signed-off-by: Edward Chow <equu@openmail.cc>
Link: https://github.com/openwrt/openwrt/pull/22376
(cherry picked from commit a1f5273)
Link: https://github.com/openwrt/openwrt/pull/22508
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/mac80211/patches/ath9k/550-ath9k-of.patch