Changeset 47787


Ignore:
Timestamp:
2015-12-05T10:57:23+01:00 (2 years ago)
Author:
nbd
Message:

CC: ar71xx: fix ath79_soc_rev value for QCA9531 ver. 2

ath9k expects to get revision id 2 for the QCA9531 ver. 2 rev. 0. This
fixes the very low TX power on some devices like the TP-LINK
TL-WR841ND v10

As ath79_soc_rev is only used to get the revision number to ath9k on the
QCA9533, just set it to the expected value on the ver. 2.

Backport of r47262

Signed-off-by: Matteo Valentini <matteo.valentini@…>

Location:
branches/chaos_calmer/target/linux/ar71xx/patches-3.18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chaos_calmer/target/linux/ar71xx/patches-3.18/707-MIPS-ath79-add-support-for-QCA953x-SoC.patch

    r47335 r47787  
    293293        id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); 
    294294        major = id & REV_ID_MAJOR_MASK; 
    295 @@ -151,6 +152,16 @@ static void __init ath79_detect_sys_type 
     295@@ -151,6 +152,17 @@ static void __init ath79_detect_sys_type 
    296296                rev = id & AR934X_REV_ID_REVISION_MASK; 
    297297                break; 
     
    299299+       case REV_ID_MAJOR_QCA9533_V2: 
    300300+               ver = 2; 
     301+               ath79_soc_rev = 2; 
    301302+               /* drop through */ 
    302303+ 
     
    310311                ath79_soc = ATH79_SOC_QCA9556; 
    311312                chip = "9556"; 
    312 @@ -169,9 +180,9 @@ static void __init ath79_detect_sys_type 
    313   
    314         ath79_soc_rev = rev; 
     313@@ -167,11 +179,12 @@ static void __init ath79_detect_sys_type 
     314                panic("ath79: unknown SoC, id:0x%08x", id); 
     315        } 
     316  
     317-       ath79_soc_rev = rev; 
     318+       if (ver == 1) 
     319+               ath79_soc_rev = rev; 
    315320  
    316321-       if (soc_is_qca955x()) 
  • branches/chaos_calmer/target/linux/ar71xx/patches-3.18/735-MIPS-ath79-add-support-for-QCA956x-SoC.patch

    r47335 r47787  
    520520--- a/arch/mips/ath79/setup.c 
    521521+++ b/arch/mips/ath79/setup.c 
    522 @@ -175,15 +175,30 @@ static void __init ath79_detect_sys_type 
     522@@ -176,6 +176,18 @@ static void __init ath79_detect_sys_type 
    523523                rev = id & QCA955X_REV_ID_REVISION_MASK; 
    524524                break; 
     
    539539                panic("ath79: unknown SoC, id:0x%08x", id); 
    540540        } 
    541   
    542         ath79_soc_rev = rev; 
     541@@ -183,9 +195,12 @@ static void __init ath79_detect_sys_type 
     542        if (ver == 1) 
     543                ath79_soc_rev = rev; 
    543544  
    544545-       if (soc_is_qca953x() || soc_is_qca955x()) 
Note: See TracChangeset for help on using the changeset viewer.