Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754454Ab0BVU0Z (ORCPT ); Mon, 22 Feb 2010 15:26:25 -0500 Received: from mail.gmx.net ([213.165.64.20]:48248 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754300Ab0BVU0Y (ORCPT ); Mon, 22 Feb 2010 15:26:24 -0500 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1+ATfh0hg+AKW64Uf0YsWig3fIvWCKUuNdfi8Ul3t jh2DiDbPrFJgE4 Date: Mon, 22 Feb 2010 21:26:13 +0100 (CET) From: Guennadi Liakhovetski To: "Steven J. Magnani" cc: Dan Williams , Zhang Wei , Li Yang , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [async_tx-next PATCH 2/2] fsldma: Fix cookie issues In-Reply-To: <1266860439-17352-1-git-send-email-steve@digidescorp.com> Message-ID: References: <1266860439-17352-1-git-send-email-steve@digidescorp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57999999999999996 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 27 On Mon, 22 Feb 2010, Steven J. Magnani wrote: > diff -uprN a/include/linux/dmaengine.h b/include/linux/dmaengine.h > --- a/include/linux/dmaengine.h 2010-02-22 11:18:11.000000000 -0600 > +++ b/include/linux/dmaengine.h 2010-02-22 11:18:30.000000000 -0600 > @@ -31,6 +31,8 @@ > * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code > */ > typedef s32 dma_cookie_t; > +#define DMA_MIN_COOKIE 1 > +#define DMA_MAX_COOKIE 2147483647 Taking into account, that dma_cookie_t is 32 bits: +#define DMA_MAX_COOKIE ((1 << 31) - 1) Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/