aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-11-03 02:44:43 -0400
committerLuciano Coelho <coelho@ti.com>2011-11-08 08:36:53 -0500
commit3f3fd78e33213b1684ac1e4deacbcf7ed1828e3c (patch)
tree08ac5fc8264d6903cac2e2f5df0386653500903a
parente62c9ce4a4c0e0ffd5718e962ba4606cd5d0d600 (diff)
wl12xx: increase firmware upload chunk size
The chunk size used during firmware upload was set to 512, which is the size of a single SDIO block (or two). This is very inneficient because we send one or two blocks only per SDIO transaction and don't get the full benefits of sdio block transfers. This patch increases the chunk size to 16K. This more than doubles the transfer speed both in wl127x and wl128x chips, with greater impact on the latter: wl127x: 512 bytes chunk -> ~132ms 16384 bytes chunk -> ~57ms wl128x: 512 bytes chunk -> ~216ms 16384 bytes chunk -> ~37ms Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r--drivers/net/wireless/wl12xx/reg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/reg.h b/drivers/net/wireless/wl12xx/reg.h
index 3f570f397586..df34d5977b98 100644
--- a/drivers/net/wireless/wl12xx/reg.h
+++ b/drivers/net/wireless/wl12xx/reg.h
@@ -408,7 +408,7 @@
408 408
409 409
410/* Firmware image load chunk size */ 410/* Firmware image load chunk size */
411#define CHUNK_SIZE 512 411#define CHUNK_SIZE 16384
412 412
413/* Firmware image header size */ 413/* Firmware image header size */
414#define FW_HDR_SIZE 8 414#define FW_HDR_SIZE 8