summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold2016-08-10 12:58:45 +0200
committerGreg Kroah-Hartman2016-08-11 14:13:07 +0200
commit8f71a975d4150abf8ab1fbea65b51e73ff9936d6 (patch)
treef6ee33ca5e4329350b38d05d173bdd922e0b3188 /drivers/staging/greybus/hd.h
parentgreybus: hd/es2: add cport_clear callback and ARPC (diff)
downloadkernel-qcow2-linux-8f71a975d4150abf8ab1fbea65b51e73ff9936d6.tar.gz
kernel-qcow2-linux-8f71a975d4150abf8ab1fbea65b51e73ff9936d6.tar.xz
kernel-qcow2-linux-8f71a975d4150abf8ab1fbea65b51e73ff9936d6.zip
greybus: hd: add cport_shutdown callback
Add a host-device cport_shutdown callback which will be called as part of the new connection tear-down sequence for offloaded connection in order to do a cport_shutdown operation on behalf of the AP. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Sandeep Patil <sspatil@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hd.h')
-rw-r--r--drivers/staging/greybus/hd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index 67f4f3c7a8e6..1274224388ed 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -25,6 +25,8 @@ struct gb_hd_driver {
int (*cport_connected)(struct gb_host_device *hd, u16 cport_id);
int (*cport_flush)(struct gb_host_device *hd, u16 cport_id);
int (*cport_ping)(struct gb_host_device *hd, u16 cport_id);
+ int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id,
+ u8 phase, unsigned int timeout);
int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id,
size_t peer_space, unsigned int timeout);
int (*cport_clear)(struct gb_host_device *hd, u16 cport_id);