]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit559855d5edd5a5df19e5a8db7424afb1c3592164
tree7ee87d336cf3b85b6429cba098329ac784e96092
parentd25a969458a98911a4d1ceb6ef2cef85d29f6a39
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