greybus: make op_cycle atomic (again)
authorAlex Elder <elder@linaro.org>
Wed, 3 Dec 2014 14:35:08 +0000 (08:35 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 3 Dec 2014 23:05:58 +0000 (15:05 -0800)
commit4afb7fd0154753711e7bc68790f6f5de8dbed39e
treeedd928a84fc6b3bb5e253aeb319e7a4e4f199ad0
parentafb2e1342e75b55be8834efc5b1c77f654572df8
greybus: make op_cycle atomic (again)

There's no need to protect updating a connections operation id cycle
counter with the operations spinlock.   That spinlock protects
connection lists, which do not interact with the cycle counter.
All that we require is that it gets updated atomically, and we
can express that requirement in its type.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/operation.c