From: Arnd Bergmann <arnd@arndb.de>
To: Vinod Koul <vinod.koul@intel.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
Viresh Kumar <viresh.kumar@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.jf.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
spear-devel <spear-devel@list.st.com>,
Felipe Balbi <balbi@ti.com>
Subject: Re: [PATCH v2 2/4] dma: move dw_dmac driver to an own directory
Date: Wed, 12 Jun 2013 13:36:08 +0200 [thread overview]
Message-ID: <3071989.BUSYQuLaN0@wuerfel> (raw)
In-Reply-To: <20130612090202.GM4107@intel.com>
On Wednesday 12 June 2013 14:32:02 Vinod Koul wrote:
> config DW_DMAC
> tristate "Synopsys DesignWare AHB DMA platform driver"
> select DW_DMAC_CORE
> + select DW_DMAC_BIG_ENDIAN_IO if ARCH=AVR32
> default y if CPU_AT32AP7000
> help
> Support the Synopsys DesignWare AHB DMA controller. This
I assume you have not actually tested this on AVR32?
The Kconfig statement above compares the values of CONFIG_ARCH and
CONFIG_AVR32, so it would turn on big-endian mode when both
are disabled (as is normally the case anywhere).
I think what you meant to write is
select DW_DMAC_BIG_ENDIAN_IO if AVR32
On Wednesday 12 June 2013 13:22:25 Vinod Koul wrote:
> > I don't know if we will have any platform in future which has such
> > difference in endianess between CPU and DMA IP block.
> you never know what h/w designers would think!
IIRC AVR32 endianess is screwed up in multiple ways and the kernel
actually does some extra byte swapping depending on the platform.
It's possible that the device is actually doing the regular
little-endian I/O there and this is just a workaround from
the other swaps. It's certainly best to leave the current logic
in place, as your patch does.
Arnd
next prev parent reply other threads:[~2013-06-12 11:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 12:26 [PATCH v2 0/4] dw_dmac: move to own folder and split Andy Shevchenko
2013-06-05 12:26 ` [PATCH v2 1/4] dw_dmac: don't check resource with devm_ioremap_resource Andy Shevchenko
2013-06-05 12:26 ` [PATCH v2 2/4] dma: move dw_dmac driver to an own directory Andy Shevchenko
2013-06-12 5:08 ` Vinod Koul
2013-06-12 7:43 ` Andy Shevchenko
2013-06-12 7:39 ` Vinod Koul
2013-06-12 8:24 ` Viresh Kumar
2013-06-12 8:27 ` Andy Shevchenko
2013-06-12 7:52 ` Vinod Koul
2013-06-12 8:38 ` Andy Shevchenko
2013-06-12 8:12 ` Vinod Koul
2013-06-12 8:53 ` Viresh Kumar
2013-06-12 8:19 ` Vinod Koul
2013-06-12 9:06 ` Viresh Kumar
2013-06-12 9:07 ` Andy Shevchenko
2013-06-12 9:02 ` Vinod Koul
2013-06-12 9:43 ` Viresh Kumar
2013-06-12 11:36 ` Arnd Bergmann [this message]
2013-06-12 9:00 ` Andy Shevchenko
2013-06-12 13:52 ` Hein Tibosch
2013-06-05 12:26 ` [PATCH v2 3/4] dma: dw: split driver to library part and platform code Andy Shevchenko
2013-06-05 12:26 ` [PATCH v2 4/4] dma: dw: add PCI part of the driver Andy Shevchenko
2013-06-11 12:39 ` [PATCH v2 0/4] dw_dmac: move to own folder and split Andy Shevchenko
2013-06-12 5:17 ` 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=3071989.BUSYQuLaN0@wuerfel \
--to=arnd@arndb.de \
--cc=andriy.shevchenko@linux.jf.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=balbi@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=spear-devel@list.st.com \
--cc=vinod.koul@intel.com \
--cc=viresh.kumar@linaro.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