Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
8f71a975 6471c003

+2
+2
drivers/staging/greybus/hd.h
··· 25 25 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id); 26 26 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id); 27 27 int (*cport_ping)(struct gb_host_device *hd, u16 cport_id); 28 + int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id, 29 + u8 phase, unsigned int timeout); 28 30 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id, 29 31 size_t peer_space, unsigned int timeout); 30 32 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id);