ath9k: Avoid OF no-eeprom quirks when no qca,no-eeprom
authorDaniel F. Dickinson <cshored@thecshore.com>
Mon, 17 Dec 2018 05:18:30 +0000 (00:18 -0500)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 22 Dec 2018 14:08:24 +0000 (15:08 +0100)
commit8d2a9e8027c96db8e932cd657a62013206c5755f
tree8736002ba69c762f586104c9a951b1175a95aafd
parentf36bc3f9b1078fd3203faaf51fcf0efc8fb08bd9
ath9k: Avoid OF no-eeprom quirks when no qca,no-eeprom

Based on the process of discovery in
https://github.com/openwrt/openwrt/pull/1613, it has become clear
that (at least) the PowerCloud System CR5000 was unable to get
working 5GHz wireless (PCIe) because AH_USE_EEPROM was unconditionally
masked out, not only when qca,noeeprom was in the DTS.

This patch moves mask AH_USE_EEPROM into the if ... qca,noeeprom
OF test.

Thanks to Christian Lampartar (@chunkeey) for the heavy lifting and help.

Patch has been prepared for upstream and will be submitted after review
by @chunkeey and @xdarklight.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
package/kernel/mac80211/patches/ath/558-ath9k-only-mask-use_eeprom-on-of-noeeprom.patch [new file with mode: 0644]