On 03/20/2013 01:33 PM, Thierry Vignaud wrote:

That's because modules.alias enables to match through wildchars.

eg for ehci (see either /sbin/modinfo ehci_pci or
"fgrep ehci /lib/modules/3.8.3-desktop-2.mga3/modules.alias"):

alias pci:v0000104Ad0000CC00sv*sd*bc*sc*i* ehci_pci
alias pci:v*d*sv*sd*bc0Csc03i20* ehci_pci

That means that ehci matches both:
- 0x104A 0xCC00 (probably a device that reports a broken/bogus class)
- any PCI device whose class is PCI_CLASS_SERIAL_USB_EHCI

Note that for this one:
- lsmod reports ehci_pci
- modinfo reports the real fs path: ehci-pci
- lspci -vvk reports: ehci-pci

I understand. It is the kernel itself (and associated tools) that mix and match underscore and dash. Hence the need for a conversion patch.

Reply via email to