greybus: spi: fix message transfer over greybus
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 20 Apr 2016 13:40:22 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 20 Apr 2016 23:34:00 +0000 (08:34 +0900)
commit0928b2e4401cebd7fd2b8aebc41be60dbe4c2ef3
tree381efd08b643dbe86b4aeefe5167bef4373af231
parent192c70dcf6c6f8c39a108f9ba56e916808f23cca
greybus: spi: fix message transfer over greybus

The actual implementation of transfer_one_message have problems with
some cases in the possible transfer options. We try to maximize the
number of spi transfers in one greybus operation and need to save state
until the full message is dispatch over greybus.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Tested-by: Philip Yang <philipy@bsquare.com>
Tested-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/spi.c