greybus: greybus-driver: Add intf_oops operation
authorGeorgi Dobrev <gdobrev@mm-sol.com>
Tue, 9 Aug 2016 21:37:32 +0000 (14:37 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Aug 2016 13:44:03 +0000 (15:44 +0200)
commit57fa2de1e5671c3632c5666ce08e03f1e3dc0242
treed55ded5b87d145f9eb8e546f438b7c7adcb118aa
parent127bada1a1951d9624c08eeab99234ced0df900e
greybus: greybus-driver: Add intf_oops operation

Add intf_oops operation to SVC Protocol. This
operation will notify the AP about a fatal error
in a module. The request has two arguments:
    -u8 intf - the interface in question
    -u8 reason - reason of the error
The response has no payload.
Upon receiving the Request, the driver disables
the Interface.

Signed-off-by: Georgi Dobrev <gdobrev@mm-sol.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ashwin Chaugule <ashwinch@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c