Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932128AbWJPPLc (ORCPT ); Mon, 16 Oct 2006 11:11:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932129AbWJPPLc (ORCPT ); Mon, 16 Oct 2006 11:11:32 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:17161 "HELO iolanthe.rowland.org") by vger.kernel.org with SMTP id S932128AbWJPPLb (ORCPT ); Mon, 16 Oct 2006 11:11:31 -0400 Date: Mon, 16 Oct 2006 11:11:27 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Cornelia Huck cc: Duncan Sands , Greg K-H , linux-kernel Subject: Re: [Patch 3/3] Driver core: Per-subsystem multithreaded probing. In-Reply-To: <20061016125613.16c9f667@gondolin.boeblingen.de.ibm.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 Content-Length: 781 Lines: 18 On Mon, 16 Oct 2006, Cornelia Huck wrote: > ->probe won't be called if the device is already being removed, but > that still results in bus->remove being called without a prior ->probe > (but not drv->probe since dev->driver is not set at that time). One other thing I forgot to mention... In device_attach(), if dev->driver is already set upon entry and the call to device_bind_driver() fails, dev->driver should be set to NULL before returning. We don't want the device to appear to be bound when in fact it isn't. Alan Stern - 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/