diff options
author | Alex Elder <elder@linaro.org> | 2014-11-21 19:29:18 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2014-11-21 19:36:42 -0800 |
commit | 7035833f081cefc3953a6a72a61767967f59a59e (patch) | |
tree | 387be9bcaafa7a221040f7439efdd217816cc534 /drivers/staging/greybus/operation.h | |
parent | f68c05c0216e09ed93b12894747d8583dc5b8f8e (diff) |
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>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index d24e5e0d18f0..c391b28a4ca7 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -99,7 +99,6 @@ int gb_operation_request_send(struct gb_operation *operation, int gb_operation_response_send(struct gb_operation *operation); void gb_operation_cancel(struct gb_operation *operation, int errno); -int gb_operation_wait(struct gb_operation *operation); int gb_operation_status_map(u8 status); |