DMA Engine development
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: dmaengine@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH 1/2] dmaengine: axi-dmac: Discover length alignment requirement
Date: Tue, 21 May 2019 14:30:42 +0530	[thread overview]
Message-ID: <20190521090042.GC15118@vkoul-mobl> (raw)
In-Reply-To: <20190521112331.32424-1-alexandru.ardelean@analog.com>

On 21-05-19, 14:23, Alexandru Ardelean wrote:
> From: Lars-Peter Clausen <lars@metafoo.de>
> 
> Starting with version 4.1.a the AXI-DMAC is capable of reporting the
> required length alignment.
> 
> The LSBs that are required to be set for alignment will always read back as
> set from the transfer length register. It is not possible to clear them by
> writing a 0. This means the driver can discover the length alignment
> requirement by writing 0 to that register and reading back the value.
> 
> Since the DMA will support length alignment requirements that are different
> from the address alignment requirement track both of them independently.
> 
> For older versions of the peripheral assume that the length alignment
> requirement is equal to the address alignment requirement.
> 
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

You need to sign off the patch before sending. Please reread Documentation/process/submitting-patches.rst

>  	axi_dmac_write(dmac, AXI_DMAC_REG_FLAGS, AXI_DMAC_FLAG_CYCLIC);
>  	if (axi_dmac_read(dmac, AXI_DMAC_REG_FLAGS) == AXI_DMAC_FLAG_CYCLIC)
> @@ -670,6 +676,13 @@ static int axi_dmac_detect_caps(struct axi_dmac *dmac)
>  		return -ENODEV;
>  	}
>  
> +	if ((version & 0xff00) >= 0x0100) {

magic numbers yaay

-- 
~Vinod

  reply	other threads:[~2019-05-21  9:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-21 11:23 [PATCH 1/2] dmaengine: axi-dmac: Discover length alignment requirement Alexandru Ardelean
2019-05-21  9:00 ` Vinod Koul [this message]
2019-05-21 10:13   ` Ardelean, Alexandru
2019-05-21 11:23 ` [PATCH 2/2] dmaengine: axi-dmac: assign `copy_align` property Alexandru Ardelean

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=20190521090042.GC15118@vkoul-mobl \
    --to=vkoul@kernel.org \
    --cc=alexandru.ardelean@analog.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=lars@metafoo.de \
    /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