]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: es2: Implement APBridgeA RPC (ARPC)
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 7 Jul 2016 12:41:00 +0000 (07:41 -0500)
committerAlex Elder <elder@linaro.org>
Mon, 11 Jul 2016 20:54:17 +0000 (15:54 -0500)
commitc14118a8411c4d7ad1dd6dd501beb33ae1268b08
tree13e1d5d7c583f3419bf3c9e790ba416d299d6792
parent9d9d3777a9db5c0773d270e51b65c1252856d95e
greybus: es2: Implement APBridgeA RPC (ARPC)

Implement ARPC. In first time, we are going to use it to
implement new request but the goal is to update all existing vendor
request to use ARPC.

In addition, Convert the current USB Vendor request for CPort Reset
to ARPC so that we can be sure that the port has been fully reset
by the time the request completes.

Testing Done:
  AP can reset APBA Cports by using the ARPC command.
  In addition, tested with a hacked firmware that cause error during
  the Cport reset, and Greybus printed the error "failed to reset cport".

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/es2.c
drivers/staging/greybus/greybus_protocols.h