Thread (1 message) 1 message, 1 author, 2001-02-14

Re: pmac netdevice driver probing bugs

From: Olaf Hering <hidden>
Date: 2001-02-14 02:24:14

On Tue, Feb 06, Olaf Hering wrote:
Hi,

the current device probing code for mace,bmac and gmac returns always 0
and the module can be loaded even if the required hardware is not
present.

cherry:~ # modprobe pcnet32
/lib/modules/2.4.1-olaf/kernel/drivers/net/pcnet32.o: init_module: No
such device
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
/lib/modules/2.4.1-olaf/kernel/drivers/net/pcnet32.o: insmod
/lib/modules/2.4.1-olaf/kernel/drivers/net/pcnet32.o failed
/lib/modules/2.4.1-olaf/kernel/drivers/net/pcnet32.o: insmod pcnet32
failed
cherry:~ #  modprobe bmac
cherry:~ # lsmod
Module                  Size  Used by
bmac                   12512   0  (unused)
nfsd                   75888   4  (autoclean)
autofs4                11920   4  (autoclean)
ipv6                  151488  -1  (autoclean)
gmac                   15248   1  (autoclean)



Can we change that behaviour?
de4x5 and pcnet32 return -EIO as example and the module is not loaded.
The attached patches fix that problem.



Gruss Olaf

--
 $ man clone

BUGS
       Main feature not yet implemented...

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help