From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756157Ab2ICIaN (ORCPT ); Mon, 3 Sep 2012 04:30:13 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:61104 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754974Ab2ICIaL (ORCPT ); Mon, 3 Sep 2012 04:30:11 -0400 MIME-Version: 1.0 In-Reply-To: References: <50439D44.3080100@yahoo.es> Date: Mon, 3 Sep 2012 14:00:11 +0530 Message-ID: Subject: Re: [PATCH v4 2/3] dw_dmac: max_mem_width limits value for SRC/DST_TR_WID register From: Viresh Kumar To: Andy Shevchenko Cc: Hein Tibosch , Andrew Morton , Hans-Christian Egtvedt , Arnd Bergmann , spear-devel , Linux Kernel Mailing List , "ludovic.desroches" , Havard Skinnemoen , Nicolas Ferre Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3 September 2012 13:55, Andy Shevchenko wrote: >> #define DW_MEM_WIDTH_64 0 /* default */ >> #define DW_MEM_WIDTH_32 1 /* e.g. for avr32 */ > There are 4 options: 32, 64, 128, and 256 bits. I would prefer to see > the value in conjunction with > real value in the register, namely 2 for 32, 3 - 64, 4 - 128, 5 - 256. Which register are you talking about? This configuration is outside of DMAC controller and i am not sure if dw DMAC controller can do 128 or 256 bit transfers. >> @@ -58,6 +58,9 @@ struct dw_dma_slave { >> u32 cfg_lo; >> u8 src_master; >> u8 dst_master; >> +#define DW_MEM_WIDTH_64 0 >> +#define DW_MEM_WIDTH_32 1 /* e.g. for avr32 */ >> + u8 max_mem_width; > Might be I missed something, but why is it slave configuration? > I think the controller (actually channel) structure is more suitable > to keep that field inside. @Hein: Even i missed it. How will you do memcpy transfers as we don't have this structure there. Probably you need to move this to DMA controller platform data filed. viresh