summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorGeorgi Dobrev <gdobrev@mm-sol.com>2016-08-09 14:37:32 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-10 15:44:03 +0200
commit57fa2de1e5671c3632c5666ce08e03f1e3dc0242 (patch)
treed55ded5b87d145f9eb8e546f438b7c7adcb118aa /drivers/staging/greybus/greybus_protocols.h
parent127bada1a1951d9624c08eeab99234ced0df900e (diff)
downloadop-kernel-dev-57fa2de1e5671c3632c5666ce08e03f1e3dc0242.zip
op-kernel-dev-57fa2de1e5671c3632c5666ce08e03f1e3dc0242.tar.gz
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>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index d43b367..19ca1db 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -1018,6 +1018,7 @@ struct gb_spi_transfer_response {
#define GB_SVC_TYPE_INTF_ACTIVATE 0x27
#define GB_SVC_TYPE_INTF_RESUME 0x28
#define GB_SVC_TYPE_INTF_MAILBOX_EVENT 0x29
+#define GB_SVC_TYPE_INTF_OOPS 0x2a
/* Greybus SVC protocol status values */
#define GB_SVC_OP_SUCCESS 0x00
@@ -1357,6 +1358,12 @@ struct gb_svc_intf_mailbox_event_request {
} __packed;
/* intf_mailbox_event response has no payload */
+struct gb_svc_intf_oops_request {
+ __u8 intf_id;
+ __u8 reason;
+} __packed;
+/* intf_oops response has no payload */
+
/* RAW */
OpenPOWER on IntegriCloud