From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Sun, 29 Feb 2004 00:43:11 +0000 Subject: Re: Should driver changes cause hotplug event Message-Id: <200402290143.12489.oliver@neukum.org> List-Id: References: <20040216052819.28584.qmail@web14916.mail.yahoo.com> In-Reply-To: <20040216052819.28584.qmail@web14916.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Am Donnerstag, 26. Februar 2004 18:57 schrieb Greg KH: > On Tue, Feb 24, 2004 at 11:30:19PM +0100, Oliver Neukum wrote: > > Am Montag, 16. Februar 2004 22:04 schrieb Greg KH: > > > On Sun, Feb 15, 2004 at 09:28:19PM -0800, Jon Smirl wrote: > > > > 1) I had radeonfb loaded. It claims my video card. > > > > 2) Next I load radeon, it will also claim my video card, but radeonfb is > > > > blocking it, so it loads and doesn't initialize. > > > > 3) Now I rmmod radeonfb. > > > > > > > > Should the hotplug system notice this and attach radeon to the > > > > hardware since it is already loaded? I tried and it didn't attach > > > > radeon to the hardware. > > > > > > This isn't a hotplug issue. It's a driver core issue. Currently the > > > kernel does not try to match up drivers to any device that just had a > > > driver removed from it. > > > > Potentially dangerous. There needs to be a way to get a driver off > > a device. > > I don't understand. That would work just the same way as before. Just > that when we remove a driver off of a device, we might want to check all > other drivers that are currently present in the system to see if they > want to bind to the device. But, as David has convinced me, there needs to be a way to make sure that a device is bound to no driver. Currently we have some halfassed way of doing this for USB. It will work while you don't load new modules. > Something like this will be necessary if we start to add "levels" of > bindness to drivers (kind of like what microsoft has.) People have been > talking about this being one of the things we do for 2.7. Yes, but think of user space drivers. If you really want to do this, you need a way of claiming devices from user space. This opens a new can of worms. You need hooks in exit() to give up such claims in case of unplanned termination. Regards Oliver ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&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