op_bluetooth_work.sh: Modify LED enable / disable - code to work properly with the...
[openpandora.oe.git] / recipes / pandora-system / wl1251-modules / 0003-wl1251-reduce-eeprom-read-wait-time.patch
1 From 76c61286c4d8aa99a70f0e2d8858ff49d1ae5f94 Mon Sep 17 00:00:00 2001
2 From: Grazvydas Ignotas <notasas@gmail.com>
3 Date: Mon, 8 Mar 2010 19:12:25 +0200
4 Subject: [PATCH 3/5] wl1251: reduce eeprom read wait time
5
6 4sec wait is way too pessimistic, TI driver uses 40ms here,
7 and testing shows that is ebough, so let's also use that.
8 While at it, add useful sounding comment from the TI driver.
9
10 Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
11 ---
12  drivers/net/wireless/wl12xx/wl1251_boot.c |    3 ++-
13  1 files changed, 2 insertions(+), 1 deletions(-)
14
15 diff --git a/drivers/net/wireless/wl12xx/wl1251_boot.c b/drivers/net/wireless/wl12xx/wl1251_boot.c
16 index 28a8086..acb3341 100644
17 --- a/drivers/net/wireless/wl12xx/wl1251_boot.c
18 +++ b/drivers/net/wireless/wl12xx/wl1251_boot.c
19 @@ -496,7 +496,8 @@ int wl1251_boot(struct wl1251 *wl)
20         /* 2. start processing NVS file */
21         if (wl->use_eeprom) {
22                 wl1251_reg_write32(wl, ACX_REG_EE_START, START_EEPROM_MGR);
23 -               msleep(4000);
24 +               /* Wait for EEPROM NVS burst read to complete */
25 +               msleep(40);
26                 wl1251_reg_write32(wl, ACX_EEPROMLESS_IND_REG, USE_EEPROM);
27         } else {
28                 ret = wl1251_boot_upload_nvs(wl);
29 -- 
30 1.6.3.3
31