greybus: connection: add connection-state locking
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 14 Jul 2015 13:43:30 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 15 Jul 2015 19:39:13 +0000 (12:39 -0700)
commitcad09a8f8ce843aa11f9a6a8a7aa5c6d6591147b
treebaf0a48ef28e1bb478d688ce52572972e7b21e68
parent886c6069bc0e16b7215b326831478ed700451038
greybus: connection: add connection-state locking

Add locking, and the implied barriers, to connection-state updates.

This will be used to fix a number of races in the operations and
connection-tear-down implementations.

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