]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: spi: add inprogress bit to xfer_flags
authorRui Miguel Silva <rui.silva@linaro.org>
Mon, 16 May 2016 09:33:21 +0000 (10:33 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 17 May 2016 03:02:58 +0000 (20:02 -0700)
commit3a238fc7844f93c799283d8b822178af9638ff0c
treeba91a6f0908155ea222c59e9bbbe39e078b0f56b
parent22e26a3a13503f3c35ed8bbb6a7e9e33ad2c6987
greybus: spi: add inprogress bit to xfer_flags

When a SPI transfer needs to be split by more than one greybus spi
transfer operation, we need to indicate it so the controller can handle
the chip select lines correctly.

Add a new bit to indicate it, GB_SPI_XFER_INPROGRESS, and create an
helper function to calculate when the transfer is done. As we need this
information also in other places.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/spilib.c