From: Johan Hovold Date: Wed, 9 Mar 2016 11:20:33 +0000 (+0100) Subject: greybus: interface: add comment about early control-connection disable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60269b958ea127a46be9caf0deff931384c4dd2f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: interface: add comment about early control-connection disable Add comment about why the control connection is disabled early when the interface is already gone. Signed-off-by: Johan Hovold Reviewed-by: Jeffrey Carlyle Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index 2f3966f319bc..5c5c4221e531 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/staging/greybus/interface.c @@ -147,6 +147,10 @@ void gb_interface_remove(struct gb_interface *intf) struct gb_bundle *bundle; struct gb_bundle *next; + /* + * Disable the control-connection early to avoid operation timeouts + * when the interface is already gone. + */ if (intf->disconnected) gb_control_disable(intf->control);