Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 18 Oct 2001 13:48:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 18 Oct 2001 13:48:42 -0400 Received: from marty.infinity.powertie.org ([63.105.29.14]:35590 "HELO marty.infinity.powertie.org") by vger.kernel.org with SMTP id ; Thu, 18 Oct 2001 13:48:27 -0400 Date: Thu, 18 Oct 2001 10:33:25 -0700 (PDT) From: Patrick Mochel To: Jonathan Corbet Cc: linux-kernel@vger.kernel.org Subject: Re: [RFC] New Driver Model for 2.5 In-Reply-To: <20011018170512.25468.qmail@eklektix.com> 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 > > probe: > > Check for device existence and associate driver with it. > > What, exactly, does "associate driver" mean? Filling in the struct device > field, perhaps? Calling register_chrdev (or register_whatever)? Creation > of a ddfs entry? As a driver writer I can understand that the probe > routine should check for the existence of some device, and perhaps set up > an internal data structure. What else happens? That's basically it. The bus should have already known about the existence of the device, filled in the fields of struct device and registered it in the global tree. As Jeff Garzik suggested: probe: register interface sanity check h/w to make sure it's there and alive stop DMA/interrupts/etc., just in case start timer to powerdown h/w in N seconds in which interface would be your device node (char dev, devfs node, etc). -pat - 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/