[openwrt/openwrt] Revert "mac80211 adjust QCA9561 PA bias"

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 17 00:20:43 PDT 2022


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c0a6fefd9b74af03a30810be20f0ce5504447b3e

commit c0a6fefd9b74af03a30810be20f0ce5504447b3e
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Sun Apr 17 09:07:49 2022 +0200

    Revert "mac80211 adjust QCA9561 PA bias"
    
    This reverts commit f9ff282d17ec652d63fa2404e47bb0e15ed95b69 as during
    upstream patch review process nbd pointed out, that this patch needs
    more work:
    
     "The patch looks wrong to me. I'm pretty sure that AR_CH0_TOP2 is the
      correct register, the definition has an explicit check for 9561 as well.
      I believe this patch works by accident because it avoids writing a wrong
      value to that register."
    
    1. https://lore.kernel.org/all/91c58969-c60e-2f41-00ac-737786d435ae@nbd.name
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 .../ath9k/580-ath9k_ar9561_xpa_bias_level_top.patch    | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/package/kernel/mac80211/patches/ath9k/580-ath9k_ar9561_xpa_bias_level_top.patch b/package/kernel/mac80211/patches/ath9k/580-ath9k_ar9561_xpa_bias_level_top.patch
deleted file mode 100644
index 25db3ab5ba..0000000000
--- a/package/kernel/mac80211/patches/ath9k/580-ath9k_ar9561_xpa_bias_level_top.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
-+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
-@@ -3604,10 +3604,13 @@ static void ar9003_hw_xpa_bias_level_app
- {
- 	int bias = ar9003_modal_header(ah, is2ghz)->xpaBiasLvl;
- 
-+	
-+
- 	if (AR_SREV_9485(ah) || AR_SREV_9330(ah) || AR_SREV_9340(ah) ||
--	    AR_SREV_9531(ah) || AR_SREV_9561(ah))
-+	    AR_SREV_9531(ah))
- 		REG_RMW_FIELD(ah, AR_CH0_TOP2, AR_CH0_TOP2_XPABIASLVL, bias);
--	else if (AR_SREV_9462(ah) || AR_SREV_9550(ah) || AR_SREV_9565(ah))
-+	else if (AR_SREV_9462(ah) || AR_SREV_9550(ah) || AR_SREV_9565(ah) || 
-+        AR_SREV_9561(ah))
- 		REG_RMW_FIELD(ah, AR_CH0_TOP, AR_CH0_TOP_XPABIASLVL, bias);
- 	else {
- 		REG_RMW_FIELD(ah, AR_CH0_TOP, AR_CH0_TOP_XPABIASLVL, bias);




More information about the lede-commits mailing list