From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] serial: mxs-auart: add the DMA support for mx28
Date: Mon, 5 Nov 2012 11:16:53 +0800 [thread overview]
Message-ID: <50972FA5.4020605@freescale.com> (raw)
In-Reply-To: <1351163280.7077.11.camel@vkoul-udesk3>
? 2012?10?25? 19:08, Vinod Koul ??:
> On Thu, 2012-10-25 at 17:15 +0800, Huang Shijie wrote:
>> yes. I have to setup the register. Could you told me which API is the
>> right API?
> dmaengine_slave_config() should be used to send the slave specfic
> parameters
It seems hard to set the registers by the
dmaengine_slave_config().
[1] firstly, there are several drivers use the mxs-dma, the gpmi-nand, mxs-mmc,spi-mxs, i2c-mxs.
If we set the registers by the dmaengine_slave_config(), we must have the register base address for gpmi, mxs, spi, i2c.
It's not a good idea to access these registers in the mxs-dma driver.
[2] secondly, take gpmi_read_page() for example, it uses the DMA_TRANS_NONE several times :
If we set the registers by the dmaengine_slave_config(), the gpmi_read_page() will become like:
.....................................
dmaengine_slave_config()
dmaengine_prep_slave_sg().
...................................
dmaengine_slave_config()
dmaengine_prep_slave_sg().
...................................
dmaengine_slave_config()
dmaengine_prep_slave_sg().
...................................
Is it a nice look?
[3] dma_slave_config{} does not have the fields to contain the registers value.
So I think the current code it's ok, we'd better do not change it.
thanks
Huang Shijie
next prev parent reply other threads:[~2012-11-05 3:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 10:27 [PATCH v2 0/3] serial: mxs-auart: add DMA support for auart in mx28 Huang Shijie
2012-10-24 10:27 ` [PATCH v2 1/3] serial: mxs-auart: distinguish the different SOCs Huang Shijie
2012-10-24 10:27 ` [PATCH v2 2/3] serial: mxs-auart: add the DMA support for mx28 Huang Shijie
2012-10-25 4:18 ` Vinod Koul
2012-10-25 5:50 ` Huang Shijie
2012-10-25 6:07 ` Vinod Koul
2012-10-25 9:15 ` Huang Shijie
2012-10-25 11:08 ` Vinod Koul
2012-11-05 3:16 ` Huang Shijie [this message]
2012-11-13 9:42 ` Lauri Hintsala
2012-11-15 3:20 ` Huang Shijie
2012-11-15 7:22 ` Lauri Hintsala
2012-11-15 9:11 ` Huang Shijie
2012-11-15 11:51 ` Lauri Hintsala
2012-10-24 10:27 ` [PATCH v2 3/3] ARM: dts: enable dma support for auart0 in mx28 Huang Shijie
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=50972FA5.4020605@freescale.com \
--to=b32955@freescale.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).