diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2010-03-11 10:45:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-15 15:32:04 -0400 |
commit | 1e3f7ac81ef81f25d8d8d902b73d884f97e6aa21 (patch) | |
tree | 7db0bddb99d6d8d564db611b98ad6a6fdf3d6f49 /drivers/net/wireless/wl12xx/wl1251_boot.c | |
parent | 3f9e750d130b4a4d9f8226642b46ed17d8357f40 (diff) |
wl1251: reduce eeprom read wait time
4sec wait is way too pessimistic, TI driver uses 40ms here,
and testing shows that is ebough, so let's also use that.
While at it, add useful sounding comment from the TI driver.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_boot.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_boot.c b/drivers/net/wireless/wl12xx/wl1251_boot.c index 28a808674080..acb334184d70 100644 --- a/drivers/net/wireless/wl12xx/wl1251_boot.c +++ b/drivers/net/wireless/wl12xx/wl1251_boot.c | |||
@@ -496,7 +496,8 @@ int wl1251_boot(struct wl1251 *wl) | |||
496 | /* 2. start processing NVS file */ | 496 | /* 2. start processing NVS file */ |
497 | if (wl->use_eeprom) { | 497 | if (wl->use_eeprom) { |
498 | wl1251_reg_write32(wl, ACX_REG_EE_START, START_EEPROM_MGR); | 498 | wl1251_reg_write32(wl, ACX_REG_EE_START, START_EEPROM_MGR); |
499 | msleep(4000); | 499 | /* Wait for EEPROM NVS burst read to complete */ |
500 | msleep(40); | ||
500 | wl1251_reg_write32(wl, ACX_EEPROMLESS_IND_REG, USE_EEPROM); | 501 | wl1251_reg_write32(wl, ACX_EEPROMLESS_IND_REG, USE_EEPROM); |
501 | } else { | 502 | } else { |
502 | ret = wl1251_boot_upload_nvs(wl); | 503 | ret = wl1251_boot_upload_nvs(wl); |