[PATCH 1/3] dmaengine: mmp-pdma support

zhangfei gao zhangfei.gao at gmail.com
Thu Jul 26 22:51:58 EDT 2012


On Thu, Jul 26, 2012 at 6:09 PM, Vinod Koul <vinod.koul at linux.intel.com> wrote:
> On Thu, 2012-07-26 at 15:02 +0800, zhangfei gao wrote:
>> On Thu, Jul 26, 2012 at 2:51 PM, Vinod Koul <vinod.koul at linux.intel.com> wrote:
>> > On Fri, 2012-07-20 at 13:46 +0800, Zhangfei Gao wrote:
>> >> +struct mmp_dma_platdata {
>> >> +       int chancnt;
>> >> +};
>> >> +
>> >> +struct mmp_dma_slave_config {
>> >> +       struct dma_slave_config slave_config;
>> >> +       u32 drcmr;
>> >> +};
>> > Why do you need these definitions?
>> >
>> > What is drcmr used for?
>>
>> Hi, Vinod
>>
>> "drcmr" is request_line, we used to select which channel map to
>> specific peripheral.
>> Is it possible adding request_line to slave_config?
> Can you use the slave_id.
>

Good suggestion

If passing drcmr does not break original design of slave_id,
mmp-pdma just need one config member.
While some device (nand) use memcpy method instead of slave_sg.

 * @slave_id: Slave requester id. Only valid for slave channels. The dma
 * slave peripheral will have unique id as dma requester which need to be
 * pass as slave config.

Will update with slave_id in v1 version.

Thanks Vinod.



More information about the linux-arm-kernel mailing list