Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Oct 2001 18:44:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Oct 2001 18:44:37 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:59148 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Wed, 24 Oct 2001 18:42:55 -0400 Date: Wed, 24 Oct 2001 15:41:42 -0700 (PDT) From: Linus Torvalds To: Alan Cox cc: Benjamin Herrenschmidt , , Patrick Mochel , Jonathan Lundell Subject: Re: [RFC] New Driver Model for 2.5 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Oct 2001, Alan Cox wrote: > > I don't think it is a big problem. We can add virtual nodes. They way I > see it we either > a) put in grungy subsystem hacks > b) register virtual device nodes for subsystems when needed > > b feels cleaner I agree. I would personally see us using _more_ "virtual device node" things already: right now we have things like SuperIO chips that contain both a serial line and a parallel port (and...), and some drivers do really ugly things with them - keep them as one "struct pci_dev", and then have two drivers sharing the device. It would be much cleaner to have _one_ driver for such SuperIO chips (a "multinode" driver), which just creates two virtual pci_dev structures, and lets the regular serial driver handle the "virtual serial device" etc. That has the advantage of: - not needing special hacks in various serial/parallel drivers - the devices show up naturally and logically in whatever user mode "device m nager" tree So the device nodes do not have to match the physical tree. The physical device tree only sets up the initial physical scanning, and obviously limits _reality_ ;) Linus - 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/