diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2016-05-16 10:33:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-16 20:02:58 -0700 |
commit | 3a238fc7844f93c799283d8b822178af9638ff0c (patch) | |
tree | ba91a6f0908155ea222c59e9bbbe39e078b0f56b /drivers/staging/greybus/greybus_protocols.h | |
parent | 22e26a3a13503f3c35ed8bbb6a7e9e33ad2c6987 (diff) | |
download | op-kernel-dev-3a238fc7844f93c799283d8b822178af9638ff0c.zip op-kernel-dev-3a238fc7844f93c799283d8b822178af9638ff0c.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r-- | drivers/staging/greybus/greybus_protocols.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 0cddbb6..b98f02c 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -879,6 +879,7 @@ struct gb_spi_transfer { __u8 xfer_flags; #define GB_SPI_XFER_READ 0x01 #define GB_SPI_XFER_WRITE 0x02 +#define GB_SPI_XFER_INPROGRESS 0x04 } __packed; struct gb_spi_transfer_request { |