wl1271: Handle large SPI transfers
authorIdo Yariv <ido@wizery.com>
Thu, 30 Sep 2010 11:28:26 +0000 (13:28 +0200)
committerLuciano Coelho <luciano.coelho@nokia.com>
Tue, 5 Oct 2010 13:27:24 +0000 (16:27 +0300)
commit5c57a901dc96fc81d0041282269b43542f170d2a
tree7ee87d336cf3b85b6429cba098329ac784e96092
parent65836112fc24bdf009554481b36b6ba0a690b855
wl1271: Handle large SPI transfers

The HW supports up to 4095 bytes transfers via SPI. The SPI read & write
operations do not handle larger transfers, causing the HW to stall in such
cases.

Fix this by fragmenting large transfers into smaller chunks, and
transferring each one separately.

Signed-off-by: Ido Yariv <ido@wizery.com>
Tested-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_spi.c