Commit bf358040 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: remove aim reset



This patch partly reverts a modification of function most_stop_channel()
that is trying to reset an established link between an AIM and an HDM in
all suitable places. But since the function most_stop_channel() is
stopping the data transfer it is the wrong place to do so.

Signed-off-by: default avatarAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec5c00af
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1555,11 +1555,6 @@ int most_stop_channel(struct most_interface *iface, int id)
	if (!c->is_started)
		return 0;

	/* FIXME: we need to know calling AIM to reset only one link */
	c->first_aim = NULL;
	c->second_aim = NULL;
	/* do not go into recursion calling aim->disconnect_channel */

	mutex_lock(&c->stop_task_mutex);
	if (c->hdm_enqueue_task)
		kthread_stop(c->hdm_enqueue_task);