From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: Dan Williams
<dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Vinod Koul <vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Laxman Dewangan
<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Kunal Agrawal <kunala-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] dma: tegra: add support for Tegra148/124
Date: Fri, 29 Nov 2013 16:54:43 +0100 [thread overview]
Message-ID: <20131129155442.GO9712@ulmo.nvidia.com> (raw)
In-Reply-To: <1385417732-7767-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]
On Mon, Nov 25, 2013 at 03:15:32PM -0700, Stephen Warren wrote:
[...]
> diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
[...]
> +/* Tegra148 specific registers */
> +#define TEGRA_APBDMA_CHAN_WCOUNT 0x20
> +#define TEGRA_APBDMA_WCOUNT_WCOUNT_SHIFT 2
> +#define TEGRA_APBDMA_WCOUNT_WCOUNT_MASK 0xfffffffc
According to the TRM this field spans bits 29:2, so the mask should be
0x3ffffffc.
> +#define TEGRA_APBDMA_CHAN_WORD_TRANSFER 0x24
> +#define TEGRA_APBDMA_WORD_TRANSFER_WXFER_SHIFT 2
> +#define TEGRA_APBDMA_WORD_TRANSFER_WXFER_MASK 0xfffc
Comparing to the TRM these should be named:
TEGRA_APBDMA_CHAN_WORD_TRANSFER_COUNT_SHIFT
TEGRA_APBDMA_CHAN_WORD_TRANSFER_COUNT_MASK
Also the COUNT field spans bits 29:2, so the mask should be 0x3ffffffc.
> @@ -719,6 +735,7 @@ static void tegra_dma_terminate_all(struct dma_chan *dc)
> struct tegra_dma_desc *dma_desc;
> unsigned long flags;
> unsigned long status;
> + unsigned long wcount = 0;
You assign a value to this later on, so I don't think this needs to be
initialized.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2013-11-29 15:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 22:15 [PATCH] dma: tegra: add support for Tegra148/124 Stephen Warren
[not found] ` <1385417732-7767-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-29 15:54 ` Thierry Reding [this message]
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=20131129155442.GO9712@ulmo.nvidia.com \
--to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kunala-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.