2001-02-15 22:17:29

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] network driver updates

David Hinds wrote:
>
> On Thu, Feb 15, 2001 at 10:49:22PM +1100, Andrew Morton wrote:
> >
> > Now, the thing I don't understand about David's design is the
> > final one. What 3c575_cb does is:
> >
> > CONFIG_HOTPLUG=y, MODULE=true
> > If the hardware isn't there, register the driver and
> > hang around.
> >
> > Why?
>
> Merely that I was trying to disassociate the concepts of module
> loading and device probing, and I thought it was most consistent to
> then allow people to load modules whenever they want, whether or not a
> device was present.

Fair enough. Thanks.

Another scenario may be where (say) a network driver is modprobed
from a hotpluggable disk controller. You want to be able to load
the netdriver, pop out the disk controller and then insert the network
card. Or vice-versa - load a parallel port driver across NFS then
pull the network card and push the parallel port card. Could use
local disks for this, of course.

hmm..