diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-01-09 12:38:08 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-01-09 12:38:08 +0000 |
commit | 62be7d2e9a19565e547e38a155cd8d947bf14fd4 (patch) | |
tree | 39de2efd9cf52b75c86b65a9eb063c6db003443a /package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch | |
parent | 4be7e5e176f84d2f5bd21416fd92e98bfda135f6 (diff) | |
download | master-187ad058-62be7d2e9a19565e547e38a155cd8d947bf14fd4.tar.gz master-187ad058-62be7d2e9a19565e547e38a155cd8d947bf14fd4.tar.bz2 master-187ad058-62be7d2e9a19565e547e38a155cd8d947bf14fd4.zip |
[package] mac80211: update ath9k patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13948 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch')
-rw-r--r-- | package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch b/package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch index 2412d8f11b..e866acdc6c 100644 --- a/package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch +++ b/package/mac80211/patches/407-ath9k-get-EEPROM-contents-from-platform-data-on-AHB.patch @@ -1,7 +1,7 @@ -From d0d8545c85b03c2e7e3c9957a94d0d6fc8168bef Mon Sep 17 00:00:00 2001 +From 317e9ea5007e3ff18b52f973c1b3a3f2c84bcae1 Mon Sep 17 00:00:00 2001 From: Gabor Juhos <juhosg@openwrt.org> Date: Mon, 5 Jan 2009 11:05:05 +0100 -Subject: [PATCH 07/11] ath9k: get EEPROM contents from platform data on AHB bus +Subject: [PATCH v2 07/11] ath9k: get EEPROM contents from platform data on AHB bus On the AR913x SOCs we have to provide EEPROM contents via platform_data, because accessing the flash via MMIO is not safe. Additionally different @@ -27,8 +27,8 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org> #include "core.h" #include "reg.h" #include "hw.h" -@@ -39,9 +40,29 @@ static void ath_ahb_cleanup(struct ath_s - ieee80211_free_hw(hw); +@@ -33,9 +34,29 @@ static void ath_ahb_cleanup(struct ath_s + iounmap(sc->mem); } +static bool ath_ahb_eeprom_read(struct ath_hal *ah, u32 off, u16 *data) @@ -57,7 +57,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org> }; static int ath_ahb_probe(struct platform_device *pdev) -@@ -54,6 +75,12 @@ static int ath_ahb_probe(struct platform +@@ -48,6 +69,12 @@ static int ath_ahb_probe(struct platform int ret = 0; struct ath_hal *ah; @@ -151,8 +151,8 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org> else --- a/drivers/net/wireless/ath9k/pci.c +++ b/drivers/net/wireless/ath9k/pci.c -@@ -62,9 +62,27 @@ static void ath_pci_cleanup(struct ath_s - ieee80211_free_hw(sc->hw); +@@ -58,9 +58,27 @@ static void ath_pci_cleanup(struct ath_s + pci_disable_device(pdev); } +static bool ath_pci_eeprom_read(struct ath_hal *ah, u32 off, u16 *data) |