Re: [PATCH] remove a wrong release_region in eexpress.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 28 Jan 2002 13:33:12 +0000 (GMT)


> edition) and he writes that irq and regions should be registered when
> the device is open (and not in the hw-probe function). Why network
> drivers should register the resources they use only on open and not on
> probe (like other drivers do) ?

In the general case you want to claim resources when the hardware is using
them. For most things that means at module load time. However many ISA
devices you can avoid the IRQ and DMA channels unless the device is active.
By deferring that you can allow people to use one or other of two clashing
devices in awkward cases.

For PCI devices the problem really doesn't arise since the resource allocations
are done for you when you use pci_enable_device, or by the pci hot plug layer
and/or BIOS as appropriate
-
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/