greybus: firmware: Add 'status' byte to backend fw version response
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 25 Jul 2016 21:38:08 +0000 (14:38 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 Jul 2016 23:16:15 +0000 (16:16 -0700)
commit5e10f0047a1b79e6c8ac1ee0e9a0165e7d0bc7d6
tree6cdedb0ee56fc7dc3452708208658c1f9ef7e0fa
parent911415ae6ee29cb76e018e8df8715c743a3a3d63
greybus: firmware: Add 'status' byte to backend fw version response

The backend processor may not be ready to return the version of firmware
it is running by the time AP requests for it. The greybus specification
is updated to return 1-byte 'status' to return the error type, RETRY is
one of them.

This patch implements that in greybus now.

Note that the version structure was common across interface and backend
version requests earlier, but that is changing as well.

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