]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] SPI: per-transfer overrides for wordsize and clocking
authorImre Deak <imre.deak@nokia.com>
Fri, 17 Feb 2006 18:02:18 +0000 (10:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 May 2006 21:33:56 +0000 (14:33 -0700)
commitc0423f4a8a0eb1388df46fe0d2948b7ab2e3f190
tree0ef6066c4f2c0225517a6402bb04f4b4d56afd4d
parent4be8f9ac5e345c95b84dc10c0cd80fb517073271
[PATCH] SPI: per-transfer overrides for wordsize and clocking

Some protocols (like one for some bitmap displays) require different clock
speed or word size settings for each transfer in an SPI message. This adds
those parameters to struct spi_transfer.  They are to be used when they are
nonzero; otherwise the defaults from spi_device are to be used.

The patch also adds a setup_transfer callback to spi_bitbang, uses it for
messages that use those overrides, and implements it so that the pure
bitbanging code can help resolve any questions about how it should work.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/spi/spi_bitbang.c
include/linux/spi/spi.h
include/linux/spi/spi_bitbang.h