From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dma: imx: correct sdmac->status for cyclic dma tx
Date: Sun, 1 Jun 2014 17:10:07 +0530 [thread overview]
Message-ID: <20140601114007.GQ21128@intel.com> (raw)
In-Reply-To: <1400116933-14063-1-git-send-email-jiada_wang@mentor.com>
On Wed, May 14, 2014 at 06:22:13PM -0700, jiada_wang at mentor.com wrote:
> From: Jiada Wang <jiada_wang@mentor.com>
>
> In cyclic dma tx's handler sdma_handle_channel_loop(),
> SDMA channel statue is set to either DMA_ERROR or DMA_IN_PROGRESS
> based on each period's status. This has the following issues:
>
> 1) If one period's status is BD_RROR, then channel status
> will be set to DMA_ERROR, but it will be overwritten to DMA_IN_PROGRESS
> if the following periods are OK.
> 2) DMA client may call sdma_control(DMA_TERMINATE_ALL) to stop the cyclic dma
> operation, sdma channel status will be set to DMA_ERROR,
> but if after this handler is called, then again the channel status will be overwritten
> to DMA_IN_PROGRESS. Then the following dmaengine_prep_dma_cyclic() will always fail,
> as channel status is DMA_IN_PROGRESS.
>
> As in cyclic dma tx, channel status will be initially set to DMA_IN_PROGRESS,
> driver only needs to change it to DMA_ERROR, when something wrong happens
> (one period status is wrong, or stoped by client explicitly).
Applied, thanks
--
~Vinod
next prev parent reply other threads:[~2014-06-01 11:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 1:22 [PATCH] dma: imx: correct sdmac->status for cyclic dma tx jiada_wang at mentor.com
2014-06-01 11:40 ` Vinod Koul [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-12-13 5:52 jiada_wang at mentor.com
2014-05-14 21:42 ` Fabio Estevam
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=20140601114007.GQ21128@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).