diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-06 10:41:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-06 10:41:23 +0000 |
commit | 9f34772a476cba359681f9d3327db6636d5624c5 (patch) | |
tree | 5a6b599b5b23ba72ecd575d6a7fb998162dce94e /package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch | |
parent | c9a7f5dfffa7d7719aff64f11ba1243123693f19 (diff) | |
download | master-187ad058-9f34772a476cba359681f9d3327db6636d5624c5.tar.gz master-187ad058-9f34772a476cba359681f9d3327db6636d5624c5.tar.bz2 master-187ad058-9f34772a476cba359681f9d3327db6636d5624c5.zip |
mac80211: update to wireless-testing 2014-03-31
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40393 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch')
-rw-r--r-- | package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch b/package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch deleted file mode 100644 index 1aafb32968..0000000000 --- a/package/kernel/mac80211/patches/903-wlcore-block-read-writes-to-FW-during-ELP.patch +++ /dev/null @@ -1,36 +0,0 @@ -When the chip is in ELP mode read/write to FW is invalid and may cause -the lower layers to get stuck. The reads/writes concerning ELP wakeup -are the exception here and are checked for. In addition to blocking the -IO, produce a warning. - -Signed-off-by: Barak Bercovitz <barak@wizery.com> -Signed-off-by: Eliad Peller <eliad@wizery.com> - ---- -drivers/net/wireless/ti/wlcore/io.h | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - ---- a/drivers/net/wireless/ti/wlcore/io.h -+++ b/drivers/net/wireless/ti/wlcore/io.h -@@ -60,7 +60,9 @@ static inline int __must_check wlcore_ra - { - int ret; - -- if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags)) -+ if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || -+ WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && -+ addr != HW_ACCESS_ELP_CTRL_REG))) - return -EIO; - - ret = wl->if_ops->write(wl->dev, addr, buf, len, fixed); -@@ -76,7 +78,9 @@ static inline int __must_check wlcore_ra - { - int ret; - -- if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags)) -+ if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || -+ WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && -+ addr != HW_ACCESS_ELP_CTRL_REG))) - return -EIO; - - ret = wl->if_ops->read(wl->dev, addr, buf, len, fixed); |