spi-gpio: allow operation without CS signal
authorMichael Buesch <mb@bu3sch.de>
Thu, 2 Apr 2009 23:57:07 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:51 +0000 (19:04 -0700)
commitbfb9bcdbda9a61bca469bf899a589918c60c4c18
tree40b28178c9d969c94e2039b27ac213cab5de0e79
parent8a0cecffeb52363a57257bbbbd58f4c4537a75bb
spi-gpio: allow operation without CS signal

Change spi-gpio so that it is possible to drive SPI communications over
GPIO without the need for a chipselect signal.

This is useful in very small setups where there's only one slave device
on the bus.

This patch does not affect existing setups.

I use this for a tiny communication channel between an embedded device and
a microcontroller.  There are not enough GPIOs available for chipselect
and it's not needed anyway in this case.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_gpio.c
include/linux/spi/spi_gpio.h