Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730Ab0LRAlH (ORCPT ); Fri, 17 Dec 2010 19:41:07 -0500 Received: from cantor.suse.de ([195.135.220.2]:48332 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756487Ab0LRAlE (ORCPT ); Fri, 17 Dec 2010 19:41:04 -0500 Date: Fri, 17 Dec 2010 16:37:47 -0800 From: Greg KH To: rmorell@nvidia.com Cc: David Brownell , Benoit Goby , Alan Stern , Sarah Sharp , Matthew Wilcox , Ming Lei , Jacob Pan , Olof Johansson , Erik Gilling , Colin Cross , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] USB: ehci: tegra: Align DMA transfers to 32 bytes Message-ID: <20101218003747.GB16600@suse.de> References: <1292623129-26361-1-git-send-email-rmorell@nvidia.com> <1292623129-26361-3-git-send-email-rmorell@nvidia.com> <20101217223502.GB19418@suse.de> <20101217224221.GE25105@morell.nvidia.com> <20101217230940.GB21147@suse.de> <20101217234008.GJ25105@morell.nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101217234008.GJ25105@morell.nvidia.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1827 Lines: 41 On Fri, Dec 17, 2010 at 03:40:08PM -0800, rmorell@nvidia.com wrote: > On Fri, Dec 17, 2010 at 03:09:40PM -0800, Greg KH wrote: > > On Fri, Dec 17, 2010 at 02:42:21PM -0800, rmorell@nvidia.com wrote: > > > On Fri, Dec 17, 2010 at 02:35:02PM -0800, Greg KH wrote: > > > > On Fri, Dec 17, 2010 at 01:58:49PM -0800, Robert Morell wrote: > > > > > --- a/include/linux/usb.h > > > > > +++ b/include/linux/usb.h > > > > > @@ -975,6 +975,7 @@ extern int usb_disabled(void); > > > > > #define URB_SETUP_MAP_SINGLE 0x00100000 /* Setup packet DMA mapped */ > > > > > #define URB_SETUP_MAP_LOCAL 0x00200000 /* HCD-local setup packet */ > > > > > #define URB_DMA_SG_COMBINED 0x00400000 /* S-G entries were combined */ > > > > > +#define URB_DRIVER_PRIVATE 0x80000000 /* For driver-private use */ > > > > > > > > Um, what? You are using this for a build check, which seems pointless > > > > as you already modified the code to not need this. > > > > > > > > So it doesn't look like this is needed, right? > > > > > > The intention was to reserve space in the URB flags for > > > implementation-specific use. > > > > Yes, but _which_ driver are you talking about here? You didn't say that > > this was a HCD-only flag, right? > > Sorry, I may not have been clear. I did mean HCD-only flag; its exact > meaning depends on the HCD in question. In the case of tegra-ehci, it > means that a temporary buffer has been allocated that needs freeing > later. > > Would it make more sense if I called it URB_HCD_PRIVATE_MASK? How about naming it what it is being used for? thanks, greg k-h -- 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/