From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267651AbUBTHPn (ORCPT ); Fri, 20 Feb 2004 02:15:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267691AbUBTHPn (ORCPT ); Fri, 20 Feb 2004 02:15:43 -0500 Received: from gate.crashing.org ([63.228.1.57]:56745 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S267651AbUBTHPc (ORCPT ); Fri, 20 Feb 2004 02:15:32 -0500 Subject: Re: [BK PATCH] USB update for 2.6.3 From: Benjamin Herrenschmidt To: "David S. Miller" Cc: Linus Torvalds , Greg KH , Andrew Morton , Linux-USB , Linux Kernel list In-Reply-To: <20040219230407.063ef209.davem@redhat.com> References: <20040220012802.GA16523@kroah.com> <1077256996.20789.1091.camel@gaston> <1077258504.20781.1121.camel@gaston> <1077259375.20787.1141.camel@gaston> <20040219230407.063ef209.davem@redhat.com> Content-Type: text/plain Message-Id: <1077261041.20787.1181.camel@gaston> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 20 Feb 2004 18:10:41 +1100 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > You miss how all of this stuff is being used :-) > > USB drivers do things like map DMA memory, and the generic DMA layer vectors it > so that if the USB device is attached to a PCI host the PCI DMA mapping routines > get used. Hrm... so if the USB device drivers are actually doing the dma mapping themselves, it make sense for them to pass their own struct device, no ? Or do they have always to pass their host controller one ? In the former case, we need that inheritance stuff. In the later case we don't. At this point, it's pretty much a matter of policy. Ben.