]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wl1251: reduce eeprom read wait time
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 11 Mar 2010 15:45:07 +0000 (17:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Mar 2010 19:32:04 +0000 (15:32 -0400)
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>
drivers/net/wireless/wl12xx/wl1251_boot.c

index 28a808674080952b73e1615fefcba75d784ef406..acb334184d70db3d2e78f78194931d7f240c942b 100644 (file)
@@ -496,7 +496,8 @@ int wl1251_boot(struct wl1251 *wl)
        /* 2. start processing NVS file */
        if (wl->use_eeprom) {
                wl1251_reg_write32(wl, ACX_REG_EE_START, START_EEPROM_MGR);
-               msleep(4000);
+               /* Wait for EEPROM NVS burst read to complete */
+               msleep(40);
                wl1251_reg_write32(wl, ACX_EEPROMLESS_IND_REG, USE_EEPROM);
        } else {
                ret = wl1251_boot_upload_nvs(wl);