All of lore.kernel.org
 help / color / mirror / Atom feed
From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support
Date: Tue, 3 Sep 2013 17:01:51 +0530	[thread overview]
Message-ID: <20130903113151.GE15824@intel.com> (raw)
In-Reply-To: <B56CDBE15CE27145A4B77D2D24263E852102A1@039-SN1MPN1-004.039d.mgd.msft.net>

On Tue, Sep 03, 2013 at 05:43:21AM +0000, Lu Jingchang-B35083 wrote:
>   Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver could pass
> the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the eDMA
> driver just needs to set the slave id once for any given channel, after that the 
> transfer is transparent to the device. 
It depends, for a channel requested, if you are only tranferring to a particular
slave device then it can be confugured once.
so
1. allocate channel
2. dmaengine_slave_config()

then you cnan do preare etc multiple times based on need.

~Vinod
>   On the other hand, the DMAMUX's setting procedure requires first disable the dmamux
> before setting, then if it is set in DMA_SLAVE_CONFIG, the repeated setting may be
> complex and unnecessary. The channel is occupied exclusively by the peripheral.
>   So, according the HW feature, I think the eDMA needs only set the slave id once,
> and since the of_dma helper has pass the slave id in on xlate, we can get and set
> the slave id here. How do you think about this?

-- 

WARNING: multiple messages have this Message-ID (diff)
From: Vinod Koul <vinod.koul@intel.com>
To: Lu Jingchang-B35083 <B35083@freescale.com>
Cc: "shawn.guo@linaro.org" <shawn.guo@linaro.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support
Date: Tue, 3 Sep 2013 17:01:51 +0530	[thread overview]
Message-ID: <20130903113151.GE15824@intel.com> (raw)
In-Reply-To: <B56CDBE15CE27145A4B77D2D24263E852102A1@039-SN1MPN1-004.039d.mgd.msft.net>

On Tue, Sep 03, 2013 at 05:43:21AM +0000, Lu Jingchang-B35083 wrote:
>   Do you mean the DMA_SLAVE_CONFIG device_control? Yeah, the slave driver could pass
> the slave_id. But the DMA_SLAVE_CONFIG may be called more than once, and the eDMA
> driver just needs to set the slave id once for any given channel, after that the 
> transfer is transparent to the device. 
It depends, for a channel requested, if you are only tranferring to a particular
slave device then it can be confugured once.
so
1. allocate channel
2. dmaengine_slave_config()

then you cnan do preare etc multiple times based on need.

~Vinod
>   On the other hand, the DMAMUX's setting procedure requires first disable the dmamux
> before setting, then if it is set in DMA_SLAVE_CONFIG, the repeated setting may be
> complex and unnecessary. The channel is occupied exclusively by the peripheral.
>   So, according the HW feature, I think the eDMA needs only set the slave id once,
> and since the of_dma helper has pass the slave id in on xlate, we can get and set
> the slave id here. How do you think about this?

-- 

  reply	other threads:[~2013-09-03 11:31 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-16  6:07 [PATCH v4 3/3] dma: Add Freescale eDMA engine driver support Jingchang Lu
2013-08-16  6:07 ` Jingchang Lu
2013-08-28  6:57 ` Lu Jingchang-B35083
2013-08-28  6:57   ` Lu Jingchang-B35083
2013-08-28  8:17 ` Vinod Koul
2013-08-28  8:17   ` Vinod Koul
2013-08-29  3:32   ` Lu Jingchang-B35083
2013-08-29  3:32     ` Lu Jingchang-B35083
2013-08-29  3:32     ` Lu Jingchang-B35083
2013-09-02  4:50     ` Vinod Koul
2013-09-02  4:50       ` Vinod Koul
2013-09-02  7:10       ` Lu Jingchang-B35083
2013-09-02  7:10         ` Lu Jingchang-B35083
2013-09-02  7:10         ` Lu Jingchang-B35083
2013-09-02  6:37         ` Vinod Koul
2013-09-02  6:37           ` Vinod Koul
2013-09-02  7:32           ` Lu Jingchang-B35083
2013-09-02  7:32             ` Lu Jingchang-B35083
2013-09-02  7:32             ` Lu Jingchang-B35083
2013-09-02 11:12             ` Vinod Koul
2013-09-02 11:12               ` Vinod Koul
2013-09-03  5:43               ` Lu Jingchang-B35083
2013-09-03  5:43                 ` Lu Jingchang-B35083
2013-09-03  5:43                 ` Lu Jingchang-B35083
2013-09-03 11:31                 ` Vinod Koul [this message]
2013-09-03 11:31                   ` Vinod Koul
2013-09-04  2:02                   ` Lu Jingchang-B35083
2013-09-04  2:02                     ` Lu Jingchang-B35083
2013-09-04  2:02                     ` Lu Jingchang-B35083
2013-09-05  8:18                   ` Lu Jingchang-B35083
2013-09-05  8:18                     ` Lu Jingchang-B35083
2013-09-05  8:18                     ` Lu Jingchang-B35083

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=20130903113151.GE15824@intel.com \
    --to=vinod.koul@intel.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 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.