From: Mark Brown Date: Tue, 28 Jan 2014 20:17:03 +0000 (+0000) Subject: spi: Provide core support for full duplex devices X-Git-Tag: v3.15-rc1~147^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2eba9bd0a6447dfbc01635e4cd0689f5f2bdad;p=pandora-kernel.git spi: Provide core support for full duplex devices It is fairly common for SPI devices to require that one or both transfer directions is always active. Currently drivers open code this in various ways with varying degrees of efficiency. Start factoring this out by providing flags SPI_MASTER_MUST_TX and SPI_MASTER_MUST_RX. These will cause the core to provide buffers for the requested direction if none are specified in the underlying transfer. Currently this is fairly inefficient since we actually allocate a data buffer which may get large, support for mapping transfers using a scatterlist will allow us to avoid this for DMA based transfers. Signed-off-by: Mark Brown --- Reading git-diff-tree failed