From: Thomas Renninger Subject: Re: [patch 0/2] acpi: driverregistration again can report ENODEV Date: Wed, 25 Oct 2006 13:31:55 +0200 Message-ID: <1161775915.32262.235.camel@queen.suse.de> References: <20061020092547.519734000@neutrino.suse.de> <1161338381.32262.114.camel@queen.suse.de> <200610201055.33931.bjorn.helgaas@hp.com> <1161772831.14917.36.camel@localhost.localdomain> Reply-To: trenn@suse.de Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from ns.suse.de ([195.135.220.2]:39138 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1423297AbWJYLb5 (ORCPT ); Wed, 25 Oct 2006 07:31:57 -0400 In-Reply-To: <1161772831.14917.36.camel@localhost.localdomain> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Zhang Rui Cc: Bjorn Helgaas , fseidel@suse.de, linux-acpi@vger.kernel.org, "Brown, Len" , shaohua.li@intel.com On Wed, 2006-10-25 at 18:40 +0800, Zhang Rui wrote: > We won't have such issues if we make ACPI use driver model. > I've sent out a patch series which throw the legacy ACPI driver model > away. The patches will be added to -mm tree. > > On Sat, 2006-10-21 at 00:55 +0800, Bjorn Helgaas wrote: > > > acpi_bus_register_driver must return -ENODEV when no device with > > > matching HID was found. E.g. battery also should currently get > > always > > > loaded even a system never has one. > > > > If the driver wants to unload if it doesn't find any devices, > > it can easily do so by counting calls to its add() method, as > > asus_acpi.c currently does. I don't think that's a good long- > > term solution, though. I think it would be better to have a > > hotplug scheme that loads the driver when the hardware is > > found, like we do for PCI. > > > that's true. With this patch series, .uevent method of ACPI bus will be > called when an ACPI device is found. Then udev script loads the right > driver by checking hid/cid offered by .uevent method. That are great news. Maybe you can CC linux-acpi list on further patches, I didn't know about this. I am looking forward to give these a try as soon as I get some time... Thanks, Thomas