wl12xx: increase firmware upload chunk size
authorLuciano Coelho <coelho@ti.com>
Thu, 3 Nov 2011 06:44:43 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 8 Nov 2011 13:36:53 +0000 (15:36 +0200)
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>
drivers/net/wireless/wl12xx/reg.h

index 3f570f39758654430ef9a04602b8caf422c8acb5..df34d5977b98581a2e4b321665a9d0de0dc00398 100644 (file)
 
 
 /* Firmware image load chunk size */
-#define CHUNK_SIZE          512
+#define CHUNK_SIZE     16384
 
 /* Firmware image header size */
 #define FW_HDR_SIZE 8