]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: cancel whole operation on interrupt
authorAlex Elder <elder@linaro.org>
Sat, 22 Nov 2014 01:29:18 +0000 (19:29 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 22 Nov 2014 03:36:42 +0000 (19:36 -0800)
commit7035833f081cefc3953a6a72a61767967f59a59e
tree387be9bcaafa7a221040f7439efdd217816cc534
parentf68c05c0216e09ed93b12894747d8583dc5b8f8e
greybus: cancel whole operation on interrupt

Cancel the operation--not just the request message--if waiting
for a synchronous operation to complete is interrupted.  Return
the operation result (which in that case will be -EINTR).  The
cancelation will result in the normal operation completion path
being taken before returning.

Make gb_operation_wait() private, since it's only ever used for
for synchronous operations.

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