From: vkoul@kernel.org (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] dmaengine: xilinx_dma: Refactor axidma channel validation
Date: Sun, 11 Nov 2018 15:59:47 +0530 [thread overview]
Message-ID: <20181111102947.GG12092@vkoul-mobl> (raw)
In-Reply-To: <1538241480-13844-3-git-send-email-radhey.shyam.pandey@xilinx.com>
On 29-09-18, 11:17, Radhey Shyam Pandey wrote:
> In axidma start_transfer, prefer checking channel states before
> other params i.e pending_list. No functional change.
There needs to be proper reason rather than a preference, can you
explain why
>
> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
> ---
> Changes for v2:
> Modified the commit message to mark it as non-functional change.
> ---
> drivers/dma/xilinx/xilinx_dma.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c
> index 06d1632..a37871e 100644
> --- a/drivers/dma/xilinx/xilinx_dma.c
> +++ b/drivers/dma/xilinx/xilinx_dma.c
> @@ -1271,10 +1271,10 @@ static void xilinx_dma_start_transfer(struct xilinx_dma_chan *chan)
> if (chan->err)
> return;
>
> - if (list_empty(&chan->pending_list))
> + if (!chan->idle)
> return;
>
> - if (!chan->idle)
> + if (list_empty(&chan->pending_list))
> return;
>
> head_desc = list_first_entry(&chan->pending_list,
> --
> 1.7.1
--
~Vinod
next prev parent reply other threads:[~2018-11-11 10:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-29 17:17 [PATCH v2 0/4] dmaengine: xilinx_dma: Minor fix and refactoring Radhey Shyam Pandey
2018-09-29 17:17 ` [PATCH v2 1/4] dmaengine: xilinx_dma: Refactor axidma channel allocation Radhey Shyam Pandey
2018-09-29 17:17 ` [PATCH v2 2/4] dmaengine: xilinx_dma: Refactor axidma channel validation Radhey Shyam Pandey
2018-11-11 10:29 ` Vinod Koul [this message]
2018-11-15 2:57 ` Radhey Shyam Pandey
2018-09-29 17:17 ` [PATCH v2 3/4] dmaengine: xilinx_dma: Introduce helper macro for preparing dma address Radhey Shyam Pandey
2018-10-19 10:37 ` Appana Durga Kedareswara Rao
2018-09-29 17:18 ` [PATCH v2 4/4] dmaengine: xilinx_dma: Fix 64-bit simple CDMA transfer Radhey Shyam Pandey
2018-10-19 10:38 ` Appana Durga Kedareswara Rao
2018-11-11 10:34 ` [PATCH v2 0/4] dmaengine: xilinx_dma: Minor fix and refactoring Vinod Koul
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=20181111102947.GG12092@vkoul-mobl \
--to=vkoul@kernel.org \
--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