WSL2-Linux-Kernel/include/linux/spi
David Brownell 4b1badf5d9 [PATCH] SPI: define null tx_buf to mean "shift out zeroes"
Some issues were recently turned up with the current specification of what
it means for spi_transfer.tx_buf to be null, as part of transfers which are
(from the SPI protocol driver perspective) pure reads.

Specifically, that it seems better to change the TX behaviour there from
"undefined" to "will shift zeroes".  This lets protocol drivers (like the
ads7846 driver) depend on that behavior.  It's what most controller drivers
in the tree are already doing (with one exception and one case of driver
wanting-to-oops), it's what Microwire hardware will necessarily be doing,
and it removes an issue whereby certain security audits would need to
define such a value anyway as part of removing covert channels.

This patch changes the specification to require shifting zeroes, and
updates all currently merged SPI controller drivers to do so.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-30 10:56:42 -08:00
..
ads7846.h Input: ads7846 - improve filtering for thumb press accuracy 2006-04-26 00:13:18 -04:00
flash.h [PATCH] spi: M25 series SPI flash 2006-01-13 16:29:55 -08:00
spi.h [PATCH] SPI: define null tx_buf to mean "shift out zeroes" 2006-12-30 10:56:42 -08:00
spi_bitbang.h [PATCH] SPI: Renamed bitbang_transfer_setup to spi_bitbang_setup_transfer and export it 2006-05-16 14:33:57 -07:00