]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: connection: add unidirectional enabled state
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:07 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:12:40 +0000 (12:12 -0800)
commit570dfa7c55a76258b03a2d93f9db12dacc2ad3c6
treeb4b4f11f9c7b0e86577909d615baa8256959eb28
parent23268785b288c25ab5ee2ec523982546b5353880
greybus: connection: add unidirectional enabled state

Add a new connection state ENABLED_TX in which only outgoing operations
are allowed.

This allows drivers to query the device during probe before allocating
their state containers without having to worry about racing incoming
requests.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/operation.c