Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 17 Aug 2002 15:57:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 17 Aug 2002 15:57:08 -0400 Received: from pc2-cwma1-5-cust12.swa.cable.ntl.com ([80.5.121.12]:28914 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Sat, 17 Aug 2002 15:57:07 -0400 Subject: Re: IDE? From: Alan Cox To: Linus Torvalds Cc: Larry McVoy , Marc-Christian Petersen , linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 17 Aug 2002 21:00:18 +0100 Message-Id: <1029614418.4634.36.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 26 On Sat, 2002-08-17 at 01:02, Linus Torvalds wrote: > Even something as simple as a PIIX driver (which _should_ just register > itself as a driver for the piix chipsets) doesn't do that. Instead, we > have ide-pci.c, which has a list of all the chipsets it knows about, and > then does initialization and calls the init routines that it knows about. > That's just incestuous. The pci scan can't go away to get the nasty BIOS ordering crap right. Andre now has that code as it should be however. The scan loop is basically no more than pci_foreach_device_in_weird_ide_order() { call probe function(dev) } Which also means we are really really close to hot plug ide controllers. The probe function->generic pci init->driver->generic->driver-> chain is still too ugly but its getting better and lives in a struct now - 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/