]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: protocol: send own protocol version while requesting it
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 12 Aug 2015 05:34:06 +0000 (11:04 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 13 Aug 2015 03:55:01 +0000 (20:55 -0700)
commit1cb5fa47c54ba045593c4dfede72338107ba2133
tree7a52a908b5c08541f89270e989c2590b0c14a412
parentd706ef8f1b2add4abbbeacbbaaf0c304b25f4476
greybus: protocol: send own protocol version while requesting it

The greybus specifications clearly say (for all protocols) that the
sender is responsible for sending the highest version of protocol it
supports, while it requests the same from the receiver.

But the greybus code never followed that.

Fix, this by always sending AP's version of the protocol, while
requesting the same from svc/module.

This also renames 'response' to 'version' in gb_protocol_get_version()
as it is used for both request/response.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h