Changeset 14023


Ignore:
Timestamp:
2009-01-13T14:01:26+01:00 (8 years ago)
Author:
juhosg
Message:

[package] mac80211: update ath9k patches

Location:
trunk/package/mac80211/patches
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/401-ath9k-convert-to-struct-device.patch

    r13961 r14023  
    1 From 3ded580cd6f24776395649b301857d075a5121fb Mon Sep 17 00:00:00 2001 
     1From 1f8e398032f7aa8a06ac950fe1d4e0a48d7578b2 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 10:45:00 +0100 
    4 Subject: [PATCH v2 01/11] ath9k: convert to struct device 
     4Subject: [PATCH v3 01/11] ath9k: convert to struct device 
    55 
    66Convert 'struct pci_dev' to 'struct device' to make it usable on the AHB 
    77bus as well. 
     8 
     9Changes-licensed-under: ISC 
    810 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/402-ath9k-convert-to-use-bus-agnostic-DMA-routines.patch

    r13961 r14023  
    1 From 57b901b5ceb401006a278bc1ad224f0ac88d4f08 Mon Sep 17 00:00:00 2001 
     1From 4180ca5827fe3ac377a8a71fca955c99ad6a2b5b Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 10:50:30 +0100 
    4 Subject: [PATCH v2 02/11] ath9k: convert to use bus-agnostic DMA routines 
     4Subject: [PATCH v3 02/11] ath9k: convert to use bus-agnostic DMA routines 
    55 
    66Convert to use bus-agnostic DMA routines to make it usable on AHB bus as well. 
     7 
     8Changes-licensed-under: ISC 
    79 
    810Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/403-ath9k-introduce-bus-specific-cache-size-routine.patch

    r13961 r14023  
    1 From 1306e6b6d72b2bc0b91bcdd15b1d982965210bda Mon Sep 17 00:00:00 2001 
     1From b9aae7ff9c6ca6864434882cce9c9c6fea88220b Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 10:57:42 +0100 
    4 Subject: [PATCH v2 03/11] ath9k: introduce bus specific cache size routine 
     4Subject: [PATCH v3 03/11] ath9k: introduce bus specific cache size routine 
    55 
    66The PCI specific bus_read_cachesize routine won't work on the AHB bus, 
    77we have to replace it with a suitable one later. 
     8 
     9Changes-licensed-under: ISC 
    810 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/404-ath9k-introduce-bus-specific-cleanup-routine.patch

    r13961 r14023  
    1 From 7524b77fe24a4464b08a2ac987ec22711a4f2027 Mon Sep 17 00:00:00 2001 
     1From 72542311c85de25b6f612e8de8cfdeb96efe7308 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 10:59:29 +0100 
    4 Subject: [PATCH v2 04/11] ath9k: introduce bus specific cleanup routine 
     4Subject: [PATCH v3 04/11] ath9k: introduce bus specific cleanup routine 
    55 
    66We have left only some PCI specific cleanup code. We have to convert 
    77them as well. 
     8 
     9Changes-licensed-under: ISC 
    810 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/405-ath9k-move-PCI-code-into-separate-file.patch

    r13961 r14023  
    1 From 39c2811d18b39991f49c16dcd9ed1a81200371ad Mon Sep 17 00:00:00 2001 
     1From 4803193b165c67abcd7cb10dd0c178dbcffb6cc7 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:01:09 +0100 
    4 Subject: [PATCH v2 05/11] ath9k: move PCI code into separate file 
     4Subject: [PATCH v3 05/11] ath9k: move PCI code into separate file 
    55 
    66Now that we have converted all bus specific routines to replaceable, we 
    77can move the PCI specific codes into a separate file. 
     8 
     9Changes-licensed-under: ISC 
    810 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
     
    1517 drivers/net/wireless/ath9k/pci.c    |  287 +++++++++++++++++++++++++++++++++ 
    1618 4 files changed, 328 insertions(+), 279 deletions(-) 
     19 create mode 100644 drivers/net/wireless/ath9k/pci.c 
    1720 
    1821--- a/drivers/net/wireless/ath9k/Makefile 
  • trunk/package/mac80211/patches/406-ath9k-introduce-platform-driver-for-AHB-bus-support.patch

    r13961 r14023  
    1 From ace011bdb2676f594824c81a5a5b5089dc0c3e0b Mon Sep 17 00:00:00 2001 
     1From 23f9e44a18b5a2dfaa1326aa30dd07e1449e8b5f Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:03:17 +0100 
    4 Subject: [PATCH v2 06/11] ath9k: introduce platform driver for AHB bus support 
     4Subject: [PATCH v3 06/11] ath9k: introduce platform driver for AHB bus support 
    55 
    66This patch adds the platform_driver itself, and modifies the main driver 
    77to register it. 
     8 
     9Changes-licensed-under: ISC 
    810 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
     
    1517 drivers/net/wireless/ath9k/main.c   |   10 ++ 
    1618 4 files changed, 179 insertions(+), 0 deletions(-) 
     19 create mode 100644 drivers/net/wireless/ath9k/ahb.c 
    1720 
    1821--- a/drivers/net/wireless/ath9k/Makefile 
  • trunk/package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch

    r13948 r14023  
    1 From 317e9ea5007e3ff18b52f973c1b3a3f2c84bcae1 Mon Sep 17 00:00:00 2001 
     1From 5941741f36a3870e8d22760e290ae7ea45293cdd Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:05:05 +0100 
    4 Subject: [PATCH v2 07/11] ath9k: get EEPROM contents from platform data on AHB bus 
     4Subject: [PATCH v3 07/11] ath9k: get EEPROM contents from platform data on AHB bus 
    55 
    66On the AR913x SOCs we have to provide EEPROM contents via platform_data, 
    77because accessing the flash via MMIO is not safe. Additionally different 
    88boards may store the radio calibration data at different locations. 
     9 
     10Changes-licensed-under: ISC 
    911 
    1012Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
     
    1719 include/linux/ath9k_platform.h      |   28 +++++++++++++++++++ 
    1820 5 files changed, 77 insertions(+), 48 deletions(-) 
     21 create mode 100644 include/linux/ath9k_platform.h 
    1922 
    2023--- a/drivers/net/wireless/ath9k/ahb.c 
  • trunk/package/mac80211/patches/408-ath9k-remove-u16-casts-from-rtc-register-access.patch

    r13961 r14023  
    1 From 891bd8d155bbdabac3c69486fc854984ee90761c Mon Sep 17 00:00:00 2001 
     1From 480e7cbba032b1710768ffa1f067f34f99016a73 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:11:28 +0100 
    4 Subject: [PATCH v2 08/11] ath9k: remove (u16) casts from rtc register access 
     4Subject: [PATCH v3 08/11] ath9k: remove (u16) casts from rtc register access 
    55 
    66The RTC register offsets don't fit into 'u16' on the AR913x, so we have 
    77to remove the existing casts. 
    88 
     9Changes-licensed-under: ISC 
     10 
    911Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
    1012Signed-off-by: Imre Kaloz <kaloz@openwrt.org> 
    1113--- 
    12  drivers/net/wireless/ath9k/hw.c |   14 +++++++------- 
    13  1 files changed, 7 insertions(+), 7 deletions(-) 
     14 drivers/net/wireless/ath9k/hw.c  |   14 +++++++------- 
     15 drivers/net/wireless/ath9k/reg.h |    4 ++-- 
     16 2 files changed, 9 insertions(+), 9 deletions(-) 
    1417 
    1518--- a/drivers/net/wireless/ath9k/hw.c 
     
    2023        } 
    2124-       REG_WRITE(ah, (u16) (AR_RTC_PLL_CONTROL), pll); 
    22 +       REG_WRITE(ah, (AR_RTC_PLL_CONTROL), pll); 
     25+       REG_WRITE(ah, AR_RTC_PLL_CONTROL, pll); 
    2326  
    2427        udelay(RTC_PLL_SETTLE_DELAY); 
     
    2932  
    3033-       REG_WRITE(ah, (u16) (AR_RTC_RC), rst_flags); 
    31 +       REG_WRITE(ah, (AR_RTC_RC), rst_flags); 
     34+       REG_WRITE(ah, AR_RTC_RC, rst_flags); 
    3235        udelay(50); 
    3336  
    3437-       REG_WRITE(ah, (u16) (AR_RTC_RC), 0); 
    3538-       if (!ath9k_hw_wait(ah, (u16) (AR_RTC_RC), AR_RTC_RC_M, 0)) { 
    36 +       REG_WRITE(ah, (AR_RTC_RC), 0); 
    37 +       if (!ath9k_hw_wait(ah, (AR_RTC_RC), AR_RTC_RC_M, 0)) { 
     39+       REG_WRITE(ah, AR_RTC_RC, 0); 
     40+       if (!ath9k_hw_wait(ah, AR_RTC_RC, AR_RTC_RC_M, 0)) { 
    3841                DPRINTF(ah->ah_sc, ATH_DBG_RESET, 
    3942                        "RTC stuck in MAC reset\n"); 
     
    4548-       REG_WRITE(ah, (u16) (AR_RTC_RESET), 0); 
    4649-       REG_WRITE(ah, (u16) (AR_RTC_RESET), 1); 
    47 +       REG_WRITE(ah, (AR_RTC_RESET), 0); 
    48 +       REG_WRITE(ah, (AR_RTC_RESET), 1); 
     50+       REG_WRITE(ah, AR_RTC_RESET, 0); 
     51+       REG_WRITE(ah, AR_RTC_RESET, 1); 
    4952  
    5053        if (!ath9k_hw_wait(ah, 
     
    5962        } 
    6063 } 
     64--- a/drivers/net/wireless/ath9k/reg.h 
     65+++ b/drivers/net/wireless/ath9k/reg.h 
     66@@ -953,7 +953,7 @@ enum { 
     67  
     68 #define AR_RTC_BASE             0x00020000 
     69 #define AR_RTC_RC \ 
     70-       (AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0000) : 0x7000 
     71+       ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0000) : 0x7000) 
     72 #define AR_RTC_RC_M            0x00000003 
     73 #define AR_RTC_RC_MAC_WARM      0x00000001 
     74 #define AR_RTC_RC_MAC_COLD      0x00000002 
     75@@ -961,7 +961,7 @@ enum { 
     76 #define AR_RTC_RC_WARM_RESET    0x00000008 
     77  
     78 #define AR_RTC_PLL_CONTROL \ 
     79-       (AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0014) : 0x7014 
     80+       ((AR_SREV_9100(ah)) ? (AR_RTC_BASE + 0x0014) : 0x7014) 
     81  
     82 #define AR_RTC_PLL_DIV          0x0000001f 
     83 #define AR_RTC_PLL_DIV_S        0 
  • trunk/package/mac80211/patches/409-ath9k-fix-ar5416Addac_9100-values.patch

    r13948 r14023  
    1 From d1550cd72b9bddd43a355229aaa330b54c28d92e Mon Sep 17 00:00:00 2001 
     1From 7421bd5ad39586fe58e487477e154275479b6821 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:13:04 +0100 
    4 Subject: [PATCH v2 09/11] ath9k: fix ar5416Addac_9100 values 
     4Subject: [PATCH v3 09/11] ath9k: fix ar5416Addac_9100 values 
    55 
    66Writing the register at offset 0x98c4 causes a deadlock on the AR913x 
     
    88but if i change the register offset according to the 'ar5416Addac' table, 
    99it works. Additionally there is no reference to the 0x98c4 elsewhere. 
     10 
     11Changes-licensed-under: ISC 
    1012 
    1113Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/410-ath9k-fix-null-pointer-dereference-in-ani-monitor-c.patch

    r13948 r14023  
    1 From a6411f449091c272ca08146238b91a0835306179 Mon Sep 17 00:00:00 2001 
     1From ea298030ddc0089f308eec39571355aa359a1563 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:14:14 +0100 
    4 Subject: [PATCH v2 10/11] ath9k: fix null pointer dereference in ani monitor code 
     4Subject: [PATCH v3 10/11] ath9k: fix null pointer dereference in ani monitor code 
    55 
    66In 'ath9k_ani_reset' the 'ahp->ah_curani' will be initialized only 
     
    88'ahp->ah_curani' unconditionally, and it will cause a NULL pointer 
    99dereference on AR9100. 
     10 
     11Changes-licensed-under: ISC 
    1012 
    1113Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/package/mac80211/patches/411-ath9k-enable-support-for-AR9100.patch

    r13948 r14023  
    1 From c4568c6e2a62a95c95c7875643a64a19bc8c1a2f Mon Sep 17 00:00:00 2001 
     1From 40f16a1776f223eee7eeb00860e8215e7ce33a98 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 5 Jan 2009 11:10:28 +0100 
    4 Subject: [PATCH v2 11/11] ath9k: enable support for AR9100 
     4Subject: [PATCH v3 11/11] ath9k: enable support for AR9100 
    55 
    66Because we have support for the AR9100 devices now, we can enable them. 
     7 
     8Changes-licensed-under: ISC 
    79 
    810Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
Note: See TracChangeset for help on using the changeset viewer.