net/libertas: remove GPIO-CS handling in SPI interface code
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 4 Jun 2009 19:57:03 +0000 (21:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Jun 2009 17:27:50 +0000 (13:27 -0400)
commit4d1d49858c0a5a4fb1be4bc7972754cd640245ba
treefc481d282b7c7e45972b9d3b6cd2e903cac409e6
parent582241a08409c89b086774c60b55c1a1706a7e5d
net/libertas: remove GPIO-CS handling in SPI interface code

This removes the dependency on GPIO framework and lets the SPI host
driver handle the chip select. The SPI host driver is required to keep
the CS active for the entire message unless cs_change says otherwise.
This patch collects the two/three single SPI transfers into a message.
Also the delay in read path in case use_dummy_writes are not used is
moved into the SPI host driver.

Tested-by: Mike Rapoport <mike@compulab.co.il>
Tested-by: Andrey Yurovsky <andrey@cozybit.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/Kconfig
drivers/net/wireless/libertas/if_spi.c
include/linux/spi/libertas_spi.h