From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 15 Oct 2001 04:16:52 +0000 Subject: Re: aic7xxx and hotplug 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 Sun, Oct 14, 2001 at 09:18:08PM +0200, christophe barbe wrote: > So following my previous post concerning my APA1480 card, here is a patch > that solve my problem. I intent to push it to the driver maintener if you > agree with it. It only export the pci table but I have to include the > module.h before that. You should send the patch to the author of the driver, not us :) > It works as expected but It's not yet clear in my mind so could you please > try to answer to the following questions: > > 1. Are we supposed to unload module before removing a card. > When I remove a card I see something like cb_free(20) but the driver is not > unloaded. > I was expecting at least to see something indicating that a device was > removed at the module level (the cb_free comes from the cardbus code > level). > I looks like the removing of the card is not passed to the hotplug code. /sbin/hotplug should get called when your card is removed, but the current linux-hotplug package does not unload the driver. There are too many potential race issues for it to do that right now. If you want the driver unloaded, right now you have to do it by hand, or you can modify the scripts to do it. thanks, greg k-h _______________________________________________ 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