]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7edc37c1f9e60357c549cfcae7e9988d249e2833
treefc481d282b7c7e45972b9d3b6cd2e903cac409e6
parent702dc69b8ca4a92b4fafa922d132c87494225e40
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