Commit 1d771fe4 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: operation: add support for incoming unidirectional operations

Add support for incoming, unidirectional operations where the sender of
a request does not care about a response.

Unidirectional operations have an operation id of 0.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent d67a39ab
......@@ -686,6 +686,10 @@ int gb_operation_response_send(struct gb_operation *operation, int errno)
return -EIO; /* Shouldn't happen */
}
/* Sender of request does not care about response. */
if (!operation->id)
return 0;
if (!operation->response) {
if (!gb_operation_response_alloc(operation, 0)) {
dev_err(&connection->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment