All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Gromm <christian.gromm@microchip.com>
To: gregkh@linuxfoundation.org
Cc: Christian Gromm <christian.gromm@microchip.com>,
	driverdev-devel@linuxdriverproject.org
Subject: [PATCH 17/28] staging: most: remove code to destroy channel
Date: Tue, 22 Dec 2015 10:52:58 +0100	[thread overview]
Message-ID: <1450777989-5551-18-git-send-email-christian.gromm@microchip.com> (raw)
In-Reply-To: <1450777989-5551-1-git-send-email-christian.gromm@microchip.com>

This patch removes unnecessary code to destroy channel objects. It is
needed, because function most_stop_channel, which is indirectly
triggered by function most_deregister_interface, already destroys the
channels.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
---
This patch has been resent on behalf of Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 drivers/staging/most/mostcore/core.c |   13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c
index daae42d..31ea3a5 100644
--- a/drivers/staging/most/mostcore/core.c
+++ b/drivers/staging/most/mostcore/core.c
@@ -1803,19 +1803,6 @@ void most_deregister_interface(struct most_interface *iface)
 		c->aim1.ptr = NULL;
 	}
 
-	list_for_each_entry(c, &i->channel_list, list) {
-		if (c->aim0.refs + c->aim1.refs <= 0)
-			continue;
-
-		mutex_lock(&c->stop_task_mutex);
-		if (c->hdm_enqueue_task)
-			kthread_stop(c->hdm_enqueue_task);
-		c->hdm_enqueue_task = NULL;
-		mutex_unlock(&c->stop_task_mutex);
-
-		if (iface->poison_channel(iface, c->channel_id))
-			pr_err("Can't poison channel %d\n", c->channel_id);
-	}
 	ida_simple_remove(&mdev_id, i->dev_id);
 	list_del(&i->list);
 	destroy_most_inst_obj(i);
-- 
1.7.9.5

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

  parent reply	other threads:[~2015-12-22  9:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22  9:52 [PATCH 00/28] staging: most: bug-fixes and clean-up Christian Gromm
2015-12-22  9:52 ` [PATCH 01/28] staging: most: remove unnecessary keep_mbo variable Christian Gromm
2015-12-22  9:52 ` [PATCH 02/28] staging: most: rename variables Christian Gromm
2015-12-22  9:52 ` [PATCH 03/28] staging: most: simplify expression Christian Gromm
2015-12-22  9:52 ` [PATCH 04/28] staging: most: unify types Christian Gromm
2015-12-22  9:52 ` [PATCH 05/28] staging: most: use min_t Christian Gromm
2015-12-22  9:52 ` [PATCH 06/28] staging: most: fix mbo leak Christian Gromm
2015-12-22  9:52 ` [PATCH 07/28] staging: most: fix tracking of MBO offset Christian Gromm
2015-12-22  9:52 ` [PATCH 08/28] staging: most: use readl and writel functions Christian Gromm
2015-12-22  9:52 ` [PATCH 09/28] staging: most: remove function destroy_most_c_obj Christian Gromm
2015-12-22  9:52 ` [PATCH 10/28] staging: most: add missing call to ida_simple_remove Christian Gromm
2015-12-22  9:52 ` [PATCH 11/28] staging: most: move call to disconnect_channel callback Christian Gromm
2015-12-22  9:52 ` [PATCH 12/28 v2] staging: most: move initialization of pointer Christian Gromm
2015-12-22  9:52 ` [PATCH 13/28] staging: most: move mutex Christian Gromm
2015-12-22  9:52 ` [PATCH 14/28] staging: most: move channel disconnect to function most_deregister_interface Christian Gromm
2015-12-22  9:52 ` [PATCH 15/28] staging: most: remove tainted flag Christian Gromm
2015-12-22  9:52 ` [PATCH 16/28] staging: most: remove reference counter Christian Gromm
2015-12-22  9:52 ` Christian Gromm [this message]
2015-12-22  9:52 ` [PATCH 18/28] staging: most: remove redundant mutexes Christian Gromm
2015-12-22  9:53 ` [PATCH 19/28] staging: most: remove redundant call to wake_up_interruptible Christian Gromm
2015-12-22  9:53 ` [PATCH 20/28] staging: most: encapsulate shared code Christian Gromm
2015-12-22  9:53 ` [PATCH 21/28] staging: most: fix retrieval of buffer availability Christian Gromm
2015-12-24 16:57   ` Sudip Mukherjee
2016-01-12 12:26     ` Christian Gromm
2015-12-22  9:53 ` [PATCH 22/28] staging: most: rename variable channel Christian Gromm
2015-12-22  9:53 ` [PATCH 23/28] staging: most: fix race conditions Christian Gromm
2015-12-22  9:53 ` [PATCH 24/28] staging: most: change type of access_ref Christian Gromm
2015-12-22  9:53 ` [PATCH 25/28] staging: most: remove stacked_mbo Christian Gromm
2015-12-22  9:53 ` [PATCH 26/28 v2] staging: most: rearrange function aim_write Christian Gromm
2015-12-22  9:53 ` [PATCH 27/28 v2] staging: most: add statistics for dropped packets Christian Gromm
2015-12-22  9:53 ` [PATCH 28/28] staging: most: remove 2nd forward declaration of struct most_aim Christian Gromm
  -- strict thread matches above, loose matches on Subject: below --
2015-11-18 12:43 [PATCH 00/28] staging: most: bug-fixes and clean-up Christian Gromm
2015-11-18 12:43 ` [PATCH 17/28] staging: most: remove code to destroy channel Christian Gromm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1450777989-5551-18-git-send-email-christian.gromm@microchip.com \
    --to=christian.gromm@microchip.com \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.