wl12xx: use the same SDIO block size for all different chips
authorLuciano Coelho <coelho@ti.com>
Thu, 3 Nov 2011 06:44:42 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 8 Nov 2011 13:36:53 +0000 (15:36 +0200)
commite62c9ce4a4c0e0ffd5718e962ba4606cd5d0d600
tree84a6455690856ee82ddc93f2d560a6262140b0ca
parentce39defb5c6312a89a0c7be48797d6fb8fe9abad
wl12xx: use the same SDIO block size for all different chips

The sdio driver uses a block size of 512 bytes by default.  With our
card, this doesn't work correctly because it sets the block size FBR
in the chip too early (ie. before the chip is powered on).  Thus, if
we don't set it explicitly, block mode remains disabled in the chip.
If we try to send more data than fits in one block, the sdio driver
will split it into separate blocks before sending to the chip.  This
causes problems because the chip is not expecting multiple blocks.

At the moment this is not a problem, because we use chunks of 512
bytes for firmware upload and the data is always sent in byte mode.
In the next patch, we will change the chunk size to a bigger value, so
this patch is a preparation for that.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
This page took 0.024248 seconds and 5 git commands to generate.