On Thu, Jun 2, 2016 at 7:39 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: > On Thu, Jun 2, 2016 at 5:31 AM, Muni Sekhar <munisekharrms@xxxxxxxxx> wrote: >> Hello, >> >> >> We are having a “Generic SD host controller” on PCI bus and noticed >> that sdhci-pci.ko is getting loaded automatically after booting the >> system. >> >> I would like to know how does sdhci-pci.ko automatically getting loaded? >> >> Does kernel has any startup scripts to load drivers automatically for >> devices present on PCI bus? > > See https://wiki.archlinux.org/index.php/Modalias Hi Bjorn, Thank you very much for sharing a very useful web link. My hardware sysfs modalias file is mentioned below. # cat /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/modalias pci:v00001556d00005555sv00004000sd00000000bc08sc05i01 Below mentioned aliases found by 'grep'ing the alias file for Base-Class(08) and Sub-Class(05). # cat /lib/modules/3.16.0-30-generic/modules.alias | grep bc08sc05 alias pci:v*d*sv*sd*bc08sc05i* sdhci_pci alias pci:v*d*sv*sd*bc08sc05i* skel_sdhci_pci I see two different modules sharing the same alias name. In this scenario which module will be loaded by udev rule? -- Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html