From: Vinod Koul <vinod.koul@intel.com>
To: Qiao Zhou <zhouqiao@marvell.com>
Cc: djbw@fb.com, zhangfei.gao@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dma: mmp_tdma: kill tasklet when free dma channel
Date: Wed, 12 Jun 2013 15:21:29 +0530 [thread overview]
Message-ID: <20130612095128.GT4107@intel.com> (raw)
In-Reply-To: <1370605240-19768-1-git-send-email-zhouqiao@marvell.com>
On Fri, Jun 07, 2013 at 07:40:40PM +0800, Qiao Zhou wrote:
> kill tasklet task when free dam channel, otherwise the task may
typo ^^^^
> run after related resource is released, then unknown things may
> happen.
Well, why would tasklet run when channel is freed. You are supposed to cleanup
the DMA channel on free. Ensure all transaction are aborted
Sounds like masking some issue
--
~Vinod
>
> Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
> ---
> drivers/dma/mmp_tdma.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
> index 43d5a6c..2622b2a 100644
> --- a/drivers/dma/mmp_tdma.c
> +++ b/drivers/dma/mmp_tdma.c
> @@ -333,6 +333,9 @@ static void mmp_tdma_free_chan_resources(struct dma_chan *chan)
>
> if (tdmac->irq)
> devm_free_irq(tdmac->dev, tdmac->irq, tdmac);
> +
> + tasklet_kill(&tdmac->tasklet);
> +
> mmp_tdma_free_descriptor(tdmac);
> return;
> }
> --
> 1.7.0.4
>
--
prev parent reply other threads:[~2013-06-12 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 11:40 [PATCH] dma: mmp_tdma: kill tasklet when free dma channel Qiao Zhou
2013-06-12 9:51 ` Vinod Koul [this message]
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=20130612095128.GT4107@intel.com \
--to=vinod.koul@intel.com \
--cc=djbw@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zhangfei.gao@gmail.com \
--cc=zhouqiao@marvell.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox