greybus: spi: Add runtime_pm support
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 14 Jul 2016 20:13:00 +0000 (15:13 -0500)
committerAlex Elder <elder@linaro.org>
Thu, 14 Jul 2016 21:53:55 +0000 (16:53 -0500)
commit4c615dcc6a9d910f8f68e4b57889b628e80165d4
tree539525646534ef8b25c78c6a47477e66288b539c
parentafa807b8ba23952b471abb70716076bb3c98657c
greybus: spi: Add runtime_pm support

Add runtime operations to the spi driver so that the
module is woken up when an spi transfer is started
and put back to sleep when the transfer is done.

Testing Done: Let the module enter standby and initiate
an spi operation. The operation wakes up the module
and succeeds.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/kernel_ver.h
drivers/staging/greybus/spi.c
drivers/staging/greybus/spilib.c