From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 30 Dec 2003 00:36:34 +0000 Subject: Re: dri and udev Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Dec 27, 2003 at 12:57:38PM -0800, Jon Smirl wrote: > > while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) { If you _have_ to do this, please use pci_get_device() instead. It's much safer to use. > My personal opinion on this is that it is insane for two device drivers to be > trying to share the same same piece of hardware - it's multitasking for device > drivers. I also don't think udev/sysfs are set up to deal with two device > drivers claiming the same piece of hardware. The driver model is not set up to do that. And it is correct, you should claim the device, like the fbdev people do. If users want one or the other, that's fine. Bad things might happen if two drivers talk to the same hardware at the same time. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel