greybus: core: disable incoming operations pre disconnect
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:09 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commitfa8369c130098da3276bafec425822aa74971905
treea19da4eba81093b11fbc073da3bd113506850e5e
parentbeb6b7fede005ae351619b30a8940a04e797b9b2
greybus: core: disable incoming operations pre disconnect

Disable and flush incoming operations before calling driver disconnect.

Bundle drivers are still responsible for disabling their connections
in their disconnect callback.

Note that specifically the legacy protocols must have incoming
operations disabled when their connection_exit callback is called as
that is where their state is deallocated.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c