From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [PATCH/RFC 0/4]Bind physical devices with ACPI devices Date: Mon, 8 Nov 2004 14:59:24 +0000 Message-ID: <20041108145924.GA32374@parcelfarce.linux.theplanet.co.uk> References: <3ACA40606221794F80A5670F0AF15F84041AC032@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <3ACA40606221794F80A5670F0AF15F84041AC032@pdsmsx403> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "Yu, Luming" Cc: Matthew Wilcox , "Li, Shaohua" , ACPI-DEV , lkml , "Brown, Len" , Greg , Patrick Mochel List-Id: linux-acpi@vger.kernel.org On Mon, Nov 08, 2004 at 10:46:30PM +0800, Yu, Luming wrote: > >All we need is an acpi_get_gendev_handle that takes a struct device and > >returns the acpi_handle for it. Now, maybe that'd be best > >done by placing > >a pointer in the struct device, but I bet it'd be just as good to walk > >the namespace looking for the corresponding device. > > It will fail if you just simply walk namespace to find out > the corresponding acpi object, because there are NO > hardware id or compatible id can be passed in. > Please check function acpi_bus_match. It doesn't need the HID or CID. Look at Shaohua's patches -- they don't use HID or CID either. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click