Skip to contentSkip to conversation

8139cp vs 8139too, request_module ?

DISCUSSION Pascal Terjan 2 participants 2 messages Jun 10, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,
8139cp and 8139too both handle the same id and then test revision.

If revision is wrong they tell to load the other module and return ENODEV.

Why not doing a request_module instead of printing a message ?

#1 lore raw
Quoted 7 lines · Pascal Terjan

Hello,
8139cp and 8139too both handle the same id and then test revision.

If revision is wrong they tell to load the other module and return ENODEV.

Why not doing a request_module instead of printing a message ?

The kernel requests a module to handle each PCI device it doesn't already have a driver for. modprobe will then load all modules that match that PCI device and vendor id. So 8139cp and 8139too are both loaded for PCI devices that might be handled by either. There is no need for them to try to load each other, and I suspect there would be a risk of deadlock if they did.

Ben.

Signature · 3 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.