diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-15 16:21:34 -0400 |
commit | 5c01d5669356e13f0fb468944c1dd4c6a7e978ad (patch) | |
tree | fa43345288d7b25fac92b3b35360a177c4947313 /drivers/net/wireless/libertas | |
parent | fea069152614cdeefba4b2bf80afcddb9c217fc8 (diff) | |
parent | a5e944f1d955f3819503348426763e21e0413ba6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/wl12xx/wl1271_main.c
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_sdio.c | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index a48ccaffb288..6f5b843c1f44 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -75,7 +75,7 @@ static ssize_t lbs_getscantable(struct file *file, char __user *userbuf, | |||
75 | return -ENOMEM; | 75 | return -ENOMEM; |
76 | 76 | ||
77 | pos += snprintf(buf+pos, len-pos, | 77 | pos += snprintf(buf+pos, len-pos, |
78 | "# | ch | rssi | bssid | cap | Qual | SSID \n"); | 78 | "# | ch | rssi | bssid | cap | Qual | SSID\n"); |
79 | 79 | ||
80 | mutex_lock(&priv->lock); | 80 | mutex_lock(&priv->lock); |
81 | list_for_each_entry (iter_bss, &priv->network_list, list) { | 81 | list_for_each_entry (iter_bss, &priv->network_list, list) { |
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 7d1a3c6b6ce0..cd464a2589b9 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c | |||
@@ -35,6 +35,8 @@ | |||
35 | #include <linux/mmc/card.h> | 35 | #include <linux/mmc/card.h> |
36 | #include <linux/mmc/sdio_func.h> | 36 | #include <linux/mmc/sdio_func.h> |
37 | #include <linux/mmc/sdio_ids.h> | 37 | #include <linux/mmc/sdio_ids.h> |
38 | #include <linux/mmc/sdio.h> | ||
39 | #include <linux/mmc/host.h> | ||
38 | 40 | ||
39 | #include "host.h" | 41 | #include "host.h" |
40 | #include "decl.h" | 42 | #include "decl.h" |
@@ -943,6 +945,7 @@ static int if_sdio_probe(struct sdio_func *func, | |||
943 | int ret, i; | 945 | int ret, i; |
944 | unsigned int model; | 946 | unsigned int model; |
945 | struct if_sdio_packet *packet; | 947 | struct if_sdio_packet *packet; |
948 | struct mmc_host *host = func->card->host; | ||
946 | 949 | ||
947 | lbs_deb_enter(LBS_DEB_SDIO); | 950 | lbs_deb_enter(LBS_DEB_SDIO); |
948 | 951 | ||
@@ -1023,6 +1026,25 @@ static int if_sdio_probe(struct sdio_func *func, | |||
1023 | if (ret) | 1026 | if (ret) |
1024 | goto disable; | 1027 | goto disable; |
1025 | 1028 | ||
1029 | /* For 1-bit transfers to the 8686 model, we need to enable the | ||
1030 | * interrupt flag in the CCCR register. Set the MMC_QUIRK_LENIENT_FN0 | ||
1031 | * bit to allow access to non-vendor registers. */ | ||
1032 | if ((card->model == IF_SDIO_MODEL_8686) && | ||
1033 | (host->caps & MMC_CAP_SDIO_IRQ) && | ||
1034 | (host->ios.bus_width == MMC_BUS_WIDTH_1)) { | ||
1035 | u8 reg; | ||
1036 | |||
1037 | func->card->quirks |= MMC_QUIRK_LENIENT_FN0; | ||
1038 | reg = sdio_f0_readb(func, SDIO_CCCR_IF, &ret); | ||
1039 | if (ret) | ||
1040 | goto release_int; | ||
1041 | |||
1042 | reg |= SDIO_BUS_ECSI; | ||
1043 | sdio_f0_writeb(func, reg, SDIO_CCCR_IF, &ret); | ||
1044 | if (ret) | ||
1045 | goto release_int; | ||
1046 | } | ||
1047 | |||
1026 | card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret); | 1048 | card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret); |
1027 | if (ret) | 1049 | if (ret) |
1028 | goto release_int; | 1050 | goto release_int; |