projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6471c00
)
greybus: hd: add cport_shutdown callback
author
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 10 Aug 2016 10:58:45 +0000
(12:58 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Thu, 11 Aug 2016 12:13:07 +0000
(14:13 +0200)
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>
drivers/staging/greybus/hd.h
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/hd.h
b/drivers/staging/greybus/hd.h
index 67f4f3c7a8e648f4be8710319a0c919464d50ee7..1274224388ed51ec874397c3919e46dc444c2271 100644
(file)
--- 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);