From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v8 04/16] DMA: PL330: Remove the start operation for handling DMA_TERMINATE_ALL command
Date: Tue, 6 Sep 2011 13:27:18 +0100 [thread overview]
Message-ID: <20110906122718.GP6619@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CABb+yY1QN9CzT=CGJ1n-pk8_QyeEK1Sx=HT2n8SMB9O-XrsXDg@mail.gmail.com>
On Tue, Sep 06, 2011 at 05:52:19PM +0530, Jassi Brar wrote:
> On Fri, Sep 2, 2011 at 6:14 AM, Boojin Kim <boojin.kim@samsung.com> wrote:
> > Origianl code carries out the start operation after flush operation.
> > But start operation is not required for DMA_TERMINATE_ALL command.
> > So, This patch removes the unnecessary start operation and only carries out
> > the flush oeration for handling DMA_TERMINATE_ALL command.
>
> Not exactly. The 'start' is impotent when called from this path because there
> is nothing left queued after the call to 'flush'.
> pl330_tasklet() is called because that is a common function that does the
> house-keeping acc to what's presently in 'work' and 'done' lists.
>
> Though as a side-effect, your patch does avoid doing callbacks on submitted
> xfers during DMA_TERMINATE_ALL - which may or may not be the right thing
> to do.
It is defined that DMA_TERMINATE_ALL does not call the callbacks:
1. int dmaengine_terminate_all(struct dma_chan *chan)
This causes all activity for the DMA channel to be stopped, and may
discard data in the DMA FIFO which hasn't been fully transferred.
No callback functions will be called for any incomplete transfers.
next prev parent reply other threads:[~2011-09-06 12:27 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-02 0:44 [PATCH v8 00/16] To use DMA generic APIs for Samsung DMA Boojin Kim
2011-09-02 0:44 ` [PATCH v8 01/16] DMA: PL330: Add support runtime PM for PL330 DMAC Boojin Kim
2011-09-02 0:44 ` [PATCH v8 02/16] DMA: PL330: Update PL330 DMA API driver Boojin Kim
2011-09-02 0:44 ` [PATCH v8 03/16] DMA: PL330: Support DMA_SLAVE_CONFIG command Boojin Kim
2011-09-02 0:44 ` [PATCH v8 04/16] DMA: PL330: Remove the start operation for handling DMA_TERMINATE_ALL command Boojin Kim
2011-09-05 13:44 ` Vinod Koul
2011-09-06 12:22 ` Jassi Brar
2011-09-06 12:27 ` Russell King - ARM Linux [this message]
2011-09-06 12:40 ` Jassi Brar
2011-09-07 7:23 ` Kukjin Kim
2011-09-07 7:49 ` Jassi Brar
2011-09-08 0:59 ` Boojin Kim
2011-09-02 0:44 ` [PATCH v8 05/16] DMA: PL330: Add DMA_CYCLIC capability Boojin Kim
2011-09-02 0:44 ` [PATCH v8 06/16] ARM: SAMSUNG: Update to use PL330-DMA driver Boojin Kim
2011-09-02 0:44 ` [PATCH v8 07/16] ARM: SAMSUNG: Add common DMA operations Boojin Kim
2011-09-02 0:44 ` [PATCH v8 08/16] ARM: EXYNOS4: Use generic DMA PL330 driver Boojin Kim
2011-09-02 0:44 ` [PATCH v8 09/16] ARM: S5PV210: " Boojin Kim
2011-09-02 0:44 ` [PATCH v8 10/16] ARM: S5PC100: " Boojin Kim
2011-09-02 0:44 ` [PATCH v8 11/16] ARM: S5P64X0: " Boojin Kim
2011-09-02 0:44 ` [PATCH v8 12/16] ARM: SAMSUNG: Remove S3C-PL330-DMA driver Boojin Kim
2011-09-02 0:44 ` [PATCH v8 13/16] spi/s3c64xx: Add support DMA engine API Boojin Kim
2011-09-02 0:44 ` [PATCH v8 14/16] spi/s3c64xx: Merge dma control code Boojin Kim
2011-09-02 0:44 ` [PATCH v8 15/16] ASoC: Samsung: Update DMA interface Boojin Kim
2011-09-02 0:44 ` [PATCH v8 16/16] ARM: SAMSUNG: Remove Samsung specific enum type for dma direction Boojin Kim
2011-09-14 6:01 ` [PATCH v8 00/16] To use DMA generic APIs for Samsung DMA Vinod Koul
2011-09-14 6:30 ` Jassi Brar
2011-09-14 11:17 ` Vinod Koul
2011-09-14 11:33 ` Jassi Brar
2011-09-19 2:59 ` Vinod Koul
2011-09-19 10:23 ` Kukjin Kim
2011-09-21 6:22 ` Vinod Koul
2011-09-19 10:36 ` Jassi Brar
2011-09-14 11:29 ` Kukjin Kim
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=20110906122718.GP6619@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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).