From: Christian Gromm Date: Mon, 28 Sep 2015 15:18:31 +0000 (+0200) Subject: staging: most: remove aim reset X-Git-Tag: Ubuntu-5.10.0-12.13~13817^2~1770 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bf358040c448af3fc6446bcf0d998d2fd420a7fc;p=mirror_ubuntu-hirsute-kernel.git 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: Andrey Shvetsov Signed-off-by: Christian Gromm Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c index eb4e15938875..5d996285fdee 100644 --- a/drivers/staging/most/mostcore/core.c +++ b/drivers/staging/most/mostcore/core.c @@ -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);