mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
greybus: interface: send deactivate prepare when interface is disabled
The AP Interface shall exchange a Greybus Control Interface Deactivate Prepare Operation with the Interface being powered down. Testing Done: - Check for the return code after sending the deactivate prepare operation Signed-off-by: David Lin <dtwlin@google.com> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Alex Elder <elder@linaro.org>
This commit is contained in:
parent
707a5c42ce
commit
576bffb5a8
1 changed files with 3 additions and 0 deletions
|
|
@ -861,6 +861,9 @@ void gb_interface_disable(struct gb_interface *intf)
|
|||
list_for_each_entry_safe(bundle, next, &intf->bundles, links)
|
||||
gb_bundle_destroy(bundle);
|
||||
|
||||
if (!intf->mode_switch && !intf->disconnected)
|
||||
gb_control_interface_deactivate_prepare(intf->control);
|
||||
|
||||
gb_timesync_interface_remove(intf);
|
||||
gb_control_del(intf->control);
|
||||
gb_control_disable(intf->control);
|
||||
|
|
|
|||
Loading…
Reference in a new issue