1
0
Fork 0

greybus: svc: fix version response

The SVC-protocol driver currently accepts the version offered by the
SVC, but still responded with a hard-coded version.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2015-09-15 10:48:00 +02:00 committed by Greg Kroah-Hartman
parent c09db1820f
commit 59832931cb
1 changed files with 3 additions and 2 deletions

View File

@ -278,8 +278,9 @@ static int gb_svc_version_request(struct gb_operation *op)
}
version = op->response->payload;
version->major = GB_SVC_VERSION_MAJOR;
version->minor = GB_SVC_VERSION_MINOR;
version->major = connection->module_major;
version->minor = connection->module_minor;
return 0;
}