]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: update UniPro Set Interface Power Mode operation to match spec
authorEli Sennesh <esennesh@leaflabs.com>
Mon, 16 May 2016 18:55:17 +0000 (14:55 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 24 May 2016 16:02:07 +0000 (09:02 -0700)
commit00606367141cf518e94d8354a02d298475de67e5
treef67b4564d86ba430fc3f23577abded5c8a7c2053
parentd7be800f7ae9398055509b3a83d0ea3118e9277f
greybus: update UniPro Set Interface Power Mode operation to match spec

Bring the gb_svc_intf_set_power_mode() up-to-date with the current Greybus
specification.  This largely involves adding more members to the structure
sent across the wire.  Also change the camera code to use the new
operation properly, with default values passed for the new necessary
arguments.  The correctness of these default values is confirmed via testing
and by asking Rob Johnson.

Testing Done: Took a picture with a camera module, received error code
when passing deliberately incorrect values for new parameters, got proper
-EIO and Greybus result code printed when operation stopped halfway
through.

Associated Firmware Changes: 6810-6812 on Gerrit for SW-1239, 6870 and
5612-5613 on Gerrit for SW-2945

Signed-off-by: Eli Sennesh <esennesh@leaflabs.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h