greybus: core: disable bundle connections on hot-unplug
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:18 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commit47a2e6769e8194da5570eaed7fc43f5abec18809
treed0993e265f38f6eea83ad74c4cbfe4e5f3a31fb0
parent01547770e6fc283ce74944415fc069d287de082a
greybus: core: disable bundle connections on hot-unplug

Disable bundle connections in core before calling driver disconnect in
case the interface is already gone.

This avoids unnecessary timeouts on hot-unplug when a driver does I/O in
its disconnect callback.

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