From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757356Ab1JRHmo (ORCPT ); Tue, 18 Oct 2011 03:42:44 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:46481 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753395Ab1JRHmn (ORCPT ); Tue, 18 Oct 2011 03:42:43 -0400 Date: Tue, 18 Oct 2011 08:42:11 +0100 From: Russell King To: Jassi Brar Cc: "Bounine, Alexandre" , "Williams, Dan J" , Vinod Koul , Barry Song <21cnbao@gmail.com>, linux-kernel@vger.kernel.org, DL-SHA-WorkGroupLinux , Dave Jiang Subject: Re: [PATCHv4] DMAEngine: Define interleaved transfer request api Message-ID: <20111018074211.GA13483@flint.arm.linux.org.uk> References: <1317966346.1573.2252.camel@vkoul-udesk3> <0CE8B6BE3C4AD74AB97D9D29BD24E55202321E20@CORPEXCH1.na.ads.idt.com> <0CE8B6BE3C4AD74AB97D9D29BD24E55202321F65@CORPEXCH1.na.ads.idt.com> <0CE8B6BE3C4AD74AB97D9D29BD24E552023220AC@CORPEXCH1.na.ads.idt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 18, 2011 at 11:15:29AM +0530, Jassi Brar wrote: > On 18 October 2011 02:37, Bounine, Alexandre wrote: > > With item #1 above being a separate topic, I may have a problem with #2 > > as well: dma_addr_t is sized for the local platform and not guaranteed > > to be a 64-bit value (which may be required by a target). > > Agree with #3 (if #1 and #2 work). > > > Perhaps simply change dma_addr_t to u64 in dmaengine.h alone ? That's just an idiotic suggestion - there's no other way to put that. Let's have some sanity here. dma_addr_t is the size of a DMA address for the CPU architecture being built. This has no relationship to what any particular DMA engine uses. DMA addresses are likely to be stored in scatter tables in memory, and such structures should be defined using u32, u64 (even more bonus points if you use le32 and le64), etc and not types which are dependent on the CPU architecture. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: