Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262805AbVBYXoO (ORCPT ); Fri, 25 Feb 2005 18:44:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262806AbVBYXoO (ORCPT ); Fri, 25 Feb 2005 18:44:14 -0500 Received: from mail.kroah.org ([69.55.234.183]:27523 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S262805AbVBYXnn (ORCPT ); Fri, 25 Feb 2005 18:43:43 -0500 Date: Fri, 25 Feb 2005 15:41:07 -0800 From: Greg KH To: Adam Belay Cc: Russell King , rml@novell.com, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH] add driver matching priorities Message-ID: <20050225234107.GE29496@kroah.com> References: <1106951404.29709.20.camel@localhost.localdomain> <20050210084113.GZ32727@kroah.com> <1108055918.3423.23.camel@localhost.localdomain> <20050210184508.B5800@flint.arm.linux.org.uk> <1108071423.3423.46.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1108071423.3423.46.camel@localhost.localdomain> User-Agent: Mutt/1.5.8i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1628 Lines: 38 On Thu, Feb 10, 2005 at 04:37:03PM -0500, Adam Belay wrote: > On Thu, 2005-02-10 at 18:45 +0000, Russell King wrote: > > On Thu, Feb 10, 2005 at 12:18:37PM -0500, Adam Belay wrote: > > > > I think the issue that Al raises about drivers grabbing devices, and > > > > then trying to unbind them might be a real problem. > > > > > > I agree. Do you think registering every in-kernel driver before probing > > > hardware would solve this problem? > > > > In which case, consider whether we should be tainting the kernel if > > someone loads a device driver, it binds to a device, and then they > > unload that driver. > > > > It's precisely the same situation, and precisely the same mechanics > > as what I've suggested should be going on here. If one scenario is > > inherently buggy, so is the other. > > > > I think it would depend on whether the user makes the device busy before > the driver is unloaded. Different device classes may have different > requirements for when and how a device can be removed. Are there other > issues as well? Maybe there are ways to improve driver start and stop > mechanics. We never fail a device unbind from a driver, so this isn't as big a deal as I originally thought. Yes, userspace can get messy, but as userspace was the one that loaded the new driver to bind, it's acceptable. So, care to resubmit your patch? thanks, greg k-h - 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/