From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/3] dma: Add Freescale eDMA engine driver support
Date: Tue, 6 Aug 2013 09:55:14 +0530 [thread overview]
Message-ID: <20130806042514.GR29095@intel.com> (raw)
In-Reply-To: <B56CDBE15CE27145A4B77D2D24263E851FD63C@039-SN1MPN1-004.039d.mgd.msft.net>
On Tue, Aug 06, 2013 at 01:24:31AM +0000, Lu Jingchang-B35083 wrote:
> > -----Original Message-----
> > From: Vinod Koul [mailto:vinod.koul at intel.com]
> > Sent: Tuesday, August 06, 2013 12:35 AM
> > To: Lu Jingchang-B35083
> > Cc: djbw at fb.com; shawn.guo at linaro.org; linux-kernel at vger.kernel.org;
> > linux-arm-kernel at lists.infradead.org; Wang Huan-B18965; Li Xiaochun-
> > B41219
> > Subject: Re: [PATCH v2 3/3] dma: Add Freescale eDMA engine driver support
> > > +
> > > +static void fsl_edma_free_desc(struct virt_dma_desc *vdesc) {
> > > + struct fsl_edma_desc *fsl_desc;
> > > + int i;
> > > +
> > > + fsl_desc = to_fsl_edma_desc(vdesc);
> > > + for (i = 0; i < fsl_desc->n_tcds; i++)
> > > + dma_pool_free(fsl_desc->echan->tcd_pool,
> > > + fsl_desc->tcd[i].vtcd,
> > > + fsl_desc->tcd[i].ptcd);
> > > + kfree(fsl_desc);
> > should this be called with lock held or not?
> [Lu Jingchang-B35083]
> The desc list to be freed is got with lock held, and the free for each desc is independent, and the lock is not needed. Thanks.
Would be apt to add this comment in the code, so that people know this function
needs to be always called with lock held!
Pls add this stuff in next rev of the patch
~Vinod
next prev parent reply other threads:[~2013-08-06 4:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 6:07 [PATCH v2 2/3] ARM: dts: vf610: Add eDMA node Jingchang Lu
2013-08-05 6:07 ` [PATCH v2 3/3] dma: Add Freescale eDMA engine driver support Jingchang Lu
2013-08-05 7:53 ` Lothar Waßmann
2013-08-05 9:44 ` Lu Jingchang-B35083
2013-08-05 15:45 ` Vinod Koul
2013-08-05 16:34 ` Vinod Koul
2013-08-06 1:24 ` Lu Jingchang-B35083
2013-08-06 4:25 ` Vinod Koul [this message]
2013-08-06 5:15 ` Lu Jingchang-B35083
2013-08-05 10:32 ` [PATCH v2 2/3] ARM: dts: vf610: Add eDMA node Sascha Hauer
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=20130806042514.GR29095@intel.com \
--to=vinod.koul@intel.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).