greybus: fix forced disable of offloaded connections
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 9 Jun 2016 16:42:19 +0000 (18:42 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 9 Jun 2016 19:12:43 +0000 (12:12 -0700)
commit82278bfea04c9cda1e01ac4fe41938cc3f5f1252
treea3766cbb45a9b8ae84149da68a7d50de9232f9ab
parentc0b06a6d4e07902f7e1eef88d242901c0a1faf03
greybus: fix forced disable of offloaded connections

Core disables all connections for bundles whose interface is already
gone in order to avoid unnecessary operation timeouts during driver
disconnect.

This isn't needed for offloaded connections (as the AP can not send
requests over such connections), and in fact must not be done since only
the bundle driver currently knows how to disable I/O on such connections
in a class-specific way (this may eventually be handled by core though).

Also add comment about why connection are disabled early on forced
disconnect.

Testing Done: Tested on EVT2.

Reported-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c