greybus: arche-platform: Enter ACTIVE state only from OFF state
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Tue, 24 May 2016 13:02:03 +0000 (18:32 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 26 May 2016 05:36:45 +0000 (22:36 -0700)
commit0b1283e33f7a38645c9d060ce2e2b24a44e3b125
tree15f1a7d7c41272e6bc23b20c2d8cef9ea720b032
parentc61a8b49846ecc11f7959f573b9548f859bc73a5
greybus: arche-platform: Enter ACTIVE state only from OFF state

Make sure that, transition to active state happens only from OFF state.
Instead of imposing the restriction to user-space, driver internally
switches to OFF state and then to ACTIVE state.

Testing Done: Tested on EVT1.5 platform.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Tested-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-platform.c